|
@ -1,9 +1,13 @@ |
|
|
import amplitude from 'amplitude-js'; |
|
|
import amplitude from 'amplitude-js'; |
|
|
import Analytics from 'appcenter-analytics'; |
|
|
import Analytics from 'appcenter-analytics'; |
|
|
|
|
|
import { getVersion } from 'react-native-device-info'; |
|
|
|
|
|
import { Platform } from 'react-native'; |
|
|
|
|
|
|
|
|
amplitude.getInstance().init('8b7cf19e8eea3cdcf16340f5fbf16330', null, { |
|
|
amplitude.getInstance().init('8b7cf19e8eea3cdcf16340f5fbf16330', null, { |
|
|
useNativeDeviceInfo: true, |
|
|
useNativeDeviceInfo: true, |
|
|
|
|
|
platform: Platform.OS, |
|
|
}); |
|
|
}); |
|
|
|
|
|
amplitude.getInstance().setVersionName(getVersion()); |
|
|
|
|
|
|
|
|
let A = async event => { |
|
|
let A = async event => { |
|
|
amplitude.getInstance().logEvent(event, {}); |
|
|
amplitude.getInstance().logEvent(event, {}); |
|
@ -17,8 +21,10 @@ let A = async event => { |
|
|
A.ENUM = { |
|
|
A.ENUM = { |
|
|
INIT: 'INIT', |
|
|
INIT: 'INIT', |
|
|
GOT_NONZERO_BALANCE: 'GOT_NONZERO_BALANCE', |
|
|
GOT_NONZERO_BALANCE: 'GOT_NONZERO_BALANCE', |
|
|
|
|
|
GOT_ZERO_BALANCE: 'GOT_ZERO_BALANCE', |
|
|
CREATED_WALLET: 'CREATED_WALLET', |
|
|
CREATED_WALLET: 'CREATED_WALLET', |
|
|
CREATED_LIGHTNING_WALLET: 'CREATED_LIGHTNING_WALLET', |
|
|
CREATED_LIGHTNING_WALLET: 'CREATED_LIGHTNING_WALLET', |
|
|
|
|
|
APP_UNSUSPENDED: 'APP_UNSUSPENDED', |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
module.exports = A; |
|
|
module.exports = A; |
|
|