- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
package com.facebook.ads.internal.api;
|
|
|
|
import android.content.Context;
|
|
import androidx.annotation.Keep;
|
|
import com.facebook.ads.BuildConfig;
|
|
import com.facebook.infer.annotation.Nullsafe;
|
|
|
|
@Keep
|
|
@Nullsafe(Nullsafe.Mode.LOCAL)
|
|
/* loaded from: classes2.dex */
|
|
public class BuildConfigApi {
|
|
static final String UNITY_SHARED_PREFERENCES_SUFIX = ".v2.playerprefs";
|
|
static final String UNITY_TAG = "an_isUnitySDK";
|
|
static final String UNITY_VERSION_SUFIX = "-unity";
|
|
|
|
public static String getVersionName(Context context) {
|
|
if (isUnity(context)) {
|
|
return BuildConfig.VERSION_NAME + UNITY_VERSION_SUFIX;
|
|
}
|
|
return BuildConfig.VERSION_NAME;
|
|
}
|
|
|
|
private static boolean isUnity(Context context) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(context.getPackageName());
|
|
sb.append(UNITY_SHARED_PREFERENCES_SUFIX);
|
|
return context.getSharedPreferences(sb.toString(), 0).contains(UNITY_TAG) || context.getSharedPreferences(context.getPackageName(), 0).contains(UNITY_TAG);
|
|
}
|
|
|
|
public static boolean isDebug() {
|
|
return BuildConfig.DEBUG;
|
|
}
|
|
}
|