Ver código fonte

增加kochava归因信息上传

zk 1 ano atrás
pai
commit
412566444c

+ 3 - 1
app/src/main/java/com/atmob/voiceai/sdk/atmob/checker/AtmobCheckerHelper.java

@@ -17,6 +17,8 @@ import com.atmob.voiceai.BuildConfig;
 import com.atmob.voiceai.data.consts.Constants;
 import com.atmob.voiceai.sdk.kochava.KochavaHelper;
 
+import org.json.JSONObject;
+
 import java.util.concurrent.atomic.AtomicBoolean;
 
 public class AtmobCheckerHelper {
@@ -40,7 +42,7 @@ public class AtmobCheckerHelper {
                 .setChannelName(AtmobUser.getAtmobChannel())
                 .setHostUrl(Constants.Atmob_Server_Base_URL)
                 .setAttributionInfoProvider(attributionInfoCallback ->
-                        KochavaHelper.registerAttributionResultCallback(attributionInfoCallback::onAttributionInfoReceived))
+                        KochavaHelper.registerAttributionResultCallback((attributed, attributionInfo) -> attributionInfoCallback.onAttributionInfoReceived(attributed)))
                 .build());
         AtmobCheckerSdk.initAfterGrantedAgreement();