mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
25 lines
541 B
JavaScript
25 lines
541 B
JavaScript
import amplitude from 'amplitude-js';
|
|
import Analytics from 'appcenter-analytics';
|
|
|
|
amplitude.getInstance().init('8b7cf19e8eea3cdcf16340f5fbf16330', null, {
|
|
useNativeDeviceInfo: true,
|
|
});
|
|
|
|
let A = async event => {
|
|
amplitude.getInstance().logEvent(event, {});
|
|
try {
|
|
Analytics.trackEvent(event);
|
|
} catch (err) {
|
|
console.log(err);
|
|
}
|
|
};
|
|
|
|
A.ENUM = {
|
|
INIT: 'INIT',
|
|
GOT_NONZERO_BALANCE: 'GOT_NONZERO_BALANCE',
|
|
CREATED_WALLET: 'CREATED_WALLET',
|
|
CREATED_LIGHTNING_WALLET: 'CREATED_LIGHTNING_WALLET',
|
|
};
|
|
|
|
module.exports = A;
|