Skip to content

Commit

Permalink
remove coins sample
Browse files Browse the repository at this point in the history
  • Loading branch information
florindumitru committed May 25, 2023
1 parent fc40ddc commit 48517ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
23 changes: 0 additions & 23 deletions src/assets/coins.sample.json

This file was deleted.

12 changes: 1 addition & 11 deletions src/utils/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {Logs} from 'services/logs';
import {Mixpanel} from 'mixpanel-react-native';
import DeviceInfo from 'react-native-device-info';
import CONFIG from 'config';
// import {StorageGetItem} from 'services/storage';

export enum ILogEvents {
APP_START = 'AppStart',
Expand All @@ -20,23 +19,14 @@ export const initMixPanel = async () => {
if (!mixpanel) {
mixpanel = new Mixpanel(CONFIG.MIXPANEL_KEY);
mixpanel.init();
// const isInit = await StorageGetItem('@init', false);
const DID = DeviceInfo.getUniqueId();
mixpanel.identify(DID);
mixpanel.getPeople().set({$name: DID});
// if (!isInit) {
// mixpanel.identify(DID);
// mixpanel.getPeople().set({$name: DID});
// }
}
};

export const updateProfile = (balance: number) => {
mixpanel.getPeople().set(ILogEvents.BALANCE, balance);
};

export const mixBalance = (balance: number) => {
mixpanel.getPeople().set(ILogEvents.BALANCE, balance);
Logs.debug('mixBalance:' + balance);
};

export const LogEvents = async (type: ILogEvents, name: string) => {
Expand Down

0 comments on commit 48517ed

Please sign in to comment.