- 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
188 lines
6.8 KiB
Java
188 lines
6.8 KiB
Java
package com.facebook.appevents;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import androidx.annotation.RestrictTo;
|
|
import com.facebook.AccessToken;
|
|
import com.facebook.FacebookSdk;
|
|
import com.facebook.appevents.AppEventsLogger;
|
|
import java.math.BigDecimal;
|
|
import java.util.Currency;
|
|
import java.util.Map;
|
|
import java.util.concurrent.Executor;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
/* loaded from: classes2.dex */
|
|
public final class InternalAppEventsLogger {
|
|
public static final Companion Companion = new Companion(null);
|
|
private final AppEventsLoggerImpl loggerImpl;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public static final InternalAppEventsLogger createInstance(Context context) {
|
|
return Companion.createInstance(context);
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public static final InternalAppEventsLogger createInstance(Context context, String str) {
|
|
return Companion.createInstance(context, str);
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public static final InternalAppEventsLogger createInstance(String str, String str2, AccessToken accessToken) {
|
|
return Companion.createInstance(str, str2, accessToken);
|
|
}
|
|
|
|
public static final Executor getAnalyticsExecutor() {
|
|
return Companion.getAnalyticsExecutor();
|
|
}
|
|
|
|
public static final AppEventsLogger.FlushBehavior getFlushBehavior() {
|
|
return Companion.getFlushBehavior();
|
|
}
|
|
|
|
public static final String getPushNotificationsRegistrationId() {
|
|
return Companion.getPushNotificationsRegistrationId();
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.GROUP_ID})
|
|
public static final void setInternalUserData(Map<String, String> map) {
|
|
Companion.setInternalUserData(map);
|
|
}
|
|
|
|
public static final void setUserData(Bundle bundle) {
|
|
Companion.setUserData(bundle);
|
|
}
|
|
|
|
public InternalAppEventsLogger(AppEventsLoggerImpl loggerImpl) {
|
|
Intrinsics.checkNotNullParameter(loggerImpl, "loggerImpl");
|
|
this.loggerImpl = loggerImpl;
|
|
}
|
|
|
|
public InternalAppEventsLogger(Context context) {
|
|
this(new AppEventsLoggerImpl(context, (String) null, (AccessToken) null));
|
|
}
|
|
|
|
public InternalAppEventsLogger(Context context, String str) {
|
|
this(new AppEventsLoggerImpl(context, str, (AccessToken) null));
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public InternalAppEventsLogger(String activityName, String str, AccessToken accessToken) {
|
|
this(new AppEventsLoggerImpl(activityName, str, accessToken));
|
|
Intrinsics.checkNotNullParameter(activityName, "activityName");
|
|
}
|
|
|
|
public final void logEvent(String str, Bundle bundle) {
|
|
if (FacebookSdk.getAutoLogAppEventsEnabled()) {
|
|
this.loggerImpl.logEvent(str, bundle);
|
|
}
|
|
}
|
|
|
|
public final void logEvent(String str, double d, Bundle bundle) {
|
|
if (FacebookSdk.getAutoLogAppEventsEnabled()) {
|
|
this.loggerImpl.logEvent(str, d, bundle);
|
|
}
|
|
}
|
|
|
|
public final void logPurchaseImplicitly(BigDecimal bigDecimal, Currency currency, Bundle bundle) {
|
|
if (FacebookSdk.getAutoLogAppEventsEnabled()) {
|
|
this.loggerImpl.logPurchaseImplicitly(bigDecimal, currency, bundle);
|
|
}
|
|
}
|
|
|
|
public final void logEventFromSE(String str, String str2) {
|
|
this.loggerImpl.logEventFromSE(str, str2);
|
|
}
|
|
|
|
public final void logEventImplicitly(String str, BigDecimal bigDecimal, Currency currency, Bundle bundle) {
|
|
if (FacebookSdk.getAutoLogAppEventsEnabled()) {
|
|
this.loggerImpl.logEventImplicitly(str, bigDecimal, currency, bundle);
|
|
}
|
|
}
|
|
|
|
public final void logEventImplicitly(String str) {
|
|
if (FacebookSdk.getAutoLogAppEventsEnabled()) {
|
|
this.loggerImpl.logEventImplicitly(str, null, null);
|
|
}
|
|
}
|
|
|
|
public final void logEventImplicitly(String str, Double d, Bundle bundle) {
|
|
if (FacebookSdk.getAutoLogAppEventsEnabled()) {
|
|
this.loggerImpl.logEventImplicitly(str, d, bundle);
|
|
}
|
|
}
|
|
|
|
public final void logEventImplicitly(String str, Bundle bundle) {
|
|
if (FacebookSdk.getAutoLogAppEventsEnabled()) {
|
|
this.loggerImpl.logEventImplicitly(str, null, bundle);
|
|
}
|
|
}
|
|
|
|
public final void logChangedSettingsEvent(Bundle parameters) {
|
|
Intrinsics.checkNotNullParameter(parameters, "parameters");
|
|
if (((parameters.getInt("previous") & 2) != 0) || FacebookSdk.getAutoLogAppEventsEnabled()) {
|
|
this.loggerImpl.logEventImplicitly("fb_sdk_settings_changed", null, parameters);
|
|
}
|
|
}
|
|
|
|
public final void flush() {
|
|
this.loggerImpl.flush();
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public final InternalAppEventsLogger createInstance(Context context) {
|
|
return createInstance$default(this, context, null, 2, null);
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final AppEventsLogger.FlushBehavior getFlushBehavior() {
|
|
return AppEventsLoggerImpl.Companion.getFlushBehavior();
|
|
}
|
|
|
|
public final Executor getAnalyticsExecutor() {
|
|
return AppEventsLoggerImpl.Companion.getAnalyticsExecutor();
|
|
}
|
|
|
|
public final String getPushNotificationsRegistrationId() {
|
|
return AppEventsLoggerImpl.Companion.getPushNotificationsRegistrationId();
|
|
}
|
|
|
|
public final void setUserData(Bundle bundle) {
|
|
UserDataStore.setUserDataAndHash(bundle);
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.GROUP_ID})
|
|
public final void setInternalUserData(Map<String, String> ud) {
|
|
Intrinsics.checkNotNullParameter(ud, "ud");
|
|
UserDataStore.setInternalUd(ud);
|
|
}
|
|
|
|
public static /* synthetic */ InternalAppEventsLogger createInstance$default(Companion companion, Context context, String str, int i, Object obj) {
|
|
if ((i & 2) != 0) {
|
|
str = null;
|
|
}
|
|
return companion.createInstance(context, str);
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public final InternalAppEventsLogger createInstance(Context context, String str) {
|
|
return new InternalAppEventsLogger(context, str);
|
|
}
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public final InternalAppEventsLogger createInstance(String activityName, String str, AccessToken accessToken) {
|
|
Intrinsics.checkNotNullParameter(activityName, "activityName");
|
|
return new InternalAppEventsLogger(activityName, str, accessToken);
|
|
}
|
|
}
|
|
}
|