| | |
| | | |
| | | public class AppsFlyerUtil { |
| | | |
| | | private static final String AF_DEV_KEY = "qrdZGj123456789"; |
| | | private static final String AF_DEV_KEY = "muBUcmQaNv9hbArNpvSm6V"; |
| | | |
| | | public static void init() { |
| | | AppsFlyerConversionListener conversionListener = new AppsFlyerConversionListener() { |
| | |
| | | } |
| | | }; |
| | | |
| | | AppsFlyerLib.getInstance().init(AF_DEV_KEY, conversionListener, GameApp.I); |
| | | AppsFlyerLib.getInstance().startTracking(GameApp.I); |
| | | AppsFlyerLib.getInstance().init(AF_DEV_KEY, conversionListener, GameAppProxy.app); |
| | | AppsFlyerLib.getInstance().startTracking(GameAppProxy.app); |
| | | } |
| | | |
| | | //统计事件 |
| | | public static void trackEvent(String eventName, Map<String, Object> eventValues) { |
| | | if (eventValues == null) |
| | | eventValues = new HashMap<>(); |
| | | AppsFlyerLib.getInstance().trackEvent(GameApp.I, eventName, eventValues); |
| | | AppsFlyerLib.getInstance().trackEvent(GameAppProxy.app, eventName, eventValues); |
| | | } |
| | | |
| | | } |