afun 2020238 v1.0版本的 MD5 值为:0e5438925c609ea263d060e5259b230d
以下内容为反编译后的 AFf1gSDK.java 源代码,内容仅作参考
package com.appsflyer.internal;
import android.content.Context;
import android.content.Intent;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.appsflyer.AFLogger;
import com.appsflyer.AppsFlyerLib;
import com.appsflyer.AppsFlyerProperties;
import com.appsflyer.FirebaseMessagingServiceListener;
import com.appsflyer.internal.AFe1jSDK;
public final class AFf1gSDK {
@VisibleForTesting
public static String AFInAppEventType;
public final AFd1xSDK valueOf;
static {
StringBuilder sb = new StringBuilder("https://%sregister.%s/api/v");
sb.append(AFb1tSDK.valueOf);
AFInAppEventType = sb.toString();
}
public AFf1gSDK(@NonNull Context context) {
this.valueOf = AFb1tSDK.AFKeystoreWrapper().AFInAppEventParameterName(context);
}
public static boolean values(Context context) {
if (AppsFlyerLib.getInstance().isStopped()) {
return false;
}
try {
Class.forName("com.google.firebase.messaging.FirebaseMessagingService");
} catch (ClassNotFoundException e) {
} catch (Throwable th) {
AFLogger.afErrorLog("An error occurred while trying to verify manifest declarations: ", th);
}
return AFb1rSDK.AFInAppEventParameterName(context, new Intent("com.google.firebase.MESSAGING_EVENT", null, context, FirebaseMessagingServiceListener.class));
}
public static boolean values(@NonNull AFd1xSDK aFd1xSDK) {
return aFd1xSDK.AFKeystoreWrapper("sentRegisterRequestToAF");
}
public static void AFInAppEventParameterName(String str) {
AFd1pSDK values = AFb1tSDK.AFKeystoreWrapper().values();
AFf1rSDK aFf1rSDK = new AFf1rSDK(str, values);
AFe1jSDK afWarnLog = values.afWarnLog();
afWarnLog.AFInAppEventParameterName.execute(new AFe1jSDK.AnonymousClass4(aFf1rSDK));
}
@Nullable
public final AFf1cSDK AFInAppEventType() {
String string;
String string2;
String AFKeystoreWrapper = this.valueOf.AFKeystoreWrapper("afUninstallToken", (String) null);
long AFInAppEventType2 = this.valueOf.AFInAppEventType("afUninstallToken_received_time", 0L);
boolean AFKeystoreWrapper2 = this.valueOf.AFKeystoreWrapper("afUninstallToken_queued");
this.valueOf.valueOf("afUninstallToken_queued", false);
if (AFKeystoreWrapper == null && (string2 = AppsFlyerProperties.getInstance().getString("afUninstallToken")) != null) {
String[] split = string2.split(",");
AFKeystoreWrapper = split[split.length - 1];
}
if (AFInAppEventType2 == 0 && (string = AppsFlyerProperties.getInstance().getString("afUninstallToken")) != null) {
String[] split2 = string.split(",");
if (split2.length >= 2) {
try {
AFInAppEventType2 = Long.parseLong(split2[split2.length - 2]);
} catch (NumberFormatException e) {
}
}
}
if (AFKeystoreWrapper != null) {
return new AFf1cSDK(AFKeystoreWrapper, AFInAppEventType2, AFKeystoreWrapper2);
}
return null;
}
}