hch
7 天以前 2a011653190c36e6fb1f790b3819a1d6b0744aef
SdkProject/plugins/appsflyer/java/com/secondworld/sdk/AppsFlyerUtil.java
@@ -9,7 +9,7 @@
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() {
@@ -41,15 +41,15 @@
            }
        };
        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);
    }
}