Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 changed files with 1086536 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
package com.google.firebase;
import C.w;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class AutoValue_StartupTime extends StartupTime {
private final long elapsedRealtime;
private final long epochMillis;
private final long uptimeMillis;
public AutoValue_StartupTime(long j4, long j5, long j6) {
this.epochMillis = j4;
this.elapsedRealtime = j5;
this.uptimeMillis = j6;
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof StartupTime) {
StartupTime startupTime = (StartupTime) obj;
if (this.epochMillis == startupTime.getEpochMillis() && this.elapsedRealtime == startupTime.getElapsedRealtime() && this.uptimeMillis == startupTime.getUptimeMillis()) {
return true;
}
}
return false;
}
@Override // com.google.firebase.StartupTime
public long getElapsedRealtime() {
return this.elapsedRealtime;
}
@Override // com.google.firebase.StartupTime
public long getEpochMillis() {
return this.epochMillis;
}
@Override // com.google.firebase.StartupTime
public long getUptimeMillis() {
return this.uptimeMillis;
}
public int hashCode() {
long j4 = this.epochMillis;
long j5 = this.elapsedRealtime;
int i = (((((int) (j4 ^ (j4 >>> 32))) ^ 1000003) * 1000003) ^ ((int) (j5 ^ (j5 >>> 32)))) * 1000003;
long j6 = this.uptimeMillis;
return ((int) ((j6 >>> 32) ^ j6)) ^ i;
}
public String toString() {
StringBuilder sb = new StringBuilder("StartupTime{epochMillis=");
sb.append(this.epochMillis);
sb.append(", elapsedRealtime=");
sb.append(this.elapsedRealtime);
sb.append(", uptimeMillis=");
return w.q(sb, this.uptimeMillis, "}");
}
}

View File

@@ -0,0 +1,9 @@
package com.google.firebase;
/* loaded from: classes3.dex */
public final class BuildConfig {
public static final String BUILD_TYPE = "release";
public static final boolean DEBUG = false;
public static final String LIBRARY_PACKAGE_NAME = "com.google.firebase";
public static final String VERSION_NAME = "20.4.2";
}

View File

@@ -0,0 +1,16 @@
package com.google.firebase;
import com.google.android.gms.common.annotation.KeepForSdk;
@KeepForSdk
/* loaded from: classes3.dex */
public final class DataCollectionDefaultChange {
@KeepForSdk
public final boolean enabled;
@KeepForSdk
public DataCollectionDefaultChange(boolean z3) {
this.enabled = z3;
}
}

View File

@@ -0,0 +1,12 @@
package com.google.firebase;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002¨\u0006\u0003"}, d2 = {"Lcom/google/firebase/Firebase;", "", "()V", "com.google.firebase-firebase-common"}, k = 1, mv = {1, 7, 1}, xi = 48)
/* loaded from: classes3.dex */
public final class Firebase {
public static final Firebase INSTANCE = new Firebase();
private Firebase() {
}
}

View File

@@ -0,0 +1,8 @@
package com.google.firebase;
/* loaded from: classes3.dex */
public class FirebaseApiNotAvailableException extends FirebaseException {
public FirebaseApiNotAvailableException(String str) {
super(str);
}
}

View File

@@ -0,0 +1,463 @@
package com.google.firebase;
import K.k;
import android.annotation.TargetApi;
import android.app.Application;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.text.TextUtils;
import android.util.Log;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.api.internal.BackgroundDetector;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.util.Base64Utils;
import com.google.android.gms.common.util.PlatformVersion;
import com.google.android.gms.common.util.ProcessUtils;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentDiscovery;
import com.google.firebase.components.ComponentDiscoveryService;
import com.google.firebase.components.ComponentRegistrar;
import com.google.firebase.components.ComponentRuntime;
import com.google.firebase.components.Lazy;
import com.google.firebase.concurrent.ExecutorsRegistrar;
import com.google.firebase.concurrent.UiExecutor;
import com.google.firebase.events.Publisher;
import com.google.firebase.heartbeatinfo.DefaultHeartBeatController;
import com.google.firebase.inject.Provider;
import com.google.firebase.internal.DataCollectionConfigStorage;
import com.google.firebase.provider.FirebaseInitProvider;
import com.google.firebase.tracing.ComponentMonitor;
import com.google.firebase.tracing.FirebaseTrace;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import s.j;
/* loaded from: classes3.dex */
public class FirebaseApp {
public static final String DEFAULT_APP_NAME = "[DEFAULT]";
private static final String LOG_TAG = "FirebaseApp";
private final Context applicationContext;
private final ComponentRuntime componentRuntime;
private final Lazy<DataCollectionConfigStorage> dataCollectionConfigStorage;
private final Provider<DefaultHeartBeatController> defaultHeartBeatController;
private final String name;
private final FirebaseOptions options;
private static final Object LOCK = new Object();
static final Map<String, FirebaseApp> INSTANCES = new j(0);
private final AtomicBoolean automaticResourceManagementEnabled = new AtomicBoolean(false);
private final AtomicBoolean deleted = new AtomicBoolean();
private final List<BackgroundStateChangeListener> backgroundStateChangeListeners = new CopyOnWriteArrayList();
private final List<FirebaseAppLifecycleListener> lifecycleListeners = new CopyOnWriteArrayList();
@KeepForSdk
/* loaded from: classes3.dex */
public interface BackgroundStateChangeListener {
@KeepForSdk
void onBackgroundStateChanged(boolean z3);
}
@TargetApi(14)
/* loaded from: classes3.dex */
public static class GlobalBackgroundStateListener implements BackgroundDetector.BackgroundStateChangeListener {
private static AtomicReference<GlobalBackgroundStateListener> INSTANCE = new AtomicReference<>();
private GlobalBackgroundStateListener() {
}
public static void ensureBackgroundStateListenerRegistered(Context context) {
if (PlatformVersion.isAtLeastIceCreamSandwich() && (context.getApplicationContext() instanceof Application)) {
Application application = (Application) context.getApplicationContext();
if (INSTANCE.get() == null) {
GlobalBackgroundStateListener globalBackgroundStateListener = new GlobalBackgroundStateListener();
AtomicReference<GlobalBackgroundStateListener> atomicReference = INSTANCE;
while (!atomicReference.compareAndSet(null, globalBackgroundStateListener)) {
if (atomicReference.get() != null) {
return;
}
}
BackgroundDetector.initialize(application);
BackgroundDetector.getInstance().addListener(globalBackgroundStateListener);
}
}
}
@Override // com.google.android.gms.common.api.internal.BackgroundDetector.BackgroundStateChangeListener
public void onBackgroundStateChanged(boolean z3) {
synchronized (FirebaseApp.LOCK) {
try {
Iterator it = new ArrayList(FirebaseApp.INSTANCES.values()).iterator();
while (it.hasNext()) {
FirebaseApp firebaseApp = (FirebaseApp) it.next();
if (firebaseApp.automaticResourceManagementEnabled.get()) {
firebaseApp.notifyBackgroundStateChangeListeners(z3);
}
}
} catch (Throwable th) {
throw th;
}
}
}
}
@TargetApi(24)
/* loaded from: classes3.dex */
public static class UserUnlockReceiver extends BroadcastReceiver {
private static AtomicReference<UserUnlockReceiver> INSTANCE = new AtomicReference<>();
private final Context applicationContext;
public UserUnlockReceiver(Context context) {
this.applicationContext = context;
}
public static void ensureReceiverRegistered(Context context) {
if (INSTANCE.get() == null) {
UserUnlockReceiver userUnlockReceiver = new UserUnlockReceiver(context);
AtomicReference<UserUnlockReceiver> atomicReference = INSTANCE;
while (!atomicReference.compareAndSet(null, userUnlockReceiver)) {
if (atomicReference.get() != null) {
return;
}
}
context.registerReceiver(userUnlockReceiver, new IntentFilter("android.intent.action.USER_UNLOCKED"));
}
}
@Override // android.content.BroadcastReceiver
public void onReceive(Context context, Intent intent) {
synchronized (FirebaseApp.LOCK) {
try {
Iterator<FirebaseApp> it = FirebaseApp.INSTANCES.values().iterator();
while (it.hasNext()) {
it.next().initializeAllApis();
}
} catch (Throwable th) {
throw th;
}
}
unregister();
}
public void unregister() {
this.applicationContext.unregisterReceiver(this);
}
}
public FirebaseApp(Context context, String str, FirebaseOptions firebaseOptions) {
this.applicationContext = (Context) Preconditions.checkNotNull(context);
this.name = Preconditions.checkNotEmpty(str);
this.options = (FirebaseOptions) Preconditions.checkNotNull(firebaseOptions);
StartupTime startupTime = FirebaseInitProvider.getStartupTime();
FirebaseTrace.pushTrace("Firebase");
FirebaseTrace.pushTrace("ComponentDiscovery");
List<Provider<ComponentRegistrar>> discoverLazy = ComponentDiscovery.forContext(context, ComponentDiscoveryService.class).discoverLazy();
FirebaseTrace.popTrace();
FirebaseTrace.pushTrace("Runtime");
ComponentRuntime.Builder processor = ComponentRuntime.builder(UiExecutor.INSTANCE).addLazyComponentRegistrars(discoverLazy).addComponentRegistrar(new FirebaseCommonRegistrar()).addComponentRegistrar(new ExecutorsRegistrar()).addComponent(Component.of(context, (Class<Context>) Context.class, (Class<? super Context>[]) new Class[0])).addComponent(Component.of(this, (Class<FirebaseApp>) FirebaseApp.class, (Class<? super FirebaseApp>[]) new Class[0])).addComponent(Component.of(firebaseOptions, (Class<FirebaseOptions>) FirebaseOptions.class, (Class<? super FirebaseOptions>[]) new Class[0])).setProcessor(new ComponentMonitor());
if (k.a(context) && FirebaseInitProvider.isCurrentlyInitializing()) {
processor.addComponent(Component.of(startupTime, (Class<StartupTime>) StartupTime.class, (Class<? super StartupTime>[]) new Class[0]));
}
ComponentRuntime build = processor.build();
this.componentRuntime = build;
FirebaseTrace.popTrace();
this.dataCollectionConfigStorage = new Lazy<>((Provider) new a(this, context));
this.defaultHeartBeatController = build.getProvider(DefaultHeartBeatController.class);
addBackgroundStateChangeListener(new BackgroundStateChangeListener() { // from class: com.google.firebase.b
@Override // com.google.firebase.FirebaseApp.BackgroundStateChangeListener
public final void onBackgroundStateChanged(boolean z3) {
FirebaseApp.this.lambda$new$1(z3);
}
});
FirebaseTrace.popTrace();
}
private void checkNotDeleted() {
Preconditions.checkState(!this.deleted.get(), "FirebaseApp was deleted");
}
public static void clearInstancesForTest() {
synchronized (LOCK) {
INSTANCES.clear();
}
}
private static List<String> getAllAppNames() {
ArrayList arrayList = new ArrayList();
synchronized (LOCK) {
try {
Iterator<FirebaseApp> it = INSTANCES.values().iterator();
while (it.hasNext()) {
arrayList.add(it.next().getName());
}
} catch (Throwable th) {
throw th;
}
}
Collections.sort(arrayList);
return arrayList;
}
public static List<FirebaseApp> getApps(Context context) {
ArrayList arrayList;
synchronized (LOCK) {
arrayList = new ArrayList(INSTANCES.values());
}
return arrayList;
}
public static FirebaseApp getInstance() {
FirebaseApp firebaseApp;
synchronized (LOCK) {
try {
firebaseApp = INSTANCES.get(DEFAULT_APP_NAME);
if (firebaseApp == null) {
throw new IllegalStateException("Default FirebaseApp is not initialized in this process " + ProcessUtils.getMyProcessName() + ". Make sure to call FirebaseApp.initializeApp(Context) first.");
}
firebaseApp.defaultHeartBeatController.get().registerHeartBeat();
} catch (Throwable th) {
throw th;
}
}
return firebaseApp;
}
public void initializeAllApis() {
if (!k.a(this.applicationContext)) {
Log.i(LOG_TAG, "Device in Direct Boot Mode: postponing initialization of Firebase APIs for app " + getName());
UserUnlockReceiver.ensureReceiverRegistered(this.applicationContext);
return;
}
Log.i(LOG_TAG, "Device unlocked: initializing all Firebase APIs for app " + getName());
this.componentRuntime.initializeEagerComponents(isDefaultApp());
this.defaultHeartBeatController.get().registerHeartBeat();
}
public static FirebaseApp initializeApp(Context context) {
synchronized (LOCK) {
try {
if (INSTANCES.containsKey(DEFAULT_APP_NAME)) {
return getInstance();
}
FirebaseOptions fromResource = FirebaseOptions.fromResource(context);
if (fromResource == null) {
Log.w(LOG_TAG, "Default FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle project.");
return null;
}
return initializeApp(context, fromResource);
} catch (Throwable th) {
throw th;
}
}
}
public /* synthetic */ DataCollectionConfigStorage lambda$new$0(Context context) {
return new DataCollectionConfigStorage(context, getPersistenceKey(), (Publisher) this.componentRuntime.get(Publisher.class));
}
public /* synthetic */ void lambda$new$1(boolean z3) {
if (z3) {
return;
}
this.defaultHeartBeatController.get().registerHeartBeat();
}
private static String normalize(String str) {
return str.trim();
}
public void notifyBackgroundStateChangeListeners(boolean z3) {
Log.d(LOG_TAG, "Notifying background state change listeners.");
Iterator<BackgroundStateChangeListener> it = this.backgroundStateChangeListeners.iterator();
while (it.hasNext()) {
it.next().onBackgroundStateChanged(z3);
}
}
private void notifyOnAppDeleted() {
Iterator<FirebaseAppLifecycleListener> it = this.lifecycleListeners.iterator();
while (it.hasNext()) {
it.next().onDeleted(this.name, this.options);
}
}
@KeepForSdk
public void addBackgroundStateChangeListener(BackgroundStateChangeListener backgroundStateChangeListener) {
checkNotDeleted();
if (this.automaticResourceManagementEnabled.get() && BackgroundDetector.getInstance().isInBackground()) {
backgroundStateChangeListener.onBackgroundStateChanged(true);
}
this.backgroundStateChangeListeners.add(backgroundStateChangeListener);
}
@KeepForSdk
public void addLifecycleEventListener(FirebaseAppLifecycleListener firebaseAppLifecycleListener) {
checkNotDeleted();
Preconditions.checkNotNull(firebaseAppLifecycleListener);
this.lifecycleListeners.add(firebaseAppLifecycleListener);
}
public void delete() {
if (this.deleted.compareAndSet(false, true)) {
synchronized (LOCK) {
INSTANCES.remove(this.name);
}
notifyOnAppDeleted();
}
}
public boolean equals(Object obj) {
if (obj instanceof FirebaseApp) {
return this.name.equals(((FirebaseApp) obj).getName());
}
return false;
}
@KeepForSdk
public <T> T get(Class<T> cls) {
checkNotDeleted();
return (T) this.componentRuntime.get(cls);
}
public Context getApplicationContext() {
checkNotDeleted();
return this.applicationContext;
}
public String getName() {
checkNotDeleted();
return this.name;
}
public FirebaseOptions getOptions() {
checkNotDeleted();
return this.options;
}
@KeepForSdk
public String getPersistenceKey() {
return Base64Utils.encodeUrlSafeNoPadding(getName().getBytes(Charset.defaultCharset())) + "+" + Base64Utils.encodeUrlSafeNoPadding(getOptions().getApplicationId().getBytes(Charset.defaultCharset()));
}
public int hashCode() {
return this.name.hashCode();
}
public void initializeAllComponents() {
this.componentRuntime.initializeAllComponentsForTests();
}
@KeepForSdk
public boolean isDataCollectionDefaultEnabled() {
checkNotDeleted();
return this.dataCollectionConfigStorage.get().isEnabled();
}
@KeepForSdk
public boolean isDefaultApp() {
return DEFAULT_APP_NAME.equals(getName());
}
@KeepForSdk
public void removeBackgroundStateChangeListener(BackgroundStateChangeListener backgroundStateChangeListener) {
checkNotDeleted();
this.backgroundStateChangeListeners.remove(backgroundStateChangeListener);
}
@KeepForSdk
public void removeLifecycleEventListener(FirebaseAppLifecycleListener firebaseAppLifecycleListener) {
checkNotDeleted();
Preconditions.checkNotNull(firebaseAppLifecycleListener);
this.lifecycleListeners.remove(firebaseAppLifecycleListener);
}
public void setAutomaticResourceManagementEnabled(boolean z3) {
checkNotDeleted();
if (this.automaticResourceManagementEnabled.compareAndSet(!z3, z3)) {
boolean isInBackground = BackgroundDetector.getInstance().isInBackground();
if (z3 && isInBackground) {
notifyBackgroundStateChangeListeners(true);
} else {
if (z3 || !isInBackground) {
return;
}
notifyBackgroundStateChangeListeners(false);
}
}
}
@KeepForSdk
public void setDataCollectionDefaultEnabled(Boolean bool) {
checkNotDeleted();
this.dataCollectionConfigStorage.get().setEnabled(bool);
}
public String toString() {
return Objects.toStringHelper(this).add(AppMeasurementSdk.ConditionalUserProperty.NAME, this.name).add("options", this.options).toString();
}
@KeepForSdk
@Deprecated
public void setDataCollectionDefaultEnabled(boolean z3) {
setDataCollectionDefaultEnabled(Boolean.valueOf(z3));
}
@KeepForSdk
public static String getPersistenceKey(String str, FirebaseOptions firebaseOptions) {
return Base64Utils.encodeUrlSafeNoPadding(str.getBytes(Charset.defaultCharset())) + "+" + Base64Utils.encodeUrlSafeNoPadding(firebaseOptions.getApplicationId().getBytes(Charset.defaultCharset()));
}
public static FirebaseApp getInstance(String str) {
FirebaseApp firebaseApp;
String str2;
synchronized (LOCK) {
try {
firebaseApp = INSTANCES.get(normalize(str));
if (firebaseApp != null) {
firebaseApp.defaultHeartBeatController.get().registerHeartBeat();
} else {
List<String> allAppNames = getAllAppNames();
if (allAppNames.isEmpty()) {
str2 = "";
} else {
str2 = "Available app names: " + TextUtils.join(", ", allAppNames);
}
throw new IllegalStateException("FirebaseApp with name " + str + " doesn't exist. " + str2);
}
} finally {
}
}
return firebaseApp;
}
public static FirebaseApp initializeApp(Context context, FirebaseOptions firebaseOptions) {
return initializeApp(context, firebaseOptions, DEFAULT_APP_NAME);
}
public static FirebaseApp initializeApp(Context context, FirebaseOptions firebaseOptions, String str) {
FirebaseApp firebaseApp;
GlobalBackgroundStateListener.ensureBackgroundStateListenerRegistered(context);
String normalize = normalize(str);
if (context.getApplicationContext() != null) {
context = context.getApplicationContext();
}
synchronized (LOCK) {
Map<String, FirebaseApp> map = INSTANCES;
Preconditions.checkState(!map.containsKey(normalize), "FirebaseApp name " + normalize + " already exists!");
Preconditions.checkNotNull(context, "Application context cannot be null.");
firebaseApp = new FirebaseApp(context, normalize, firebaseOptions);
map.put(normalize, firebaseApp);
}
firebaseApp.initializeAllApis();
return firebaseApp;
}
}

View File

@@ -0,0 +1,9 @@
package com.google.firebase;
import com.google.android.gms.common.annotation.KeepForSdk;
@KeepForSdk
/* loaded from: classes3.dex */
public interface FirebaseAppLifecycleListener {
void onDeleted(String str, FirebaseOptions firebaseOptions);
}

View File

@@ -0,0 +1,66 @@
package com.google.firebase;
import androidx.annotation.Keep;
import com.google.firebase.annotations.concurrent.Background;
import com.google.firebase.annotations.concurrent.Blocking;
import com.google.firebase.annotations.concurrent.Lightweight;
import com.google.firebase.annotations.concurrent.UiThread;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentContainer;
import com.google.firebase.components.ComponentFactory;
import com.google.firebase.components.ComponentRegistrar;
import com.google.firebase.components.Dependency;
import com.google.firebase.components.Qualified;
import java.util.List;
import java.util.concurrent.Executor;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.CoroutineDispatcher;
import kotlinx.coroutines.ExecutorsKt;
@Keep
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\b\u0007\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00050\u0004H\u0016¨\u0006\u0006"}, d2 = {"Lcom/google/firebase/FirebaseCommonKtxRegistrar;", "Lcom/google/firebase/components/ComponentRegistrar;", "()V", "getComponents", "", "Lcom/google/firebase/components/Component;", "com.google.firebase-firebase-common"}, k = 1, mv = {1, 7, 1}, xi = 48)
/* loaded from: classes3.dex */
public final class FirebaseCommonKtxRegistrar implements ComponentRegistrar {
@Override // com.google.firebase.components.ComponentRegistrar
public List<Component<?>> getComponents() {
Component build = Component.builder(Qualified.qualified(Background.class, CoroutineDispatcher.class)).add(Dependency.required((Qualified<?>) Qualified.qualified(Background.class, Executor.class))).factory(new ComponentFactory() { // from class: com.google.firebase.FirebaseCommonKtxRegistrar$getComponents$$inlined$coroutineDispatcher$1
@Override // com.google.firebase.components.ComponentFactory
public final CoroutineDispatcher create(ComponentContainer componentContainer) {
Object obj = componentContainer.get(Qualified.qualified(Background.class, Executor.class));
Intrinsics.checkNotNullExpressionValue(obj, "c.get(Qualified.qualifie…a, Executor::class.java))");
return ExecutorsKt.from((Executor) obj);
}
}).build();
Intrinsics.checkNotNullExpressionValue(build, "builder(Qualified.qualif…cher()\n }\n .build()");
Component build2 = Component.builder(Qualified.qualified(Lightweight.class, CoroutineDispatcher.class)).add(Dependency.required((Qualified<?>) Qualified.qualified(Lightweight.class, Executor.class))).factory(new ComponentFactory() { // from class: com.google.firebase.FirebaseCommonKtxRegistrar$getComponents$$inlined$coroutineDispatcher$2
@Override // com.google.firebase.components.ComponentFactory
public final CoroutineDispatcher create(ComponentContainer componentContainer) {
Object obj = componentContainer.get(Qualified.qualified(Lightweight.class, Executor.class));
Intrinsics.checkNotNullExpressionValue(obj, "c.get(Qualified.qualifie…a, Executor::class.java))");
return ExecutorsKt.from((Executor) obj);
}
}).build();
Intrinsics.checkNotNullExpressionValue(build2, "builder(Qualified.qualif…cher()\n }\n .build()");
Component build3 = Component.builder(Qualified.qualified(Blocking.class, CoroutineDispatcher.class)).add(Dependency.required((Qualified<?>) Qualified.qualified(Blocking.class, Executor.class))).factory(new ComponentFactory() { // from class: com.google.firebase.FirebaseCommonKtxRegistrar$getComponents$$inlined$coroutineDispatcher$3
@Override // com.google.firebase.components.ComponentFactory
public final CoroutineDispatcher create(ComponentContainer componentContainer) {
Object obj = componentContainer.get(Qualified.qualified(Blocking.class, Executor.class));
Intrinsics.checkNotNullExpressionValue(obj, "c.get(Qualified.qualifie…a, Executor::class.java))");
return ExecutorsKt.from((Executor) obj);
}
}).build();
Intrinsics.checkNotNullExpressionValue(build3, "builder(Qualified.qualif…cher()\n }\n .build()");
Component build4 = Component.builder(Qualified.qualified(UiThread.class, CoroutineDispatcher.class)).add(Dependency.required((Qualified<?>) Qualified.qualified(UiThread.class, Executor.class))).factory(new ComponentFactory() { // from class: com.google.firebase.FirebaseCommonKtxRegistrar$getComponents$$inlined$coroutineDispatcher$4
@Override // com.google.firebase.components.ComponentFactory
public final CoroutineDispatcher create(ComponentContainer componentContainer) {
Object obj = componentContainer.get(Qualified.qualified(UiThread.class, Executor.class));
Intrinsics.checkNotNullExpressionValue(obj, "c.get(Qualified.qualifie…a, Executor::class.java))");
return ExecutorsKt.from((Executor) obj);
}
}).build();
Intrinsics.checkNotNullExpressionValue(build4, "builder(Qualified.qualif…cher()\n }\n .build()");
return CollectionsKt.listOf((Object[]) new Component[]{build, build2, build3, build4});
}
}

View File

@@ -0,0 +1,73 @@
package com.google.firebase;
import B0.w;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.os.Build;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentRegistrar;
import com.google.firebase.heartbeatinfo.DefaultHeartBeatController;
import com.google.firebase.platforminfo.DefaultUserAgentPublisher;
import com.google.firebase.platforminfo.KotlinDetector;
import com.google.firebase.platforminfo.LibraryVersionComponent;
import java.util.ArrayList;
import java.util.List;
import kotlinx.coroutines.DebugKt;
/* loaded from: classes3.dex */
public class FirebaseCommonRegistrar implements ComponentRegistrar {
private static final String ANDROID_INSTALLER = "android-installer";
private static final String ANDROID_PLATFORM = "android-platform";
private static final String DEVICE_BRAND = "device-brand";
private static final String DEVICE_MODEL = "device-model";
private static final String DEVICE_NAME = "device-name";
private static final String FIREBASE_ANDROID = "fire-android";
private static final String FIREBASE_COMMON = "fire-core";
private static final String KOTLIN = "kotlin";
private static final String MIN_SDK = "android-min-sdk";
private static final String TARGET_SDK = "android-target-sdk";
public static /* synthetic */ String lambda$getComponents$0(Context context) {
ApplicationInfo applicationInfo = context.getApplicationInfo();
return applicationInfo != null ? String.valueOf(applicationInfo.targetSdkVersion) : "";
}
public static /* synthetic */ String lambda$getComponents$1(Context context) {
ApplicationInfo applicationInfo = context.getApplicationInfo();
return applicationInfo != null ? String.valueOf(applicationInfo.minSdkVersion) : "";
}
public static /* synthetic */ String lambda$getComponents$2(Context context) {
return context.getPackageManager().hasSystemFeature("android.hardware.type.television") ? "tv" : context.getPackageManager().hasSystemFeature("android.hardware.type.watch") ? "watch" : context.getPackageManager().hasSystemFeature("android.hardware.type.automotive") ? DebugKt.DEBUG_PROPERTY_VALUE_AUTO : context.getPackageManager().hasSystemFeature("android.hardware.type.embedded") ? "embedded" : "";
}
public static /* synthetic */ String lambda$getComponents$3(Context context) {
String installerPackageName = context.getPackageManager().getInstallerPackageName(context.getPackageName());
return installerPackageName != null ? safeValue(installerPackageName) : "";
}
private static String safeValue(String str) {
return str.replace(' ', '_').replace('/', '_');
}
@Override // com.google.firebase.components.ComponentRegistrar
public List<Component<?>> getComponents() {
ArrayList arrayList = new ArrayList();
arrayList.add(DefaultUserAgentPublisher.component());
arrayList.add(DefaultHeartBeatController.component());
arrayList.add(LibraryVersionComponent.create(FIREBASE_ANDROID, String.valueOf(Build.VERSION.SDK_INT)));
arrayList.add(LibraryVersionComponent.create(FIREBASE_COMMON, BuildConfig.VERSION_NAME));
arrayList.add(LibraryVersionComponent.create(DEVICE_NAME, safeValue(Build.PRODUCT)));
arrayList.add(LibraryVersionComponent.create(DEVICE_MODEL, safeValue(Build.DEVICE)));
arrayList.add(LibraryVersionComponent.create(DEVICE_BRAND, safeValue(Build.BRAND)));
arrayList.add(LibraryVersionComponent.fromContext(TARGET_SDK, new w(9)));
arrayList.add(LibraryVersionComponent.fromContext(MIN_SDK, new w(10)));
arrayList.add(LibraryVersionComponent.fromContext(ANDROID_PLATFORM, new w(11)));
arrayList.add(LibraryVersionComponent.fromContext(ANDROID_INSTALLER, new w(12)));
String detectVersion = KotlinDetector.detectVersion();
if (detectVersion != null) {
arrayList.add(LibraryVersionComponent.create(KOTLIN, detectVersion));
}
return arrayList;
}
}

View File

@@ -0,0 +1,89 @@
package com.google.firebase;
import com.google.android.gms.common.annotation.KeepForSdk;
@KeepForSdk
/* loaded from: classes3.dex */
public class FirebaseError {
@KeepForSdk
public static final int ERROR_ACCOUNT_EXISTS_WITH_DIFFERENT_CREDENTIAL = 17012;
@KeepForSdk
public static final int ERROR_APP_NOT_AUTHORIZED = 17028;
@KeepForSdk
public static final int ERROR_CREDENTIAL_ALREADY_IN_USE = 17025;
@KeepForSdk
public static final int ERROR_CUSTOM_TOKEN_MISMATCH = 17002;
@KeepForSdk
public static final int ERROR_EMAIL_ALREADY_IN_USE = 17007;
@KeepForSdk
public static final int ERROR_INTERNAL_ERROR = 17499;
@KeepForSdk
public static final int ERROR_INVALID_API_KEY = 17023;
@KeepForSdk
public static final int ERROR_INVALID_CREDENTIAL = 17004;
@KeepForSdk
public static final int ERROR_INVALID_CUSTOM_TOKEN = 17000;
@KeepForSdk
public static final int ERROR_INVALID_EMAIL = 17008;
@KeepForSdk
public static final int ERROR_INVALID_USER_TOKEN = 17017;
@KeepForSdk
public static final int ERROR_NETWORK_REQUEST_FAILED = 17020;
@KeepForSdk
public static final int ERROR_NO_SIGNED_IN_USER = 17495;
@KeepForSdk
public static final int ERROR_NO_SUCH_PROVIDER = 17016;
@KeepForSdk
public static final int ERROR_OPERATION_NOT_ALLOWED = 17006;
@KeepForSdk
public static final int ERROR_PROVIDER_ALREADY_LINKED = 17015;
@KeepForSdk
public static final int ERROR_REQUIRES_RECENT_LOGIN = 17014;
@KeepForSdk
public static final int ERROR_TOO_MANY_REQUESTS = 17010;
@KeepForSdk
public static final int ERROR_USER_DISABLED = 17005;
@KeepForSdk
public static final int ERROR_USER_MISMATCH = 17024;
@KeepForSdk
public static final int ERROR_USER_NOT_FOUND = 17011;
@KeepForSdk
public static final int ERROR_USER_TOKEN_EXPIRED = 17021;
@KeepForSdk
public static final int ERROR_WEAK_PASSWORD = 17026;
@KeepForSdk
public static final int ERROR_WRONG_PASSWORD = 17009;
private int errorCode;
public FirebaseError(int i) {
this.errorCode = i;
}
public int getErrorCode() {
return this.errorCode;
}
}

View File

@@ -0,0 +1,22 @@
package com.google.firebase;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
public class FirebaseException extends Exception {
@Deprecated
public FirebaseException() {
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public FirebaseException(String str) {
super(str);
Preconditions.checkNotEmpty(str, "Detail message must not be empty");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public FirebaseException(String str, Throwable th) {
super(str, th);
Preconditions.checkNotEmpty(str, "Detail message must not be empty");
}
}

View File

@@ -0,0 +1,14 @@
package com.google.firebase;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.api.internal.StatusExceptionMapper;
@KeepForSdk
/* loaded from: classes3.dex */
public class FirebaseExceptionMapper implements StatusExceptionMapper {
@Override // com.google.android.gms.common.api.internal.StatusExceptionMapper
public final Exception getException(Status status) {
return status.getStatusCode() == 8 ? new FirebaseException(status.zza()) : new FirebaseApiNotAvailableException(status.zza());
}
}

View File

@@ -0,0 +1,85 @@
package com.google.firebase;
import android.content.Context;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentContainer;
import com.google.firebase.components.ComponentFactory;
import com.google.firebase.components.Dependency;
import com.google.firebase.components.Qualified;
import java.lang.annotation.Annotation;
import java.util.concurrent.Executor;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.CoroutineDispatcher;
import kotlinx.coroutines.ExecutorsKt;
@Metadata(d1 = {"\u00004\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u001b\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u000b0\n\"\n\b\u0000\u0010\f\u0018\u0001*\u00020\rH\u0082\b\u001a\u0012\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u000e\u001a\u00020\u000f\u001a\u0014\u0010\u0010\u001a\u0004\u0018\u00010\u0001*\u00020\u00022\u0006\u0010\u0011\u001a\u00020\u0012\u001a\u001a\u0010\u0010\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0005\u001a\u00020\u0006\u001a\"\u0010\u0010\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u000e\u001a\u00020\u000f\"\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004\"\u0015\u0010\u0005\u001a\u00020\u0006*\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u0007\u0010\\u0006\u0013"}, d2 = {"app", "Lcom/google/firebase/FirebaseApp;", "Lcom/google/firebase/Firebase;", "getApp", "(Lcom/google/firebase/Firebase;)Lcom/google/firebase/FirebaseApp;", "options", "Lcom/google/firebase/FirebaseOptions;", "getOptions", "(Lcom/google/firebase/Firebase;)Lcom/google/firebase/FirebaseOptions;", "coroutineDispatcher", "Lcom/google/firebase/components/Component;", "Lkotlinx/coroutines/CoroutineDispatcher;", "T", "", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "initialize", "context", "Landroid/content/Context;", "com.google.firebase-firebase-common"}, k = 2, mv = {1, 7, 1}, xi = 48)
/* loaded from: classes3.dex */
public final class FirebaseKt {
public static final FirebaseApp app(Firebase firebase, String name) {
Intrinsics.checkNotNullParameter(firebase, "<this>");
Intrinsics.checkNotNullParameter(name, "name");
FirebaseApp firebaseApp = FirebaseApp.getInstance(name);
Intrinsics.checkNotNullExpressionValue(firebaseApp, "getInstance(name)");
return firebaseApp;
}
private static final /* synthetic */ <T extends Annotation> Component<CoroutineDispatcher> coroutineDispatcher() {
Intrinsics.reifiedOperationMarker(4, "T");
Component.Builder builder = Component.builder(Qualified.qualified(Annotation.class, CoroutineDispatcher.class));
Intrinsics.reifiedOperationMarker(4, "T");
Component.Builder add = builder.add(Dependency.required((Qualified<?>) Qualified.qualified(Annotation.class, Executor.class)));
Intrinsics.needClassReification();
Component<CoroutineDispatcher> build = add.factory(new ComponentFactory() { // from class: com.google.firebase.FirebaseKt$coroutineDispatcher$1
@Override // com.google.firebase.components.ComponentFactory
public final CoroutineDispatcher create(ComponentContainer componentContainer) {
Intrinsics.reifiedOperationMarker(4, "T");
Object obj = componentContainer.get(Qualified.qualified(Annotation.class, Executor.class));
Intrinsics.checkNotNullExpressionValue(obj, "c.get(Qualified.qualifie…a, Executor::class.java))");
return ExecutorsKt.from((Executor) obj);
}
}).build();
Intrinsics.checkNotNullExpressionValue(build, "builder(Qualified.qualif…cher()\n }\n .build()");
return build;
}
public static final FirebaseApp getApp(Firebase firebase) {
Intrinsics.checkNotNullParameter(firebase, "<this>");
FirebaseApp firebaseApp = FirebaseApp.getInstance();
Intrinsics.checkNotNullExpressionValue(firebaseApp, "getInstance()");
return firebaseApp;
}
public static final FirebaseOptions getOptions(Firebase firebase) {
Intrinsics.checkNotNullParameter(firebase, "<this>");
FirebaseOptions options = getApp(Firebase.INSTANCE).getOptions();
Intrinsics.checkNotNullExpressionValue(options, "Firebase.app.options");
return options;
}
public static final FirebaseApp initialize(Firebase firebase, Context context) {
Intrinsics.checkNotNullParameter(firebase, "<this>");
Intrinsics.checkNotNullParameter(context, "context");
return FirebaseApp.initializeApp(context);
}
public static final FirebaseApp initialize(Firebase firebase, Context context, FirebaseOptions options) {
Intrinsics.checkNotNullParameter(firebase, "<this>");
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(options, "options");
FirebaseApp initializeApp = FirebaseApp.initializeApp(context, options);
Intrinsics.checkNotNullExpressionValue(initializeApp, "initializeApp(context, options)");
return initializeApp;
}
public static final FirebaseApp initialize(Firebase firebase, Context context, FirebaseOptions options, String name) {
Intrinsics.checkNotNullParameter(firebase, "<this>");
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(options, "options");
Intrinsics.checkNotNullParameter(name, "name");
FirebaseApp initializeApp = FirebaseApp.initializeApp(context, options, name);
Intrinsics.checkNotNullExpressionValue(initializeApp, "initializeApp(context, options, name)");
return initializeApp;
}
}

View File

@@ -0,0 +1,8 @@
package com.google.firebase;
/* loaded from: classes3.dex */
public class FirebaseNetworkException extends FirebaseException {
public FirebaseNetworkException(String str) {
super(str);
}
}

View File

@@ -0,0 +1,157 @@
package com.google.firebase;
import android.content.Context;
import android.text.TextUtils;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.StringResourceValueReader;
import com.google.android.gms.common.util.Strings;
import com.google.firebase.dynamiclinks.DynamicLink;
/* loaded from: classes3.dex */
public final class FirebaseOptions {
private static final String API_KEY_RESOURCE_NAME = "google_api_key";
private static final String APP_ID_RESOURCE_NAME = "google_app_id";
private static final String DATABASE_URL_RESOURCE_NAME = "firebase_database_url";
private static final String GA_TRACKING_ID_RESOURCE_NAME = "ga_trackingId";
private static final String GCM_SENDER_ID_RESOURCE_NAME = "gcm_defaultSenderId";
private static final String PROJECT_ID_RESOURCE_NAME = "project_id";
private static final String STORAGE_BUCKET_RESOURCE_NAME = "google_storage_bucket";
private final String apiKey;
private final String applicationId;
private final String databaseUrl;
private final String gaTrackingId;
private final String gcmSenderId;
private final String projectId;
private final String storageBucket;
/* loaded from: classes3.dex */
public static final class Builder {
private String apiKey;
private String applicationId;
private String databaseUrl;
private String gaTrackingId;
private String gcmSenderId;
private String projectId;
private String storageBucket;
public Builder() {
}
public FirebaseOptions build() {
return new FirebaseOptions(this.applicationId, this.apiKey, this.databaseUrl, this.gaTrackingId, this.gcmSenderId, this.storageBucket, this.projectId);
}
public Builder setApiKey(String str) {
this.apiKey = Preconditions.checkNotEmpty(str, "ApiKey must be set.");
return this;
}
public Builder setApplicationId(String str) {
this.applicationId = Preconditions.checkNotEmpty(str, "ApplicationId must be set.");
return this;
}
public Builder setDatabaseUrl(String str) {
this.databaseUrl = str;
return this;
}
@KeepForSdk
public Builder setGaTrackingId(String str) {
this.gaTrackingId = str;
return this;
}
public Builder setGcmSenderId(String str) {
this.gcmSenderId = str;
return this;
}
public Builder setProjectId(String str) {
this.projectId = str;
return this;
}
public Builder setStorageBucket(String str) {
this.storageBucket = str;
return this;
}
public Builder(FirebaseOptions firebaseOptions) {
this.applicationId = firebaseOptions.applicationId;
this.apiKey = firebaseOptions.apiKey;
this.databaseUrl = firebaseOptions.databaseUrl;
this.gaTrackingId = firebaseOptions.gaTrackingId;
this.gcmSenderId = firebaseOptions.gcmSenderId;
this.storageBucket = firebaseOptions.storageBucket;
this.projectId = firebaseOptions.projectId;
}
}
public static FirebaseOptions fromResource(Context context) {
StringResourceValueReader stringResourceValueReader = new StringResourceValueReader(context);
String string = stringResourceValueReader.getString(APP_ID_RESOURCE_NAME);
if (TextUtils.isEmpty(string)) {
return null;
}
return new FirebaseOptions(string, stringResourceValueReader.getString(API_KEY_RESOURCE_NAME), stringResourceValueReader.getString(DATABASE_URL_RESOURCE_NAME), stringResourceValueReader.getString(GA_TRACKING_ID_RESOURCE_NAME), stringResourceValueReader.getString(GCM_SENDER_ID_RESOURCE_NAME), stringResourceValueReader.getString(STORAGE_BUCKET_RESOURCE_NAME), stringResourceValueReader.getString(PROJECT_ID_RESOURCE_NAME));
}
public boolean equals(Object obj) {
if (!(obj instanceof FirebaseOptions)) {
return false;
}
FirebaseOptions firebaseOptions = (FirebaseOptions) obj;
return Objects.equal(this.applicationId, firebaseOptions.applicationId) && Objects.equal(this.apiKey, firebaseOptions.apiKey) && Objects.equal(this.databaseUrl, firebaseOptions.databaseUrl) && Objects.equal(this.gaTrackingId, firebaseOptions.gaTrackingId) && Objects.equal(this.gcmSenderId, firebaseOptions.gcmSenderId) && Objects.equal(this.storageBucket, firebaseOptions.storageBucket) && Objects.equal(this.projectId, firebaseOptions.projectId);
}
public String getApiKey() {
return this.apiKey;
}
public String getApplicationId() {
return this.applicationId;
}
public String getDatabaseUrl() {
return this.databaseUrl;
}
@KeepForSdk
public String getGaTrackingId() {
return this.gaTrackingId;
}
public String getGcmSenderId() {
return this.gcmSenderId;
}
public String getProjectId() {
return this.projectId;
}
public String getStorageBucket() {
return this.storageBucket;
}
public int hashCode() {
return Objects.hashCode(this.applicationId, this.apiKey, this.databaseUrl, this.gaTrackingId, this.gcmSenderId, this.storageBucket, this.projectId);
}
public String toString() {
return Objects.toStringHelper(this).add("applicationId", this.applicationId).add(DynamicLink.Builder.KEY_API_KEY, this.apiKey).add("databaseUrl", this.databaseUrl).add("gcmSenderId", this.gcmSenderId).add("storageBucket", this.storageBucket).add("projectId", this.projectId).toString();
}
private FirebaseOptions(String str, String str2, String str3, String str4, String str5, String str6, String str7) {
Preconditions.checkState(!Strings.isEmptyOrWhitespace(str), "ApplicationId must be set.");
this.applicationId = str;
this.apiKey = str2;
this.databaseUrl = str3;
this.gaTrackingId = str4;
this.gcmSenderId = str5;
this.storageBucket = str6;
this.projectId = str7;
}
}

View File

@@ -0,0 +1,8 @@
package com.google.firebase;
/* loaded from: classes3.dex */
public class FirebaseTooManyRequestsException extends FirebaseException {
public FirebaseTooManyRequestsException(String str) {
super(str);
}
}

View File

@@ -0,0 +1,290 @@
package com.google.firebase;
/* loaded from: classes3.dex */
public final class R {
/* loaded from: classes3.dex */
public static final class attr {
public static final int alpha = 0x7f030031;
public static final int coordinatorLayoutStyle = 0x7f03016c;
public static final int font = 0x7f03022d;
public static final int fontProviderAuthority = 0x7f03022f;
public static final int fontProviderCerts = 0x7f030230;
public static final int fontProviderFetchStrategy = 0x7f030231;
public static final int fontProviderFetchTimeout = 0x7f030232;
public static final int fontProviderPackage = 0x7f030233;
public static final int fontProviderQuery = 0x7f030234;
public static final int fontStyle = 0x7f030236;
public static final int fontVariationSettings = 0x7f030237;
public static final int fontWeight = 0x7f030238;
public static final int keylines = 0x7f0302b5;
public static final int layout_anchor = 0x7f0302c6;
public static final int layout_anchorGravity = 0x7f0302c7;
public static final int layout_behavior = 0x7f0302c9;
public static final int layout_dodgeInsetEdges = 0x7f0302fa;
public static final int layout_insetEdge = 0x7f030305;
public static final int layout_keyline = 0x7f030306;
public static final int statusBarBackground = 0x7f030488;
public static final int ttcIndex = 0x7f030559;
private attr() {
}
}
/* loaded from: classes3.dex */
public static final class color {
public static final int notification_action_color_filter = 0x7f050315;
public static final int notification_icon_bg_color = 0x7f050316;
public static final int ripple_material_light = 0x7f050322;
public static final int secondary_text_default_material_light = 0x7f050324;
private color() {
}
}
/* loaded from: classes3.dex */
public static final class dimen {
public static final int compat_button_inset_horizontal_material = 0x7f06006d;
public static final int compat_button_inset_vertical_material = 0x7f06006e;
public static final int compat_button_padding_horizontal_material = 0x7f06006f;
public static final int compat_button_padding_vertical_material = 0x7f060070;
public static final int compat_control_corner_material = 0x7f060071;
public static final int compat_notification_large_icon_max_height = 0x7f060072;
public static final int compat_notification_large_icon_max_width = 0x7f060073;
public static final int notification_action_icon_size = 0x7f060385;
public static final int notification_action_text_size = 0x7f060386;
public static final int notification_big_circle_margin = 0x7f060387;
public static final int notification_content_margin_start = 0x7f060388;
public static final int notification_large_icon_height = 0x7f06038d;
public static final int notification_large_icon_width = 0x7f06038e;
public static final int notification_main_column_padding_top = 0x7f06038f;
public static final int notification_media_narrow_margin = 0x7f060391;
public static final int notification_right_icon_size = 0x7f060393;
public static final int notification_right_side_padding_top = 0x7f060394;
public static final int notification_small_icon_background_padding = 0x7f060395;
public static final int notification_small_icon_size_as_large = 0x7f060396;
public static final int notification_subtext_size = 0x7f060397;
public static final int notification_top_pad = 0x7f06039b;
public static final int notification_top_pad_large_text = 0x7f06039c;
private dimen() {
}
}
/* loaded from: classes3.dex */
public static final class drawable {
public static final int notification_action_background = 0x7f070181;
public static final int notification_bg = 0x7f070182;
public static final int notification_bg_low = 0x7f070183;
public static final int notification_bg_low_normal = 0x7f070184;
public static final int notification_bg_low_pressed = 0x7f070185;
public static final int notification_bg_normal = 0x7f070186;
public static final int notification_bg_normal_pressed = 0x7f070187;
public static final int notification_icon_background = 0x7f070188;
public static final int notification_template_icon_bg = 0x7f07018a;
public static final int notification_template_icon_low_bg = 0x7f07018b;
public static final int notification_tile_bg = 0x7f07018c;
public static final int notify_panel_notification_icon_bg = 0x7f07018d;
private drawable() {
}
}
/* loaded from: classes3.dex */
public static final class id {
public static final int accessibility_action_clickable_span = 0x7f090013;
public static final int accessibility_custom_action_0 = 0x7f090014;
public static final int accessibility_custom_action_1 = 0x7f090015;
public static final int accessibility_custom_action_10 = 0x7f090016;
public static final int accessibility_custom_action_11 = 0x7f090017;
public static final int accessibility_custom_action_12 = 0x7f090018;
public static final int accessibility_custom_action_13 = 0x7f090019;
public static final int accessibility_custom_action_14 = 0x7f09001a;
public static final int accessibility_custom_action_15 = 0x7f09001b;
public static final int accessibility_custom_action_16 = 0x7f09001c;
public static final int accessibility_custom_action_17 = 0x7f09001d;
public static final int accessibility_custom_action_18 = 0x7f09001e;
public static final int accessibility_custom_action_19 = 0x7f09001f;
public static final int accessibility_custom_action_2 = 0x7f090020;
public static final int accessibility_custom_action_20 = 0x7f090021;
public static final int accessibility_custom_action_21 = 0x7f090022;
public static final int accessibility_custom_action_22 = 0x7f090023;
public static final int accessibility_custom_action_23 = 0x7f090024;
public static final int accessibility_custom_action_24 = 0x7f090025;
public static final int accessibility_custom_action_25 = 0x7f090026;
public static final int accessibility_custom_action_26 = 0x7f090027;
public static final int accessibility_custom_action_27 = 0x7f090028;
public static final int accessibility_custom_action_28 = 0x7f090029;
public static final int accessibility_custom_action_29 = 0x7f09002a;
public static final int accessibility_custom_action_3 = 0x7f09002b;
public static final int accessibility_custom_action_30 = 0x7f09002c;
public static final int accessibility_custom_action_31 = 0x7f09002d;
public static final int accessibility_custom_action_4 = 0x7f09002e;
public static final int accessibility_custom_action_5 = 0x7f09002f;
public static final int accessibility_custom_action_6 = 0x7f090030;
public static final int accessibility_custom_action_7 = 0x7f090031;
public static final int accessibility_custom_action_8 = 0x7f090032;
public static final int accessibility_custom_action_9 = 0x7f090033;
public static final int action_container = 0x7f090045;
public static final int action_divider = 0x7f090048;
public static final int action_image = 0x7f09004a;
public static final int action_text = 0x7f090051;
public static final int actions = 0x7f090052;
public static final int async = 0x7f090071;
public static final int blocking = 0x7f090082;
public static final int bottom = 0x7f090083;
public static final int chronometer = 0x7f0900a9;
public static final int dialog_button = 0x7f09010b;
public static final int end = 0x7f090133;
public static final int forever = 0x7f090152;
public static final int icon = 0x7f090195;
public static final int icon_group = 0x7f090196;
public static final int info = 0x7f0901a9;
public static final int italic = 0x7f0901be;
public static final int left = 0x7f0901e2;
public static final int line1 = 0x7f0901e9;
public static final int line3 = 0x7f0901ea;
public static final int none = 0x7f090264;
public static final int normal = 0x7f090265;
public static final int notification_background = 0x7f090269;
public static final int notification_main_column = 0x7f09026a;
public static final int notification_main_column_container = 0x7f09026b;
public static final int right = 0x7f0902cd;
public static final int right_icon = 0x7f0902cf;
public static final int right_side = 0x7f0902d0;
public static final int start = 0x7f090322;
public static final int tag_accessibility_actions = 0x7f09035c;
public static final int tag_accessibility_clickable_spans = 0x7f09035d;
public static final int tag_accessibility_heading = 0x7f09035e;
public static final int tag_accessibility_pane_title = 0x7f09035f;
public static final int tag_screen_reader_focusable = 0x7f090363;
public static final int tag_transition_group = 0x7f090365;
public static final int tag_unhandled_key_event_manager = 0x7f090366;
public static final int tag_unhandled_key_listeners = 0x7f090367;
public static final int text = 0x7f09036d;
public static final int text2 = 0x7f09036e;
public static final int time = 0x7f09038e;
public static final int title = 0x7f090393;
public static final int top = 0x7f0903ac;
private id() {
}
}
/* loaded from: classes3.dex */
public static final class integer {
public static final int google_play_services_version = 0x7f0a0009;
public static final int status_bar_notification_info_maxnum = 0x7f0a0045;
private integer() {
}
}
/* loaded from: classes3.dex */
public static final class layout {
public static final int custom_dialog = 0x7f0c0026;
public static final int notification_action = 0x7f0c00a8;
public static final int notification_action_tombstone = 0x7f0c00a9;
public static final int notification_template_custom_big = 0x7f0c00aa;
public static final int notification_template_icon_group = 0x7f0c00ab;
public static final int notification_template_part_chronometer = 0x7f0c00ac;
public static final int notification_template_part_time = 0x7f0c00ad;
private layout() {
}
}
/* loaded from: classes3.dex */
public static final class raw {
public static final int firebase_common_keep = 0x7f120000;
private raw() {
}
}
/* loaded from: classes3.dex */
public static final class string {
public static final int common_google_play_services_unknown_issue = 0x7f1300bc;
public static final int status_bar_notification_info_overflow = 0x7f13023b;
private string() {
}
}
/* loaded from: classes3.dex */
public static final class style {
public static final int TextAppearance_Compat_Notification = 0x7f1401fb;
public static final int TextAppearance_Compat_Notification_Info = 0x7f1401fc;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f1401fd;
public static final int TextAppearance_Compat_Notification_Time = 0x7f1401fe;
public static final int TextAppearance_Compat_Notification_Title = 0x7f1401ff;
public static final int Widget_Compat_NotificationActionContainer = 0x7f1403a1;
public static final int Widget_Compat_NotificationActionText = 0x7f1403a2;
public static final int Widget_Support_CoordinatorLayout = 0x7f1404d7;
private style() {
}
}
/* loaded from: classes3.dex */
public static final class styleable {
public static final int ColorStateListItem_alpha = 0x00000003;
public static final int ColorStateListItem_android_alpha = 0x00000001;
public static final int ColorStateListItem_android_color = 0x00000000;
public static final int ColorStateListItem_android_lStar = 0x00000002;
public static final int ColorStateListItem_lStar = 0x00000004;
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0x00000000;
public static final int CoordinatorLayout_Layout_layout_anchor = 0x00000001;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 0x00000002;
public static final int CoordinatorLayout_Layout_layout_behavior = 0x00000003;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 0x00000004;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 0x00000005;
public static final int CoordinatorLayout_Layout_layout_keyline = 0x00000006;
public static final int CoordinatorLayout_keylines = 0x00000000;
public static final int CoordinatorLayout_statusBarBackground = 0x00000001;
public static final int FontFamilyFont_android_font = 0x00000000;
public static final int FontFamilyFont_android_fontStyle = 0x00000002;
public static final int FontFamilyFont_android_fontVariationSettings = 0x00000004;
public static final int FontFamilyFont_android_fontWeight = 0x00000001;
public static final int FontFamilyFont_android_ttcIndex = 0x00000003;
public static final int FontFamilyFont_font = 0x00000005;
public static final int FontFamilyFont_fontStyle = 0x00000006;
public static final int FontFamilyFont_fontVariationSettings = 0x00000007;
public static final int FontFamilyFont_fontWeight = 0x00000008;
public static final int FontFamilyFont_ttcIndex = 0x00000009;
public static final int FontFamily_fontProviderAuthority = 0x00000000;
public static final int FontFamily_fontProviderCerts = 0x00000001;
public static final int FontFamily_fontProviderFetchStrategy = 0x00000002;
public static final int FontFamily_fontProviderFetchTimeout = 0x00000003;
public static final int FontFamily_fontProviderPackage = 0x00000004;
public static final int FontFamily_fontProviderQuery = 0x00000005;
public static final int FontFamily_fontProviderSystemFontFamily = 0x00000006;
public static final int GradientColorItem_android_color = 0x00000000;
public static final int GradientColorItem_android_offset = 0x00000001;
public static final int GradientColor_android_centerColor = 0x00000007;
public static final int GradientColor_android_centerX = 0x00000003;
public static final int GradientColor_android_centerY = 0x00000004;
public static final int GradientColor_android_endColor = 0x00000001;
public static final int GradientColor_android_endX = 0x0000000a;
public static final int GradientColor_android_endY = 0x0000000b;
public static final int GradientColor_android_gradientRadius = 0x00000005;
public static final int GradientColor_android_startColor = 0x00000000;
public static final int GradientColor_android_startX = 0x00000008;
public static final int GradientColor_android_startY = 0x00000009;
public static final int GradientColor_android_tileMode = 0x00000006;
public static final int GradientColor_android_type = 0x00000002;
public static final int[] ColorStateListItem = {android.R.attr.color, android.R.attr.alpha, 16844359, com.adif.elcanomovil.R.attr.alpha, com.adif.elcanomovil.R.attr.lStar};
public static final int[] CoordinatorLayout = {com.adif.elcanomovil.R.attr.keylines, com.adif.elcanomovil.R.attr.statusBarBackground};
public static final int[] CoordinatorLayout_Layout = {android.R.attr.layout_gravity, com.adif.elcanomovil.R.attr.layout_anchor, com.adif.elcanomovil.R.attr.layout_anchorGravity, com.adif.elcanomovil.R.attr.layout_behavior, com.adif.elcanomovil.R.attr.layout_dodgeInsetEdges, com.adif.elcanomovil.R.attr.layout_insetEdge, com.adif.elcanomovil.R.attr.layout_keyline};
public static final int[] FontFamily = {com.adif.elcanomovil.R.attr.fontProviderAuthority, com.adif.elcanomovil.R.attr.fontProviderCerts, com.adif.elcanomovil.R.attr.fontProviderFetchStrategy, com.adif.elcanomovil.R.attr.fontProviderFetchTimeout, com.adif.elcanomovil.R.attr.fontProviderPackage, com.adif.elcanomovil.R.attr.fontProviderQuery, com.adif.elcanomovil.R.attr.fontProviderSystemFontFamily};
public static final int[] FontFamilyFont = {android.R.attr.font, android.R.attr.fontWeight, android.R.attr.fontStyle, android.R.attr.ttcIndex, android.R.attr.fontVariationSettings, com.adif.elcanomovil.R.attr.font, com.adif.elcanomovil.R.attr.fontStyle, com.adif.elcanomovil.R.attr.fontVariationSettings, com.adif.elcanomovil.R.attr.fontWeight, com.adif.elcanomovil.R.attr.ttcIndex};
public static final int[] GradientColor = {android.R.attr.startColor, android.R.attr.endColor, android.R.attr.type, android.R.attr.centerX, android.R.attr.centerY, android.R.attr.gradientRadius, android.R.attr.tileMode, android.R.attr.centerColor, android.R.attr.startX, android.R.attr.startY, android.R.attr.endX, android.R.attr.endY};
public static final int[] GradientColorItem = {android.R.attr.color, android.R.attr.offset};
private styleable() {
}
}
private R() {
}
}

View File

@@ -0,0 +1,22 @@
package com.google.firebase;
import android.os.SystemClock;
import com.google.auto.value.AutoValue;
@AutoValue
/* loaded from: classes3.dex */
public abstract class StartupTime {
public static StartupTime create(long j4, long j5, long j6) {
return new AutoValue_StartupTime(j4, j5, j6);
}
public static StartupTime now() {
return create(System.currentTimeMillis(), SystemClock.elapsedRealtime(), SystemClock.uptimeMillis());
}
public abstract long getElapsedRealtime();
public abstract long getEpochMillis();
public abstract long getUptimeMillis();
}

View File

@@ -0,0 +1,41 @@
package com.google.firebase;
import android.content.Context;
import com.google.firebase.heartbeatinfo.DefaultHeartBeatController;
import com.google.firebase.heartbeatinfo.HeartBeatInfoStorage;
import com.google.firebase.inject.Provider;
/* loaded from: classes3.dex */
public final /* synthetic */ class a implements Provider {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f5918a = 1;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Context f5919b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ Object f5920c;
public /* synthetic */ a(Context context, String str) {
this.f5919b = context;
this.f5920c = str;
}
@Override // com.google.firebase.inject.Provider
public final Object get() {
HeartBeatInfoStorage lambda$new$2;
switch (this.f5918a) {
case 0:
return FirebaseApp.b((FirebaseApp) this.f5920c, this.f5919b);
default:
lambda$new$2 = DefaultHeartBeatController.lambda$new$2(this.f5919b, (String) this.f5920c);
return lambda$new$2;
}
}
public /* synthetic */ a(FirebaseApp firebaseApp, Context context) {
this.f5920c = firebaseApp;
this.f5919b = context;
}
}

View File

@@ -0,0 +1,12 @@
package com.google.firebase.abt;
/* loaded from: classes3.dex */
public class AbtException extends Exception {
public AbtException(String str) {
super(str);
}
public AbtException(String str, Exception exc) {
super(str, exc);
}
}

View File

@@ -0,0 +1,121 @@
package com.google.firebase.abt;
import android.text.TextUtils;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
/* loaded from: classes3.dex */
public class AbtExperimentInfo {
static final String EXPERIMENT_ID_KEY = "experimentId";
static final String TRIGGER_EVENT_KEY = "triggerEvent";
static final String VARIANT_ID_KEY = "variantId";
private final String experimentId;
private final Date experimentStartTime;
private final long timeToLiveInMillis;
private final String triggerEventName;
private final long triggerTimeoutInMillis;
private final String variantId;
static final String EXPERIMENT_START_TIME_KEY = "experimentStartTime";
static final String TIME_TO_LIVE_KEY = "timeToLiveMillis";
static final String TRIGGER_TIMEOUT_KEY = "triggerTimeoutMillis";
private static final String[] ALL_REQUIRED_KEYS = {"experimentId", EXPERIMENT_START_TIME_KEY, TIME_TO_LIVE_KEY, TRIGGER_TIMEOUT_KEY, "variantId"};
static final DateFormat protoTimestampStringParser = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.US);
public AbtExperimentInfo(String str, String str2, String str3, Date date, long j4, long j5) {
this.experimentId = str;
this.variantId = str2;
this.triggerEventName = str3;
this.experimentStartTime = date;
this.triggerTimeoutInMillis = j4;
this.timeToLiveInMillis = j5;
}
public static AbtExperimentInfo fromConditionalUserProperty(AnalyticsConnector.ConditionalUserProperty conditionalUserProperty) {
String str = conditionalUserProperty.triggerEventName;
if (str == null) {
str = "";
}
return new AbtExperimentInfo(conditionalUserProperty.name, String.valueOf(conditionalUserProperty.value), str, new Date(conditionalUserProperty.creationTimestamp), conditionalUserProperty.triggerTimeout, conditionalUserProperty.timeToLive);
}
public static AbtExperimentInfo fromMap(Map<String, String> map) throws AbtException {
validateExperimentInfoMap(map);
try {
return new AbtExperimentInfo(map.get("experimentId"), map.get("variantId"), map.containsKey(TRIGGER_EVENT_KEY) ? map.get(TRIGGER_EVENT_KEY) : "", protoTimestampStringParser.parse(map.get(EXPERIMENT_START_TIME_KEY)), Long.parseLong(map.get(TRIGGER_TIMEOUT_KEY)), Long.parseLong(map.get(TIME_TO_LIVE_KEY)));
} catch (NumberFormatException e4) {
throw new AbtException("Could not process experiment: one of the durations could not be converted into a long.", e4);
} catch (ParseException e5) {
throw new AbtException("Could not process experiment: parsing experiment start time failed.", e5);
}
}
public static void validateAbtExperimentInfo(AbtExperimentInfo abtExperimentInfo) throws AbtException {
validateExperimentInfoMap(abtExperimentInfo.toStringMap());
}
private static void validateExperimentInfoMap(Map<String, String> map) throws AbtException {
ArrayList arrayList = new ArrayList();
for (String str : ALL_REQUIRED_KEYS) {
if (!map.containsKey(str)) {
arrayList.add(str);
}
}
if (!arrayList.isEmpty()) {
throw new AbtException(String.format("The following keys are missing from the experiment info map: %s", arrayList));
}
}
public String getExperimentId() {
return this.experimentId;
}
public long getStartTimeInMillisSinceEpoch() {
return this.experimentStartTime.getTime();
}
public long getTimeToLiveInMillis() {
return this.timeToLiveInMillis;
}
public String getTriggerEventName() {
return this.triggerEventName;
}
public long getTriggerTimeoutInMillis() {
return this.triggerTimeoutInMillis;
}
public String getVariantId() {
return this.variantId;
}
public AnalyticsConnector.ConditionalUserProperty toConditionalUserProperty(String str) {
AnalyticsConnector.ConditionalUserProperty conditionalUserProperty = new AnalyticsConnector.ConditionalUserProperty();
conditionalUserProperty.origin = str;
conditionalUserProperty.creationTimestamp = getStartTimeInMillisSinceEpoch();
conditionalUserProperty.name = this.experimentId;
conditionalUserProperty.value = this.variantId;
conditionalUserProperty.triggerEventName = TextUtils.isEmpty(this.triggerEventName) ? null : this.triggerEventName;
conditionalUserProperty.triggerTimeout = this.triggerTimeoutInMillis;
conditionalUserProperty.timeToLive = this.timeToLiveInMillis;
return conditionalUserProperty;
}
public Map<String, String> toStringMap() {
HashMap hashMap = new HashMap();
hashMap.put("experimentId", this.experimentId);
hashMap.put("variantId", this.variantId);
hashMap.put(TRIGGER_EVENT_KEY, this.triggerEventName);
hashMap.put(EXPERIMENT_START_TIME_KEY, protoTimestampStringParser.format(this.experimentStartTime));
hashMap.put(TRIGGER_TIMEOUT_KEY, Long.toString(this.triggerTimeoutInMillis));
hashMap.put(TIME_TO_LIVE_KEY, Long.toString(this.timeToLiveInMillis));
return hashMap;
}
}

View File

@@ -0,0 +1,9 @@
package com.google.firebase.abt;
/* loaded from: classes3.dex */
public final class BuildConfig {
public static final String BUILD_TYPE = "release";
public static final boolean DEBUG = false;
public static final String LIBRARY_PACKAGE_NAME = "com.google.firebase.abt";
public static final String VERSION_NAME = "21.1.1";
}

View File

@@ -0,0 +1,168 @@
package com.google.firebase.abt;
import android.content.Context;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import com.google.firebase.inject.Provider;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/* loaded from: classes3.dex */
public class FirebaseABTesting {
static final String ABT_PREFERENCES = "com.google.firebase.abt";
static final String ORIGIN_LAST_KNOWN_START_TIME_KEY_FORMAT = "%s_lastKnownExperimentStartTime";
private final Provider<AnalyticsConnector> analyticsConnector;
private Integer maxUserProperties = null;
private final String originService;
@Retention(RetentionPolicy.SOURCE)
/* loaded from: classes3.dex */
public @interface OriginService {
public static final String INAPP_MESSAGING = "fiam";
public static final String REMOTE_CONFIG = "frc";
}
public FirebaseABTesting(Context context, Provider<AnalyticsConnector> provider, String str) {
this.analyticsConnector = provider;
this.originService = str;
}
private void addExperimentToAnalytics(AnalyticsConnector.ConditionalUserProperty conditionalUserProperty) {
this.analyticsConnector.get().setConditionalUserProperty(conditionalUserProperty);
}
private void addExperiments(List<AbtExperimentInfo> list) {
ArrayDeque arrayDeque = new ArrayDeque(getAllExperimentsInAnalytics());
int maxUserPropertiesInAnalytics = getMaxUserPropertiesInAnalytics();
for (AbtExperimentInfo abtExperimentInfo : list) {
while (arrayDeque.size() >= maxUserPropertiesInAnalytics) {
removeExperimentFromAnalytics(((AnalyticsConnector.ConditionalUserProperty) arrayDeque.pollFirst()).name);
}
AnalyticsConnector.ConditionalUserProperty conditionalUserProperty = abtExperimentInfo.toConditionalUserProperty(this.originService);
addExperimentToAnalytics(conditionalUserProperty);
arrayDeque.offer(conditionalUserProperty);
}
}
private static List<AbtExperimentInfo> convertMapsToExperimentInfos(List<Map<String, String>> list) throws AbtException {
ArrayList arrayList = new ArrayList();
Iterator<Map<String, String>> it = list.iterator();
while (it.hasNext()) {
arrayList.add(AbtExperimentInfo.fromMap(it.next()));
}
return arrayList;
}
private boolean experimentsListContainsExperiment(List<AbtExperimentInfo> list, AbtExperimentInfo abtExperimentInfo) {
String experimentId = abtExperimentInfo.getExperimentId();
String variantId = abtExperimentInfo.getVariantId();
for (AbtExperimentInfo abtExperimentInfo2 : list) {
if (abtExperimentInfo2.getExperimentId().equals(experimentId) && abtExperimentInfo2.getVariantId().equals(variantId)) {
return true;
}
}
return false;
}
private List<AnalyticsConnector.ConditionalUserProperty> getAllExperimentsInAnalytics() {
return this.analyticsConnector.get().getConditionalUserProperties(this.originService, "");
}
private ArrayList<AbtExperimentInfo> getExperimentsToAdd(List<AbtExperimentInfo> list, List<AbtExperimentInfo> list2) {
ArrayList<AbtExperimentInfo> arrayList = new ArrayList<>();
for (AbtExperimentInfo abtExperimentInfo : list) {
if (!experimentsListContainsExperiment(list2, abtExperimentInfo)) {
arrayList.add(abtExperimentInfo);
}
}
return arrayList;
}
private ArrayList<AnalyticsConnector.ConditionalUserProperty> getExperimentsToRemove(List<AbtExperimentInfo> list, List<AbtExperimentInfo> list2) {
ArrayList<AnalyticsConnector.ConditionalUserProperty> arrayList = new ArrayList<>();
for (AbtExperimentInfo abtExperimentInfo : list) {
if (!experimentsListContainsExperiment(list2, abtExperimentInfo)) {
arrayList.add(abtExperimentInfo.toConditionalUserProperty(this.originService));
}
}
return arrayList;
}
private int getMaxUserPropertiesInAnalytics() {
if (this.maxUserProperties == null) {
this.maxUserProperties = Integer.valueOf(this.analyticsConnector.get().getMaxUserProperties(this.originService));
}
return this.maxUserProperties.intValue();
}
private void removeExperimentFromAnalytics(String str) {
this.analyticsConnector.get().clearConditionalUserProperty(str, null, null);
}
private void removeExperiments(Collection<AnalyticsConnector.ConditionalUserProperty> collection) {
Iterator<AnalyticsConnector.ConditionalUserProperty> it = collection.iterator();
while (it.hasNext()) {
removeExperimentFromAnalytics(it.next().name);
}
}
private void replaceAllExperimentsWith(List<AbtExperimentInfo> list) throws AbtException {
if (list.isEmpty()) {
removeAllExperiments();
return;
}
List<AbtExperimentInfo> allExperiments = getAllExperiments();
removeExperiments(getExperimentsToRemove(allExperiments, list));
addExperiments(getExperimentsToAdd(list, allExperiments));
}
private void throwAbtExceptionIfAnalyticsIsNull() throws AbtException {
if (this.analyticsConnector.get() == null) {
throw new AbtException("The Analytics SDK is not available. Please check that the Analytics SDK is included in your app dependencies.");
}
}
public List<AbtExperimentInfo> getAllExperiments() throws AbtException {
throwAbtExceptionIfAnalyticsIsNull();
List<AnalyticsConnector.ConditionalUserProperty> allExperimentsInAnalytics = getAllExperimentsInAnalytics();
ArrayList arrayList = new ArrayList();
Iterator<AnalyticsConnector.ConditionalUserProperty> it = allExperimentsInAnalytics.iterator();
while (it.hasNext()) {
arrayList.add(AbtExperimentInfo.fromConditionalUserProperty(it.next()));
}
return arrayList;
}
public void removeAllExperiments() throws AbtException {
throwAbtExceptionIfAnalyticsIsNull();
removeExperiments(getAllExperimentsInAnalytics());
}
public void replaceAllExperiments(List<Map<String, String>> list) throws AbtException {
throwAbtExceptionIfAnalyticsIsNull();
if (list == null) {
throw new IllegalArgumentException("The replacementExperiments list is null.");
}
replaceAllExperimentsWith(convertMapsToExperimentInfos(list));
}
public void reportActiveExperiment(AbtExperimentInfo abtExperimentInfo) throws AbtException {
throwAbtExceptionIfAnalyticsIsNull();
AbtExperimentInfo.validateAbtExperimentInfo(abtExperimentInfo);
ArrayList arrayList = new ArrayList();
Map<String, String> stringMap = abtExperimentInfo.toStringMap();
stringMap.remove("triggerEvent");
arrayList.add(AbtExperimentInfo.fromMap(stringMap));
addExperiments(arrayList);
}
public void validateRunningExperiments(List<AbtExperimentInfo> list) throws AbtException {
throwAbtExceptionIfAnalyticsIsNull();
removeExperiments(getExperimentsToRemove(getAllExperiments(), list));
}
}

View File

@@ -0,0 +1,290 @@
package com.google.firebase.abt;
/* loaded from: classes3.dex */
public final class R {
/* loaded from: classes3.dex */
public static final class attr {
public static final int alpha = 0x7f030031;
public static final int coordinatorLayoutStyle = 0x7f03016c;
public static final int font = 0x7f03022d;
public static final int fontProviderAuthority = 0x7f03022f;
public static final int fontProviderCerts = 0x7f030230;
public static final int fontProviderFetchStrategy = 0x7f030231;
public static final int fontProviderFetchTimeout = 0x7f030232;
public static final int fontProviderPackage = 0x7f030233;
public static final int fontProviderQuery = 0x7f030234;
public static final int fontStyle = 0x7f030236;
public static final int fontVariationSettings = 0x7f030237;
public static final int fontWeight = 0x7f030238;
public static final int keylines = 0x7f0302b5;
public static final int layout_anchor = 0x7f0302c6;
public static final int layout_anchorGravity = 0x7f0302c7;
public static final int layout_behavior = 0x7f0302c9;
public static final int layout_dodgeInsetEdges = 0x7f0302fa;
public static final int layout_insetEdge = 0x7f030305;
public static final int layout_keyline = 0x7f030306;
public static final int statusBarBackground = 0x7f030488;
public static final int ttcIndex = 0x7f030559;
private attr() {
}
}
/* loaded from: classes3.dex */
public static final class color {
public static final int notification_action_color_filter = 0x7f050315;
public static final int notification_icon_bg_color = 0x7f050316;
public static final int ripple_material_light = 0x7f050322;
public static final int secondary_text_default_material_light = 0x7f050324;
private color() {
}
}
/* loaded from: classes3.dex */
public static final class dimen {
public static final int compat_button_inset_horizontal_material = 0x7f06006d;
public static final int compat_button_inset_vertical_material = 0x7f06006e;
public static final int compat_button_padding_horizontal_material = 0x7f06006f;
public static final int compat_button_padding_vertical_material = 0x7f060070;
public static final int compat_control_corner_material = 0x7f060071;
public static final int compat_notification_large_icon_max_height = 0x7f060072;
public static final int compat_notification_large_icon_max_width = 0x7f060073;
public static final int notification_action_icon_size = 0x7f060385;
public static final int notification_action_text_size = 0x7f060386;
public static final int notification_big_circle_margin = 0x7f060387;
public static final int notification_content_margin_start = 0x7f060388;
public static final int notification_large_icon_height = 0x7f06038d;
public static final int notification_large_icon_width = 0x7f06038e;
public static final int notification_main_column_padding_top = 0x7f06038f;
public static final int notification_media_narrow_margin = 0x7f060391;
public static final int notification_right_icon_size = 0x7f060393;
public static final int notification_right_side_padding_top = 0x7f060394;
public static final int notification_small_icon_background_padding = 0x7f060395;
public static final int notification_small_icon_size_as_large = 0x7f060396;
public static final int notification_subtext_size = 0x7f060397;
public static final int notification_top_pad = 0x7f06039b;
public static final int notification_top_pad_large_text = 0x7f06039c;
private dimen() {
}
}
/* loaded from: classes3.dex */
public static final class drawable {
public static final int notification_action_background = 0x7f070181;
public static final int notification_bg = 0x7f070182;
public static final int notification_bg_low = 0x7f070183;
public static final int notification_bg_low_normal = 0x7f070184;
public static final int notification_bg_low_pressed = 0x7f070185;
public static final int notification_bg_normal = 0x7f070186;
public static final int notification_bg_normal_pressed = 0x7f070187;
public static final int notification_icon_background = 0x7f070188;
public static final int notification_template_icon_bg = 0x7f07018a;
public static final int notification_template_icon_low_bg = 0x7f07018b;
public static final int notification_tile_bg = 0x7f07018c;
public static final int notify_panel_notification_icon_bg = 0x7f07018d;
private drawable() {
}
}
/* loaded from: classes3.dex */
public static final class id {
public static final int accessibility_action_clickable_span = 0x7f090013;
public static final int accessibility_custom_action_0 = 0x7f090014;
public static final int accessibility_custom_action_1 = 0x7f090015;
public static final int accessibility_custom_action_10 = 0x7f090016;
public static final int accessibility_custom_action_11 = 0x7f090017;
public static final int accessibility_custom_action_12 = 0x7f090018;
public static final int accessibility_custom_action_13 = 0x7f090019;
public static final int accessibility_custom_action_14 = 0x7f09001a;
public static final int accessibility_custom_action_15 = 0x7f09001b;
public static final int accessibility_custom_action_16 = 0x7f09001c;
public static final int accessibility_custom_action_17 = 0x7f09001d;
public static final int accessibility_custom_action_18 = 0x7f09001e;
public static final int accessibility_custom_action_19 = 0x7f09001f;
public static final int accessibility_custom_action_2 = 0x7f090020;
public static final int accessibility_custom_action_20 = 0x7f090021;
public static final int accessibility_custom_action_21 = 0x7f090022;
public static final int accessibility_custom_action_22 = 0x7f090023;
public static final int accessibility_custom_action_23 = 0x7f090024;
public static final int accessibility_custom_action_24 = 0x7f090025;
public static final int accessibility_custom_action_25 = 0x7f090026;
public static final int accessibility_custom_action_26 = 0x7f090027;
public static final int accessibility_custom_action_27 = 0x7f090028;
public static final int accessibility_custom_action_28 = 0x7f090029;
public static final int accessibility_custom_action_29 = 0x7f09002a;
public static final int accessibility_custom_action_3 = 0x7f09002b;
public static final int accessibility_custom_action_30 = 0x7f09002c;
public static final int accessibility_custom_action_31 = 0x7f09002d;
public static final int accessibility_custom_action_4 = 0x7f09002e;
public static final int accessibility_custom_action_5 = 0x7f09002f;
public static final int accessibility_custom_action_6 = 0x7f090030;
public static final int accessibility_custom_action_7 = 0x7f090031;
public static final int accessibility_custom_action_8 = 0x7f090032;
public static final int accessibility_custom_action_9 = 0x7f090033;
public static final int action_container = 0x7f090045;
public static final int action_divider = 0x7f090048;
public static final int action_image = 0x7f09004a;
public static final int action_text = 0x7f090051;
public static final int actions = 0x7f090052;
public static final int async = 0x7f090071;
public static final int blocking = 0x7f090082;
public static final int bottom = 0x7f090083;
public static final int chronometer = 0x7f0900a9;
public static final int dialog_button = 0x7f09010b;
public static final int end = 0x7f090133;
public static final int forever = 0x7f090152;
public static final int icon = 0x7f090195;
public static final int icon_group = 0x7f090196;
public static final int info = 0x7f0901a9;
public static final int italic = 0x7f0901be;
public static final int left = 0x7f0901e2;
public static final int line1 = 0x7f0901e9;
public static final int line3 = 0x7f0901ea;
public static final int none = 0x7f090264;
public static final int normal = 0x7f090265;
public static final int notification_background = 0x7f090269;
public static final int notification_main_column = 0x7f09026a;
public static final int notification_main_column_container = 0x7f09026b;
public static final int right = 0x7f0902cd;
public static final int right_icon = 0x7f0902cf;
public static final int right_side = 0x7f0902d0;
public static final int start = 0x7f090322;
public static final int tag_accessibility_actions = 0x7f09035c;
public static final int tag_accessibility_clickable_spans = 0x7f09035d;
public static final int tag_accessibility_heading = 0x7f09035e;
public static final int tag_accessibility_pane_title = 0x7f09035f;
public static final int tag_screen_reader_focusable = 0x7f090363;
public static final int tag_transition_group = 0x7f090365;
public static final int tag_unhandled_key_event_manager = 0x7f090366;
public static final int tag_unhandled_key_listeners = 0x7f090367;
public static final int text = 0x7f09036d;
public static final int text2 = 0x7f09036e;
public static final int time = 0x7f09038e;
public static final int title = 0x7f090393;
public static final int top = 0x7f0903ac;
private id() {
}
}
/* loaded from: classes3.dex */
public static final class integer {
public static final int google_play_services_version = 0x7f0a0009;
public static final int status_bar_notification_info_maxnum = 0x7f0a0045;
private integer() {
}
}
/* loaded from: classes3.dex */
public static final class layout {
public static final int custom_dialog = 0x7f0c0026;
public static final int notification_action = 0x7f0c00a8;
public static final int notification_action_tombstone = 0x7f0c00a9;
public static final int notification_template_custom_big = 0x7f0c00aa;
public static final int notification_template_icon_group = 0x7f0c00ab;
public static final int notification_template_part_chronometer = 0x7f0c00ac;
public static final int notification_template_part_time = 0x7f0c00ad;
private layout() {
}
}
/* loaded from: classes3.dex */
public static final class raw {
public static final int firebase_common_keep = 0x7f120000;
private raw() {
}
}
/* loaded from: classes3.dex */
public static final class string {
public static final int common_google_play_services_unknown_issue = 0x7f1300bc;
public static final int status_bar_notification_info_overflow = 0x7f13023b;
private string() {
}
}
/* loaded from: classes3.dex */
public static final class style {
public static final int TextAppearance_Compat_Notification = 0x7f1401fb;
public static final int TextAppearance_Compat_Notification_Info = 0x7f1401fc;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f1401fd;
public static final int TextAppearance_Compat_Notification_Time = 0x7f1401fe;
public static final int TextAppearance_Compat_Notification_Title = 0x7f1401ff;
public static final int Widget_Compat_NotificationActionContainer = 0x7f1403a1;
public static final int Widget_Compat_NotificationActionText = 0x7f1403a2;
public static final int Widget_Support_CoordinatorLayout = 0x7f1404d7;
private style() {
}
}
/* loaded from: classes3.dex */
public static final class styleable {
public static final int ColorStateListItem_alpha = 0x00000003;
public static final int ColorStateListItem_android_alpha = 0x00000001;
public static final int ColorStateListItem_android_color = 0x00000000;
public static final int ColorStateListItem_android_lStar = 0x00000002;
public static final int ColorStateListItem_lStar = 0x00000004;
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0x00000000;
public static final int CoordinatorLayout_Layout_layout_anchor = 0x00000001;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 0x00000002;
public static final int CoordinatorLayout_Layout_layout_behavior = 0x00000003;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 0x00000004;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 0x00000005;
public static final int CoordinatorLayout_Layout_layout_keyline = 0x00000006;
public static final int CoordinatorLayout_keylines = 0x00000000;
public static final int CoordinatorLayout_statusBarBackground = 0x00000001;
public static final int FontFamilyFont_android_font = 0x00000000;
public static final int FontFamilyFont_android_fontStyle = 0x00000002;
public static final int FontFamilyFont_android_fontVariationSettings = 0x00000004;
public static final int FontFamilyFont_android_fontWeight = 0x00000001;
public static final int FontFamilyFont_android_ttcIndex = 0x00000003;
public static final int FontFamilyFont_font = 0x00000005;
public static final int FontFamilyFont_fontStyle = 0x00000006;
public static final int FontFamilyFont_fontVariationSettings = 0x00000007;
public static final int FontFamilyFont_fontWeight = 0x00000008;
public static final int FontFamilyFont_ttcIndex = 0x00000009;
public static final int FontFamily_fontProviderAuthority = 0x00000000;
public static final int FontFamily_fontProviderCerts = 0x00000001;
public static final int FontFamily_fontProviderFetchStrategy = 0x00000002;
public static final int FontFamily_fontProviderFetchTimeout = 0x00000003;
public static final int FontFamily_fontProviderPackage = 0x00000004;
public static final int FontFamily_fontProviderQuery = 0x00000005;
public static final int FontFamily_fontProviderSystemFontFamily = 0x00000006;
public static final int GradientColorItem_android_color = 0x00000000;
public static final int GradientColorItem_android_offset = 0x00000001;
public static final int GradientColor_android_centerColor = 0x00000007;
public static final int GradientColor_android_centerX = 0x00000003;
public static final int GradientColor_android_centerY = 0x00000004;
public static final int GradientColor_android_endColor = 0x00000001;
public static final int GradientColor_android_endX = 0x0000000a;
public static final int GradientColor_android_endY = 0x0000000b;
public static final int GradientColor_android_gradientRadius = 0x00000005;
public static final int GradientColor_android_startColor = 0x00000000;
public static final int GradientColor_android_startX = 0x00000008;
public static final int GradientColor_android_startY = 0x00000009;
public static final int GradientColor_android_tileMode = 0x00000006;
public static final int GradientColor_android_type = 0x00000002;
public static final int[] ColorStateListItem = {android.R.attr.color, android.R.attr.alpha, 16844359, com.adif.elcanomovil.R.attr.alpha, com.adif.elcanomovil.R.attr.lStar};
public static final int[] CoordinatorLayout = {com.adif.elcanomovil.R.attr.keylines, com.adif.elcanomovil.R.attr.statusBarBackground};
public static final int[] CoordinatorLayout_Layout = {android.R.attr.layout_gravity, com.adif.elcanomovil.R.attr.layout_anchor, com.adif.elcanomovil.R.attr.layout_anchorGravity, com.adif.elcanomovil.R.attr.layout_behavior, com.adif.elcanomovil.R.attr.layout_dodgeInsetEdges, com.adif.elcanomovil.R.attr.layout_insetEdge, com.adif.elcanomovil.R.attr.layout_keyline};
public static final int[] FontFamily = {com.adif.elcanomovil.R.attr.fontProviderAuthority, com.adif.elcanomovil.R.attr.fontProviderCerts, com.adif.elcanomovil.R.attr.fontProviderFetchStrategy, com.adif.elcanomovil.R.attr.fontProviderFetchTimeout, com.adif.elcanomovil.R.attr.fontProviderPackage, com.adif.elcanomovil.R.attr.fontProviderQuery, com.adif.elcanomovil.R.attr.fontProviderSystemFontFamily};
public static final int[] FontFamilyFont = {android.R.attr.font, android.R.attr.fontWeight, android.R.attr.fontStyle, android.R.attr.ttcIndex, android.R.attr.fontVariationSettings, com.adif.elcanomovil.R.attr.font, com.adif.elcanomovil.R.attr.fontStyle, com.adif.elcanomovil.R.attr.fontVariationSettings, com.adif.elcanomovil.R.attr.fontWeight, com.adif.elcanomovil.R.attr.ttcIndex};
public static final int[] GradientColor = {android.R.attr.startColor, android.R.attr.endColor, android.R.attr.type, android.R.attr.centerX, android.R.attr.centerY, android.R.attr.gradientRadius, android.R.attr.tileMode, android.R.attr.centerColor, android.R.attr.startX, android.R.attr.startY, android.R.attr.endX, android.R.attr.endY};
public static final int[] GradientColorItem = {android.R.attr.color, android.R.attr.offset};
private styleable() {
}
}
private R() {
}
}

View File

@@ -0,0 +1,35 @@
package com.google.firebase.abt.component;
import android.content.Context;
import com.google.firebase.abt.FirebaseABTesting;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import com.google.firebase.inject.Provider;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes3.dex */
public class AbtComponent {
private final Map<String, FirebaseABTesting> abtOriginInstances = new HashMap();
private final Provider<AnalyticsConnector> analyticsConnector;
private final Context appContext;
public AbtComponent(Context context, Provider<AnalyticsConnector> provider) {
this.appContext = context;
this.analyticsConnector = provider;
}
public FirebaseABTesting createAbtInstance(String str) {
return new FirebaseABTesting(this.appContext, this.analyticsConnector, str);
}
public synchronized FirebaseABTesting get(String str) {
try {
if (!this.abtOriginInstances.containsKey(str)) {
this.abtOriginInstances.put(str, createAbtInstance(str));
}
} catch (Throwable th) {
throw th;
}
return this.abtOriginInstances.get(str);
}
}

View File

@@ -0,0 +1,33 @@
package com.google.firebase.abt.component;
import M2.a;
import android.content.Context;
import androidx.annotation.Keep;
import com.google.firebase.abt.BuildConfig;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentContainer;
import com.google.firebase.components.ComponentRegistrar;
import com.google.firebase.components.Dependency;
import com.google.firebase.platforminfo.LibraryVersionComponent;
import java.util.Arrays;
import java.util.List;
@Keep
/* loaded from: classes3.dex */
public class AbtRegistrar implements ComponentRegistrar {
private static final String LIBRARY_NAME = "fire-abt";
public static /* synthetic */ AbtComponent a(ComponentContainer componentContainer) {
return lambda$getComponents$0(componentContainer);
}
public static /* synthetic */ AbtComponent lambda$getComponents$0(ComponentContainer componentContainer) {
return new AbtComponent((Context) componentContainer.get(Context.class), componentContainer.getProvider(AnalyticsConnector.class));
}
@Override // com.google.firebase.components.ComponentRegistrar
public List<Component<?>> getComponents() {
return Arrays.asList(Component.builder(AbtComponent.class).name(LIBRARY_NAME).add(Dependency.required((Class<?>) Context.class)).add(Dependency.optionalProvider((Class<?>) AnalyticsConnector.class)).factory(new a(0)).build(), LibraryVersionComponent.create(LIBRARY_NAME, BuildConfig.VERSION_NAME));
}
}

View File

@@ -0,0 +1,293 @@
package com.google.firebase.analytics;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Keep;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.internal.measurement.zzef;
import com.google.android.gms.measurement.internal.zzil;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.Tasks;
import com.google.firebase.installations.FirebaseInstallations;
import java.util.Map;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.checkerframework.checker.nullness.qual.EnsuresNonNull;
/* loaded from: classes3.dex */
public final class FirebaseAnalytics {
private static volatile FirebaseAnalytics zza;
private final zzef zzb;
private ExecutorService zzc;
/* loaded from: classes3.dex */
public enum ConsentStatus {
GRANTED,
DENIED
}
/* loaded from: classes3.dex */
public enum ConsentType {
AD_STORAGE,
ANALYTICS_STORAGE
}
/* loaded from: classes3.dex */
public static class Event {
public static final String ADD_PAYMENT_INFO = "add_payment_info";
public static final String ADD_SHIPPING_INFO = "add_shipping_info";
public static final String ADD_TO_CART = "add_to_cart";
public static final String ADD_TO_WISHLIST = "add_to_wishlist";
public static final String AD_IMPRESSION = "ad_impression";
public static final String APP_OPEN = "app_open";
public static final String BEGIN_CHECKOUT = "begin_checkout";
public static final String CAMPAIGN_DETAILS = "campaign_details";
public static final String EARN_VIRTUAL_CURRENCY = "earn_virtual_currency";
public static final String GENERATE_LEAD = "generate_lead";
public static final String JOIN_GROUP = "join_group";
public static final String LEVEL_END = "level_end";
public static final String LEVEL_START = "level_start";
public static final String LEVEL_UP = "level_up";
public static final String LOGIN = "login";
public static final String POST_SCORE = "post_score";
public static final String PURCHASE = "purchase";
public static final String REFUND = "refund";
public static final String REMOVE_FROM_CART = "remove_from_cart";
public static final String SCREEN_VIEW = "screen_view";
public static final String SEARCH = "search";
public static final String SELECT_CONTENT = "select_content";
public static final String SELECT_ITEM = "select_item";
public static final String SELECT_PROMOTION = "select_promotion";
public static final String SHARE = "share";
public static final String SIGN_UP = "sign_up";
public static final String SPEND_VIRTUAL_CURRENCY = "spend_virtual_currency";
public static final String TUTORIAL_BEGIN = "tutorial_begin";
public static final String TUTORIAL_COMPLETE = "tutorial_complete";
public static final String UNLOCK_ACHIEVEMENT = "unlock_achievement";
public static final String VIEW_CART = "view_cart";
public static final String VIEW_ITEM = "view_item";
public static final String VIEW_ITEM_LIST = "view_item_list";
public static final String VIEW_PROMOTION = "view_promotion";
public static final String VIEW_SEARCH_RESULTS = "view_search_results";
}
/* loaded from: classes3.dex */
public static class Param {
public static final String ACHIEVEMENT_ID = "achievement_id";
public static final String ACLID = "aclid";
public static final String AD_FORMAT = "ad_format";
public static final String AD_PLATFORM = "ad_platform";
public static final String AD_SOURCE = "ad_source";
public static final String AD_UNIT_NAME = "ad_unit_name";
public static final String AFFILIATION = "affiliation";
public static final String CAMPAIGN = "campaign";
public static final String CAMPAIGN_ID = "campaign_id";
public static final String CHARACTER = "character";
public static final String CONTENT = "content";
public static final String CONTENT_TYPE = "content_type";
public static final String COUPON = "coupon";
public static final String CP1 = "cp1";
public static final String CREATIVE_FORMAT = "creative_format";
public static final String CREATIVE_NAME = "creative_name";
public static final String CREATIVE_SLOT = "creative_slot";
public static final String CURRENCY = "currency";
public static final String DESTINATION = "destination";
public static final String DISCOUNT = "discount";
public static final String END_DATE = "end_date";
public static final String EXTEND_SESSION = "extend_session";
public static final String FLIGHT_NUMBER = "flight_number";
public static final String GROUP_ID = "group_id";
public static final String INDEX = "index";
public static final String ITEMS = "items";
public static final String ITEM_BRAND = "item_brand";
public static final String ITEM_CATEGORY = "item_category";
public static final String ITEM_CATEGORY2 = "item_category2";
public static final String ITEM_CATEGORY3 = "item_category3";
public static final String ITEM_CATEGORY4 = "item_category4";
public static final String ITEM_CATEGORY5 = "item_category5";
public static final String ITEM_ID = "item_id";
public static final String ITEM_LIST_ID = "item_list_id";
public static final String ITEM_LIST_NAME = "item_list_name";
public static final String ITEM_NAME = "item_name";
public static final String ITEM_VARIANT = "item_variant";
public static final String LEVEL = "level";
public static final String LEVEL_NAME = "level_name";
public static final String LOCATION = "location";
public static final String LOCATION_ID = "location_id";
public static final String MARKETING_TACTIC = "marketing_tactic";
public static final String MEDIUM = "medium";
public static final String METHOD = "method";
public static final String NUMBER_OF_NIGHTS = "number_of_nights";
public static final String NUMBER_OF_PASSENGERS = "number_of_passengers";
public static final String NUMBER_OF_ROOMS = "number_of_rooms";
public static final String ORIGIN = "origin";
public static final String PAYMENT_TYPE = "payment_type";
public static final String PRICE = "price";
public static final String PROMOTION_ID = "promotion_id";
public static final String PROMOTION_NAME = "promotion_name";
public static final String QUANTITY = "quantity";
public static final String SCORE = "score";
public static final String SCREEN_CLASS = "screen_class";
public static final String SCREEN_NAME = "screen_name";
public static final String SEARCH_TERM = "search_term";
public static final String SHIPPING = "shipping";
public static final String SHIPPING_TIER = "shipping_tier";
public static final String SOURCE = "source";
public static final String SOURCE_PLATFORM = "source_platform";
public static final String START_DATE = "start_date";
public static final String SUCCESS = "success";
public static final String TAX = "tax";
public static final String TERM = "term";
public static final String TRANSACTION_ID = "transaction_id";
public static final String TRAVEL_CLASS = "travel_class";
public static final String VALUE = "value";
public static final String VIRTUAL_CURRENCY_NAME = "virtual_currency_name";
}
/* loaded from: classes3.dex */
public static class UserProperty {
public static final String ALLOW_AD_PERSONALIZATION_SIGNALS = "allow_personalized_ads";
public static final String SIGN_UP_METHOD = "sign_up_method";
}
public FirebaseAnalytics(zzef zzefVar) {
Preconditions.checkNotNull(zzefVar);
this.zzb = zzefVar;
}
@Keep
public static FirebaseAnalytics getInstance(Context context) {
if (zza == null) {
synchronized (FirebaseAnalytics.class) {
try {
if (zza == null) {
zza = new FirebaseAnalytics(zzef.zzg(context, null, null, null, null));
}
} finally {
}
}
}
return zza;
}
@Keep
public static zzil getScionFrontendApiImplementation(Context context, Bundle bundle) {
zzef zzg = zzef.zzg(context, null, null, null, bundle);
if (zzg == null) {
return null;
}
return new zzd(zzg);
}
@EnsuresNonNull({"this.executor"})
private final ExecutorService zzb() {
FirebaseAnalytics firebaseAnalytics;
ExecutorService executorService;
synchronized (FirebaseAnalytics.class) {
try {
if (this.zzc == null) {
firebaseAnalytics = this;
firebaseAnalytics.zzc = new zza(firebaseAnalytics, 0, 1, 30L, TimeUnit.SECONDS, new ArrayBlockingQueue(100));
} else {
firebaseAnalytics = this;
}
executorService = firebaseAnalytics.zzc;
} catch (Throwable th) {
throw th;
}
}
return executorService;
}
public Task<String> getAppInstanceId() {
try {
return Tasks.call(zzb(), new zzb(this));
} catch (RuntimeException e4) {
this.zzb.zzB(5, "Failed to schedule task for getAppInstanceId", null, null, null);
return Tasks.forException(e4);
}
}
@Keep
public String getFirebaseInstanceId() {
try {
return (String) Tasks.await(FirebaseInstallations.getInstance().getId(), 30000L, TimeUnit.MILLISECONDS);
} catch (InterruptedException e4) {
throw new IllegalStateException(e4);
} catch (ExecutionException e5) {
throw new IllegalStateException(e5.getCause());
} catch (TimeoutException unused) {
throw new IllegalThreadStateException("Firebase Installations getId Task has timed out.");
}
}
public Task<Long> getSessionId() {
try {
return Tasks.call(zzb(), new zzc(this));
} catch (RuntimeException e4) {
this.zzb.zzB(5, "Failed to schedule task for getSessionId", null, null, null);
return Tasks.forException(e4);
}
}
public void logEvent(String str, Bundle bundle) {
this.zzb.zzy(str, bundle);
}
public void resetAnalyticsData() {
this.zzb.zzD();
}
public void setAnalyticsCollectionEnabled(boolean z3) {
this.zzb.zzL(Boolean.valueOf(z3));
}
public void setConsent(Map<ConsentType, ConsentStatus> map) {
Bundle bundle = new Bundle();
ConsentStatus consentStatus = map.get(ConsentType.AD_STORAGE);
if (consentStatus != null) {
int ordinal = consentStatus.ordinal();
if (ordinal == 0) {
bundle.putString("ad_storage", "granted");
} else if (ordinal == 1) {
bundle.putString("ad_storage", "denied");
}
}
ConsentStatus consentStatus2 = map.get(ConsentType.ANALYTICS_STORAGE);
if (consentStatus2 != null) {
int ordinal2 = consentStatus2.ordinal();
if (ordinal2 == 0) {
bundle.putString("analytics_storage", "granted");
} else if (ordinal2 == 1) {
bundle.putString("analytics_storage", "denied");
}
}
this.zzb.zzG(bundle);
}
@Keep
@Deprecated
public void setCurrentScreen(Activity activity, String str, String str2) {
this.zzb.zzH(activity, str, str2);
}
public void setDefaultEventParameters(Bundle bundle) {
this.zzb.zzJ(bundle);
}
public void setSessionTimeoutDuration(long j4) {
this.zzb.zzM(j4);
}
public void setUserId(String str) {
this.zzb.zzN(str);
}
public void setUserProperty(String str, String str2) {
this.zzb.zzO(null, str, str2, false);
}
}

View File

@@ -0,0 +1,107 @@
package com.google.firebase.analytics.connector;
import android.os.Bundle;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.firebase.annotations.DeferredApi;
import java.util.List;
import java.util.Map;
import java.util.Set;
/* loaded from: classes3.dex */
public interface AnalyticsConnector {
@KeepForSdk
/* loaded from: classes3.dex */
public interface AnalyticsConnectorHandle {
@KeepForSdk
void registerEventNames(Set<String> set);
@KeepForSdk
void unregister();
@KeepForSdk
void unregisterEventNames();
}
@KeepForSdk
/* loaded from: classes3.dex */
public interface AnalyticsConnectorListener {
@KeepForSdk
void onMessageTriggered(int i, Bundle bundle);
}
@KeepForSdk
/* loaded from: classes3.dex */
public static class ConditionalUserProperty {
@KeepForSdk
public boolean active;
@KeepForSdk
public long creationTimestamp;
@KeepForSdk
public String expiredEventName;
@KeepForSdk
public Bundle expiredEventParams;
@KeepForSdk
public String name;
@KeepForSdk
public String origin;
@KeepForSdk
public long timeToLive;
@KeepForSdk
public String timedOutEventName;
@KeepForSdk
public Bundle timedOutEventParams;
@KeepForSdk
public String triggerEventName;
@KeepForSdk
public long triggerTimeout;
@KeepForSdk
public String triggeredEventName;
@KeepForSdk
public Bundle triggeredEventParams;
@KeepForSdk
public long triggeredTimestamp;
@KeepForSdk
public Object value;
}
@KeepForSdk
void clearConditionalUserProperty(String str, String str2, Bundle bundle);
@KeepForSdk
List<ConditionalUserProperty> getConditionalUserProperties(String str, String str2);
@KeepForSdk
int getMaxUserProperties(String str);
@KeepForSdk
Map<String, Object> getUserProperties(boolean z3);
@KeepForSdk
void logEvent(String str, String str2, Bundle bundle);
@KeepForSdk
@DeferredApi
AnalyticsConnectorHandle registerAnalyticsConnectorListener(String str, AnalyticsConnectorListener analyticsConnectorListener);
@KeepForSdk
void setConditionalUserProperty(ConditionalUserProperty conditionalUserProperty);
@KeepForSdk
void setUserProperty(String str, String str2, Object obj);
}

View File

@@ -0,0 +1,278 @@
package com.google.firebase.analytics.connector;
import android.content.Context;
import android.os.Bundle;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.internal.measurement.zzef;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.android.gms.measurement.internal.zzgz;
import com.google.android.gms.measurement.internal.zziq;
import com.google.firebase.DataCollectionDefaultChange;
import com.google.firebase.FirebaseApp;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import com.google.firebase.analytics.connector.internal.zzc;
import com.google.firebase.analytics.connector.internal.zze;
import com.google.firebase.analytics.connector.internal.zzg;
import com.google.firebase.events.Event;
import com.google.firebase.events.EventHandler;
import com.google.firebase.events.Subscriber;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executor;
/* loaded from: classes3.dex */
public class AnalyticsConnectorImpl implements AnalyticsConnector {
private static volatile AnalyticsConnector zzc;
final AppMeasurementSdk zza;
final Map zzb;
public AnalyticsConnectorImpl(AppMeasurementSdk appMeasurementSdk) {
Preconditions.checkNotNull(appMeasurementSdk);
this.zza = appMeasurementSdk;
this.zzb = new ConcurrentHashMap();
}
@KeepForSdk
public static AnalyticsConnector getInstance() {
return getInstance(FirebaseApp.getInstance());
}
public static /* synthetic */ void zza(Event event) {
boolean z3 = ((DataCollectionDefaultChange) event.getPayload()).enabled;
synchronized (AnalyticsConnectorImpl.class) {
((AnalyticsConnectorImpl) Preconditions.checkNotNull(zzc)).zza.zza(z3);
}
}
/* JADX INFO: Access modifiers changed from: private */
public final boolean zzc(String str) {
return (str.isEmpty() || !this.zzb.containsKey(str) || this.zzb.get(str) == null) ? false : true;
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector
@KeepForSdk
public void clearConditionalUserProperty(String str, String str2, Bundle bundle) {
if (str2 == null || zzc.zzb(str2, bundle)) {
this.zza.clearConditionalUserProperty(str, str2, bundle);
}
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector
@KeepForSdk
public List<AnalyticsConnector.ConditionalUserProperty> getConditionalUserProperties(String str, String str2) {
ArrayList arrayList = new ArrayList();
for (Bundle bundle : this.zza.getConditionalUserProperties(str, str2)) {
int i = zzc.zza;
Preconditions.checkNotNull(bundle);
AnalyticsConnector.ConditionalUserProperty conditionalUserProperty = new AnalyticsConnector.ConditionalUserProperty();
conditionalUserProperty.origin = (String) Preconditions.checkNotNull((String) zzgz.zza(bundle, "origin", String.class, null));
conditionalUserProperty.name = (String) Preconditions.checkNotNull((String) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.NAME, String.class, null));
conditionalUserProperty.value = zzgz.zza(bundle, "value", Object.class, null);
conditionalUserProperty.triggerEventName = (String) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGER_EVENT_NAME, String.class, null);
conditionalUserProperty.triggerTimeout = ((Long) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGER_TIMEOUT, Long.class, 0L)).longValue();
conditionalUserProperty.timedOutEventName = (String) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_NAME, String.class, null);
conditionalUserProperty.timedOutEventParams = (Bundle) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_PARAMS, Bundle.class, null);
conditionalUserProperty.triggeredEventName = (String) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_NAME, String.class, null);
conditionalUserProperty.triggeredEventParams = (Bundle) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_PARAMS, Bundle.class, null);
conditionalUserProperty.timeToLive = ((Long) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TIME_TO_LIVE, Long.class, 0L)).longValue();
conditionalUserProperty.expiredEventName = (String) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_NAME, String.class, null);
conditionalUserProperty.expiredEventParams = (Bundle) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_PARAMS, Bundle.class, null);
conditionalUserProperty.active = ((Boolean) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.ACTIVE, Boolean.class, Boolean.FALSE)).booleanValue();
conditionalUserProperty.creationTimestamp = ((Long) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.CREATION_TIMESTAMP, Long.class, 0L)).longValue();
conditionalUserProperty.triggeredTimestamp = ((Long) zzgz.zza(bundle, AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_TIMESTAMP, Long.class, 0L)).longValue();
arrayList.add(conditionalUserProperty);
}
return arrayList;
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector
@KeepForSdk
public int getMaxUserProperties(String str) {
return this.zza.getMaxUserProperties(str);
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector
@KeepForSdk
public Map<String, Object> getUserProperties(boolean z3) {
return this.zza.getUserProperties(null, null, z3);
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector
@KeepForSdk
public void logEvent(String str, String str2, Bundle bundle) {
if (bundle == null) {
bundle = new Bundle();
}
if (zzc.zzd(str) && zzc.zzb(str2, bundle) && zzc.zza(str, str2, bundle)) {
if ("clx".equals(str) && "_ae".equals(str2)) {
bundle.putLong("_r", 1L);
}
this.zza.logEvent(str, str2, bundle);
}
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector
@KeepForSdk
public AnalyticsConnector.AnalyticsConnectorHandle registerAnalyticsConnectorListener(final String str, AnalyticsConnector.AnalyticsConnectorListener analyticsConnectorListener) {
Preconditions.checkNotNull(analyticsConnectorListener);
if (!zzc.zzd(str) || zzc(str)) {
return null;
}
AppMeasurementSdk appMeasurementSdk = this.zza;
com.google.firebase.analytics.connector.internal.zza zzeVar = "fiam".equals(str) ? new zze(appMeasurementSdk, analyticsConnectorListener) : "clx".equals(str) ? new zzg(appMeasurementSdk, analyticsConnectorListener) : null;
if (zzeVar == null) {
return null;
}
this.zzb.put(str, zzeVar);
return new AnalyticsConnector.AnalyticsConnectorHandle() { // from class: com.google.firebase.analytics.connector.AnalyticsConnectorImpl.1
@Override // com.google.firebase.analytics.connector.AnalyticsConnector.AnalyticsConnectorHandle
@KeepForSdk
public void registerEventNames(Set<String> set) {
if (!AnalyticsConnectorImpl.this.zzc(str) || !str.equals("fiam") || set == null || set.isEmpty()) {
return;
}
((com.google.firebase.analytics.connector.internal.zza) AnalyticsConnectorImpl.this.zzb.get(str)).zzb(set);
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector.AnalyticsConnectorHandle
public final void unregister() {
if (AnalyticsConnectorImpl.this.zzc(str)) {
AnalyticsConnector.AnalyticsConnectorListener zza = ((com.google.firebase.analytics.connector.internal.zza) AnalyticsConnectorImpl.this.zzb.get(str)).zza();
if (zza != null) {
zza.onMessageTriggered(0, null);
}
AnalyticsConnectorImpl.this.zzb.remove(str);
}
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector.AnalyticsConnectorHandle
@KeepForSdk
public void unregisterEventNames() {
if (AnalyticsConnectorImpl.this.zzc(str) && str.equals("fiam")) {
((com.google.firebase.analytics.connector.internal.zza) AnalyticsConnectorImpl.this.zzb.get(str)).zzc();
}
}
};
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector
@KeepForSdk
public void setConditionalUserProperty(AnalyticsConnector.ConditionalUserProperty conditionalUserProperty) {
String str;
int i = zzc.zza;
if (conditionalUserProperty == null || (str = conditionalUserProperty.origin) == null || str.isEmpty()) {
return;
}
Object obj = conditionalUserProperty.value;
if ((obj == null || zziq.zza(obj) != null) && zzc.zzd(str) && zzc.zze(str, conditionalUserProperty.name)) {
String str2 = conditionalUserProperty.expiredEventName;
if (str2 == null || (zzc.zzb(str2, conditionalUserProperty.expiredEventParams) && zzc.zza(str, conditionalUserProperty.expiredEventName, conditionalUserProperty.expiredEventParams))) {
String str3 = conditionalUserProperty.triggeredEventName;
if (str3 == null || (zzc.zzb(str3, conditionalUserProperty.triggeredEventParams) && zzc.zza(str, conditionalUserProperty.triggeredEventName, conditionalUserProperty.triggeredEventParams))) {
String str4 = conditionalUserProperty.timedOutEventName;
if (str4 == null || (zzc.zzb(str4, conditionalUserProperty.timedOutEventParams) && zzc.zza(str, conditionalUserProperty.timedOutEventName, conditionalUserProperty.timedOutEventParams))) {
AppMeasurementSdk appMeasurementSdk = this.zza;
Bundle bundle = new Bundle();
String str5 = conditionalUserProperty.origin;
if (str5 != null) {
bundle.putString("origin", str5);
}
String str6 = conditionalUserProperty.name;
if (str6 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.NAME, str6);
}
Object obj2 = conditionalUserProperty.value;
if (obj2 != null) {
zzgz.zzb(bundle, obj2);
}
String str7 = conditionalUserProperty.triggerEventName;
if (str7 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TRIGGER_EVENT_NAME, str7);
}
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.TRIGGER_TIMEOUT, conditionalUserProperty.triggerTimeout);
String str8 = conditionalUserProperty.timedOutEventName;
if (str8 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_NAME, str8);
}
Bundle bundle2 = conditionalUserProperty.timedOutEventParams;
if (bundle2 != null) {
bundle.putBundle(AppMeasurementSdk.ConditionalUserProperty.TIMED_OUT_EVENT_PARAMS, bundle2);
}
String str9 = conditionalUserProperty.triggeredEventName;
if (str9 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_NAME, str9);
}
Bundle bundle3 = conditionalUserProperty.triggeredEventParams;
if (bundle3 != null) {
bundle.putBundle(AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_EVENT_PARAMS, bundle3);
}
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.TIME_TO_LIVE, conditionalUserProperty.timeToLive);
String str10 = conditionalUserProperty.expiredEventName;
if (str10 != null) {
bundle.putString(AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_NAME, str10);
}
Bundle bundle4 = conditionalUserProperty.expiredEventParams;
if (bundle4 != null) {
bundle.putBundle(AppMeasurementSdk.ConditionalUserProperty.EXPIRED_EVENT_PARAMS, bundle4);
}
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.CREATION_TIMESTAMP, conditionalUserProperty.creationTimestamp);
bundle.putBoolean(AppMeasurementSdk.ConditionalUserProperty.ACTIVE, conditionalUserProperty.active);
bundle.putLong(AppMeasurementSdk.ConditionalUserProperty.TRIGGERED_TIMESTAMP, conditionalUserProperty.triggeredTimestamp);
appMeasurementSdk.setConditionalUserProperty(bundle);
}
}
}
}
}
@Override // com.google.firebase.analytics.connector.AnalyticsConnector
@KeepForSdk
public void setUserProperty(String str, String str2, Object obj) {
if (zzc.zzd(str) && zzc.zze(str, str2)) {
this.zza.setUserProperty(str, str2, obj);
}
}
@KeepForSdk
public static AnalyticsConnector getInstance(FirebaseApp firebaseApp) {
return (AnalyticsConnector) firebaseApp.get(AnalyticsConnector.class);
}
@KeepForSdk
public static AnalyticsConnector getInstance(FirebaseApp firebaseApp, Context context, Subscriber subscriber) {
Preconditions.checkNotNull(firebaseApp);
Preconditions.checkNotNull(context);
Preconditions.checkNotNull(subscriber);
Preconditions.checkNotNull(context.getApplicationContext());
if (zzc == null) {
synchronized (AnalyticsConnectorImpl.class) {
try {
if (zzc == null) {
Bundle bundle = new Bundle(1);
if (firebaseApp.isDefaultApp()) {
subscriber.subscribe(DataCollectionDefaultChange.class, new Executor() { // from class: com.google.firebase.analytics.connector.zza
@Override // java.util.concurrent.Executor
public final void execute(Runnable runnable) {
runnable.run();
}
}, new EventHandler() { // from class: com.google.firebase.analytics.connector.zzb
@Override // com.google.firebase.events.EventHandler
public final void handle(Event event) {
AnalyticsConnectorImpl.zza(event);
}
});
bundle.putBoolean("dataCollectionDefaultEnabled", firebaseApp.isDataCollectionDefaultEnabled());
}
zzc = new AnalyticsConnectorImpl(zzef.zzg(context, null, null, null, bundle).zzd());
}
} finally {
}
}
}
return zzc;
}
}

View File

@@ -0,0 +1,7 @@
package com.google.firebase.analytics.connector;
/* loaded from: classes3.dex */
public final class R {
private R() {
}
}

View File

@@ -0,0 +1,38 @@
package com.google.firebase.analytics.connector.internal;
import android.annotation.SuppressLint;
import android.content.Context;
import androidx.annotation.Keep;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.firebase.FirebaseApp;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import com.google.firebase.analytics.connector.AnalyticsConnectorImpl;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentContainer;
import com.google.firebase.components.ComponentFactory;
import com.google.firebase.components.ComponentRegistrar;
import com.google.firebase.components.Dependency;
import com.google.firebase.events.Subscriber;
import com.google.firebase.platforminfo.LibraryVersionComponent;
import java.util.Arrays;
import java.util.List;
@Keep
@KeepForSdk
/* loaded from: classes3.dex */
public class AnalyticsConnectorRegistrar implements ComponentRegistrar {
@Override // com.google.firebase.components.ComponentRegistrar
@Keep
@KeepForSdk
@SuppressLint({"MissingPermission"})
public List<Component<?>> getComponents() {
return Arrays.asList(Component.builder(AnalyticsConnector.class).add(Dependency.required((Class<?>) FirebaseApp.class)).add(Dependency.required((Class<?>) Context.class)).add(Dependency.required((Class<?>) Subscriber.class)).factory(new ComponentFactory() { // from class: com.google.firebase.analytics.connector.internal.zzb
@Override // com.google.firebase.components.ComponentFactory
public final Object create(ComponentContainer componentContainer) {
AnalyticsConnector analyticsConnectorImpl;
analyticsConnectorImpl = AnalyticsConnectorImpl.getInstance((FirebaseApp) componentContainer.get(FirebaseApp.class), (Context) componentContainer.get(Context.class), (Subscriber) componentContainer.get(Subscriber.class));
return analyticsConnectorImpl;
}
}).eagerInDefaultApp().build(), LibraryVersionComponent.create("fire-analytics", "21.3.0"));
}
}

View File

@@ -0,0 +1,13 @@
package com.google.firebase.analytics.connector.internal;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import java.util.Set;
/* loaded from: classes3.dex */
public interface zza {
AnalyticsConnector.AnalyticsConnectorListener zza();
void zzb(Set set);
void zzc();
}

View File

@@ -0,0 +1,131 @@
package com.google.firebase.analytics.connector.internal;
import android.os.Bundle;
import com.google.android.gms.internal.measurement.zzix;
import com.google.android.gms.internal.measurement.zzja;
import com.google.android.gms.internal.measurement.zzjb;
import com.google.android.gms.measurement.internal.zzhe;
import com.google.firebase.abt.FirebaseABTesting;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.messaging.Constants;
import kotlinx.coroutines.DebugKt;
/* loaded from: classes3.dex */
public final class zzc {
public static final /* synthetic */ int zza = 0;
private static final zzjb zzb = zzjb.zzi("_in", "_xa", "_xu", "_aq", "_aa", "_ai", "_ac", FirebaseAnalytics.Event.CAMPAIGN_DETAILS, "_ug", "_iapx", "_exp_set", "_exp_clear", "_exp_activate", "_exp_timeout", "_exp_expire");
private static final zzja zzc = zzja.zzj("_e", "_f", "_iap", "_s", "_au", "_ui", "_cd");
private static final zzja zzd = zzja.zzi(DebugKt.DEBUG_PROPERTY_VALUE_AUTO, "app", "am");
private static final zzja zze = zzja.zzh("_r", "_dbg");
private static final zzja zzf;
private static final zzja zzg;
static {
zzix zzixVar = new zzix();
zzixVar.zza(zzhe.zza);
zzixVar.zza(zzhe.zzb);
zzf = zzixVar.zzb();
zzg = zzja.zzh("^_ltv_[A-Z]{3}$", "^_cc[1-5]{1}$");
}
public static boolean zza(String str, String str2, Bundle bundle) {
char c4;
if (!"_cmp".equals(str2)) {
return true;
}
if (!zzd(str) || bundle == null) {
return false;
}
zzja zzjaVar = zze;
int size = zzjaVar.size();
int i = 0;
while (i < size) {
boolean containsKey = bundle.containsKey((String) zzjaVar.get(i));
i++;
if (containsKey) {
return false;
}
}
int hashCode = str.hashCode();
if (hashCode == 101200) {
if (str.equals("fcm")) {
c4 = 0;
}
c4 = 65535;
} else if (hashCode != 101230) {
if (hashCode == 3142703 && str.equals("fiam")) {
c4 = 2;
}
c4 = 65535;
} else {
if (str.equals("fdl")) {
c4 = 1;
}
c4 = 65535;
}
if (c4 == 0) {
bundle.putString("_cis", "fcm_integration");
return true;
}
if (c4 == 1) {
bundle.putString("_cis", "fdl_integration");
return true;
}
if (c4 != 2) {
return false;
}
bundle.putString("_cis", "fiam_integration");
return true;
}
public static boolean zzb(String str, Bundle bundle) {
if (zzc.contains(str)) {
return false;
}
if (bundle == null) {
return true;
}
zzja zzjaVar = zze;
int size = zzjaVar.size();
int i = 0;
while (i < size) {
boolean containsKey = bundle.containsKey((String) zzjaVar.get(i));
i++;
if (containsKey) {
return false;
}
}
return true;
}
public static boolean zzc(String str) {
return !zzb.contains(str);
}
public static boolean zzd(String str) {
return !zzd.contains(str);
}
public static boolean zze(String str, String str2) {
if ("_ce1".equals(str2) || "_ce2".equals(str2)) {
return str.equals("fcm") || str.equals(FirebaseABTesting.OriginService.REMOTE_CONFIG);
}
if (Constants.ScionAnalytics.USER_PROPERTY_FIREBASE_LAST_NOTIFICATION.equals(str2)) {
return str.equals("fcm") || str.equals("fiam");
}
if (zzf.contains(str2)) {
return false;
}
zzja zzjaVar = zzg;
int size = zzjaVar.size();
int i = 0;
while (i < size) {
boolean matches = str2.matches((String) zzjaVar.get(i));
i++;
if (matches) {
return false;
}
}
return true;
}
}

View File

@@ -0,0 +1,32 @@
package com.google.firebase.analytics.connector.internal;
import android.os.Bundle;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.android.gms.measurement.internal.zzhc;
import com.google.firebase.analytics.connector.AnalyticsConnector;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class zzd implements AppMeasurementSdk.OnEventListener {
final /* synthetic */ zze zza;
public zzd(zze zzeVar) {
this.zza = zzeVar;
}
@Override // com.google.android.gms.measurement.api.AppMeasurementSdk.OnEventListener, com.google.android.gms.measurement.internal.zzhg
public final void onEvent(String str, String str2, Bundle bundle, long j4) {
AnalyticsConnector.AnalyticsConnectorListener analyticsConnectorListener;
if (this.zza.zza.contains(str2)) {
Bundle bundle2 = new Bundle();
int i = zzc.zza;
String zza = zzhc.zza(str2);
if (zza != null) {
str2 = zza;
}
bundle2.putString("events", str2);
analyticsConnectorListener = this.zza.zzb;
analyticsConnectorListener.onMessageTriggered(2, bundle2);
}
}
}

View File

@@ -0,0 +1,91 @@
package com.google.firebase.analytics.connector.internal;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.android.gms.measurement.internal.zzhc;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/* loaded from: classes3.dex */
public final class zze implements zza {
final Set zza;
private final AnalyticsConnector.AnalyticsConnectorListener zzb;
private final AppMeasurementSdk zzc;
private final zzd zzd;
public zze(AppMeasurementSdk appMeasurementSdk, AnalyticsConnector.AnalyticsConnectorListener analyticsConnectorListener) {
this.zzb = analyticsConnectorListener;
this.zzc = appMeasurementSdk;
zzd zzdVar = new zzd(this);
this.zzd = zzdVar;
appMeasurementSdk.registerOnMeasurementEventListener(zzdVar);
this.zza = new HashSet();
}
@Override // com.google.firebase.analytics.connector.internal.zza
public final AnalyticsConnector.AnalyticsConnectorListener zza() {
return this.zzb;
}
@Override // com.google.firebase.analytics.connector.internal.zza
public final void zzb(Set set) {
this.zza.clear();
Set set2 = this.zza;
HashSet hashSet = new HashSet();
Iterator it = set.iterator();
while (it.hasNext()) {
String str = (String) it.next();
if (hashSet.size() >= 50) {
break;
}
int i = zzc.zza;
if (str != null && str.length() != 0) {
int codePointAt = str.codePointAt(0);
if (!Character.isLetter(codePointAt)) {
if (codePointAt == 95) {
codePointAt = 95;
}
}
int length = str.length();
int charCount = Character.charCount(codePointAt);
while (true) {
if (charCount < length) {
int codePointAt2 = str.codePointAt(charCount);
if (codePointAt2 == 95 || Character.isLetterOrDigit(codePointAt2)) {
charCount += Character.charCount(codePointAt2);
}
} else if (str.length() != 0) {
int codePointAt3 = str.codePointAt(0);
if (Character.isLetter(codePointAt3)) {
int length2 = str.length();
int charCount2 = Character.charCount(codePointAt3);
while (true) {
if (charCount2 >= length2) {
String zzb = zzhc.zzb(str);
if (zzb != null) {
str = zzb;
}
Preconditions.checkNotNull(str);
hashSet.add(str);
} else {
int codePointAt4 = str.codePointAt(charCount2);
if (codePointAt4 == 95 || Character.isLetterOrDigit(codePointAt4)) {
charCount2 += Character.charCount(codePointAt4);
}
}
}
}
}
}
}
}
set2.addAll(hashSet);
}
@Override // com.google.firebase.analytics.connector.internal.zza
public final void zzc() {
this.zza.clear();
}
}

View File

@@ -0,0 +1,29 @@
package com.google.firebase.analytics.connector.internal;
import android.os.Bundle;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.connector.AnalyticsConnector;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class zzf implements AppMeasurementSdk.OnEventListener {
final /* synthetic */ zzg zza;
public zzf(zzg zzgVar) {
this.zza = zzgVar;
}
@Override // com.google.android.gms.measurement.api.AppMeasurementSdk.OnEventListener, com.google.android.gms.measurement.internal.zzhg
public final void onEvent(String str, String str2, Bundle bundle, long j4) {
AnalyticsConnector.AnalyticsConnectorListener analyticsConnectorListener;
if (str == null || !zzc.zzc(str2)) {
return;
}
Bundle bundle2 = new Bundle();
bundle2.putString(AppMeasurementSdk.ConditionalUserProperty.NAME, str2);
bundle2.putLong("timestampInMillis", j4);
bundle2.putBundle("params", bundle);
analyticsConnectorListener = this.zza.zza;
analyticsConnectorListener.onMessageTriggered(3, bundle2);
}
}

View File

@@ -0,0 +1,33 @@
package com.google.firebase.analytics.connector.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.connector.AnalyticsConnector;
import java.util.Set;
/* loaded from: classes3.dex */
public final class zzg implements zza {
private final AnalyticsConnector.AnalyticsConnectorListener zza;
private final AppMeasurementSdk zzb;
private final zzf zzc;
public zzg(AppMeasurementSdk appMeasurementSdk, AnalyticsConnector.AnalyticsConnectorListener analyticsConnectorListener) {
this.zza = analyticsConnectorListener;
this.zzb = appMeasurementSdk;
zzf zzfVar = new zzf(this);
this.zzc = zzfVar;
appMeasurementSdk.registerOnMeasurementEventListener(zzfVar);
}
@Override // com.google.firebase.analytics.connector.internal.zza
public final AnalyticsConnector.AnalyticsConnectorListener zza() {
return this.zza;
}
@Override // com.google.firebase.analytics.connector.internal.zza
public final void zzb(Set set) {
}
@Override // com.google.firebase.analytics.connector.internal.zza
public final void zzc() {
}
}

View File

@@ -0,0 +1,61 @@
package com.google.firebase.analytics.ktx;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.ktx.Firebase;
import com.google.firebase.ktx.FirebaseKt;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000<\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a3\u0010\u0010\u001a\u00020\u0011*\u00020\u00012\u0006\u0010\u0012\u001a\u00020\u00072\u0019\b\u0004\u0010\u0013\u001a\u0013\u0012\u0004\u0012\u00020\u0015\u0012\u0004\u0012\u00020\u00110\u0014¢\u0006\u0002\b\u0016H\u0086\\u0001\u0000\u001a+\u0010\u0017\u001a\u00020\u0011*\u00020\u00012\u0019\b\u0004\u0010\u0013\u001a\u0013\u0012\u0004\u0012\u00020\u0018\u0012\u0004\u0012\u00020\u00110\u0014¢\u0006\u0002\b\u0016H\u0086\\u0001\u0000\"\u001c\u0010\u0000\u001a\u0004\u0018\u00010\u0001X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0002\u0010\u0003\"\u0004\b\u0004\u0010\u0005\"\u000e\u0010\u0006\u001a\u00020\u0007X\u0080T¢\u0006\u0002\n\u0000\"\u0014\u0010\b\u001a\u00020\tX\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b\"\u0015\u0010\f\u001a\u00020\u0001*\u00020\r8F¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000f\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0019"}, d2 = {"ANALYTICS", "Lcom/google/firebase/analytics/FirebaseAnalytics;", "getANALYTICS", "()Lcom/google/firebase/analytics/FirebaseAnalytics;", "setANALYTICS", "(Lcom/google/firebase/analytics/FirebaseAnalytics;)V", "LIBRARY_NAME", "", "LOCK", "", "getLOCK", "()Ljava/lang/Object;", "analytics", "Lcom/google/firebase/ktx/Firebase;", "getAnalytics", "(Lcom/google/firebase/ktx/Firebase;)Lcom/google/firebase/analytics/FirebaseAnalytics;", "logEvent", "", AppMeasurementSdk.ConditionalUserProperty.NAME, "block", "Lkotlin/Function1;", "Lcom/google/firebase/analytics/ktx/ParametersBuilder;", "Lkotlin/ExtensionFunctionType;", "setConsent", "Lcom/google/firebase/analytics/ktx/ConsentBuilder;", "java.com.google.android.libraries.firebase.firebase_analytics_ktx_granule"}, k = 2, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class AnalyticsKt {
public static final String LIBRARY_NAME = "fire-analytics-ktx";
private static volatile FirebaseAnalytics zza;
private static final Object zzb = new Object();
public static final FirebaseAnalytics getANALYTICS() {
return zza;
}
public static final FirebaseAnalytics getAnalytics(Firebase firebase) {
Intrinsics.checkNotNullParameter(firebase, "<this>");
if (zza == null) {
synchronized (zzb) {
if (zza == null) {
zza = FirebaseAnalytics.getInstance(FirebaseKt.getApp(Firebase.INSTANCE).getApplicationContext());
}
}
}
FirebaseAnalytics firebaseAnalytics = zza;
Intrinsics.checkNotNull(firebaseAnalytics);
return firebaseAnalytics;
}
public static final Object getLOCK() {
return zzb;
}
public static final void logEvent(FirebaseAnalytics firebaseAnalytics, String name, Function1<? super ParametersBuilder, Unit> block) {
Intrinsics.checkNotNullParameter(firebaseAnalytics, "<this>");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(block, "block");
ParametersBuilder parametersBuilder = new ParametersBuilder();
block.invoke(parametersBuilder);
firebaseAnalytics.logEvent(name, parametersBuilder.getZza());
}
public static final void setANALYTICS(FirebaseAnalytics firebaseAnalytics) {
zza = firebaseAnalytics;
}
public static final void setConsent(FirebaseAnalytics firebaseAnalytics, Function1<? super ConsentBuilder, Unit> block) {
Intrinsics.checkNotNullParameter(firebaseAnalytics, "<this>");
Intrinsics.checkNotNullParameter(block, "block");
ConsentBuilder consentBuilder = new ConsentBuilder();
block.invoke(consentBuilder);
firebaseAnalytics.setConsent(consentBuilder.asMap());
}
}

View File

@@ -0,0 +1,44 @@
package com.google.firebase.analytics.ktx;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.util.LinkedHashMap;
import java.util.Map;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0012\u0010\f\u001a\u000e\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00020\u00040\rR\u001c\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR\u001c\u0010\t\u001a\u0004\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\n\u0010\u0006\"\u0004\b\u000b\u0010\\u0006\u000f"}, d2 = {"Lcom/google/firebase/analytics/ktx/ConsentBuilder;", "", "()V", "adStorage", "Lcom/google/firebase/analytics/FirebaseAnalytics$ConsentStatus;", "getAdStorage", "()Lcom/google/firebase/analytics/FirebaseAnalytics$ConsentStatus;", "setAdStorage", "(Lcom/google/firebase/analytics/FirebaseAnalytics$ConsentStatus;)V", "analyticsStorage", "getAnalyticsStorage", "setAnalyticsStorage", "asMap", "", "Lcom/google/firebase/analytics/FirebaseAnalytics$ConsentType;", "java.com.google.android.libraries.firebase.firebase_analytics_ktx_granule"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class ConsentBuilder {
private FirebaseAnalytics.ConsentStatus zza;
private FirebaseAnalytics.ConsentStatus zzb;
public final Map<FirebaseAnalytics.ConsentType, FirebaseAnalytics.ConsentStatus> asMap() {
LinkedHashMap linkedHashMap = new LinkedHashMap();
FirebaseAnalytics.ConsentStatus consentStatus = this.zza;
if (consentStatus != null) {
linkedHashMap.put(FirebaseAnalytics.ConsentType.AD_STORAGE, consentStatus);
}
FirebaseAnalytics.ConsentStatus consentStatus2 = this.zzb;
if (consentStatus2 != null) {
linkedHashMap.put(FirebaseAnalytics.ConsentType.ANALYTICS_STORAGE, consentStatus2);
}
return linkedHashMap;
}
/* renamed from: getAdStorage, reason: from getter */
public final FirebaseAnalytics.ConsentStatus getZza() {
return this.zza;
}
/* renamed from: getAnalyticsStorage, reason: from getter */
public final FirebaseAnalytics.ConsentStatus getZzb() {
return this.zzb;
}
public final void setAdStorage(FirebaseAnalytics.ConsentStatus consentStatus) {
this.zza = consentStatus;
}
public final void setAnalyticsStorage(FirebaseAnalytics.ConsentStatus consentStatus) {
this.zzb = consentStatus;
}
}

View File

@@ -0,0 +1,17 @@
package com.google.firebase.analytics.ktx;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentRegistrar;
import com.google.firebase.platforminfo.LibraryVersionComponent;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00050\u0004H\u0016¨\u0006\u0006"}, d2 = {"Lcom/google/firebase/analytics/ktx/FirebaseAnalyticsKtxRegistrar;", "Lcom/google/firebase/components/ComponentRegistrar;", "()V", "getComponents", "", "Lcom/google/firebase/components/Component;", "java.com.google.android.libraries.firebase.firebase_analytics_ktx_granule"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class FirebaseAnalyticsKtxRegistrar implements ComponentRegistrar {
@Override // com.google.firebase.components.ComponentRegistrar
public final List<Component<?>> getComponents() {
return CollectionsKt.listOf(LibraryVersionComponent.create(AnalyticsKt.LIBRARY_NAME, "21.3.0"));
}
}

View File

@@ -0,0 +1,44 @@
package com.google.firebase.analytics.ktx;
import android.os.Bundle;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0011\n\u0000\n\u0002\u0010\u0006\n\u0002\u0010\t\n\u0000\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0016\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0004J!\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\f\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\u00040\\u0006\u0002\u0010\rJ\u0016\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u000eJ\u0016\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u000fJ\u0016\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\nR\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0010"}, d2 = {"Lcom/google/firebase/analytics/ktx/ParametersBuilder;", "", "()V", "bundle", "Landroid/os/Bundle;", "getBundle", "()Landroid/os/Bundle;", "param", "", "key", "", "value", "", "(Ljava/lang/String;[Landroid/os/Bundle;)V", "", "", "java.com.google.android.libraries.firebase.firebase_analytics_ktx_granule"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class ParametersBuilder {
private final Bundle zza = new Bundle();
/* renamed from: getBundle, reason: from getter */
public final Bundle getZza() {
return this.zza;
}
public final void param(String key, double value) {
Intrinsics.checkNotNullParameter(key, "key");
this.zza.putDouble(key, value);
}
public final void param(String key, long value) {
Intrinsics.checkNotNullParameter(key, "key");
this.zza.putLong(key, value);
}
public final void param(String key, Bundle value) {
Intrinsics.checkNotNullParameter(key, "key");
Intrinsics.checkNotNullParameter(value, "value");
this.zza.putBundle(key, value);
}
public final void param(String key, String value) {
Intrinsics.checkNotNullParameter(key, "key");
Intrinsics.checkNotNullParameter(value, "value");
this.zza.putString(key, value);
}
public final void param(String key, Bundle[] value) {
Intrinsics.checkNotNullParameter(key, "key");
Intrinsics.checkNotNullParameter(value, "value");
this.zza.putParcelableArray(key, value);
}
}

View File

@@ -0,0 +1,7 @@
package com.google.firebase.analytics.ktx;
/* loaded from: classes3.dex */
public final class R {
private R() {
}
}

View File

@@ -0,0 +1,13 @@
package com.google.firebase.analytics;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class zza extends ThreadPoolExecutor {
public zza(FirebaseAnalytics firebaseAnalytics, int i, int i4, long j4, TimeUnit timeUnit, BlockingQueue blockingQueue) {
super(0, 1, 30L, timeUnit, blockingQueue);
}
}

View File

@@ -0,0 +1,20 @@
package com.google.firebase.analytics;
import com.google.android.gms.internal.measurement.zzef;
import java.util.concurrent.Callable;
/* loaded from: classes3.dex */
final class zzb implements Callable {
final /* synthetic */ FirebaseAnalytics zza;
public zzb(FirebaseAnalytics firebaseAnalytics) {
this.zza = firebaseAnalytics;
}
@Override // java.util.concurrent.Callable
public final /* bridge */ /* synthetic */ Object call() throws Exception {
zzef zzefVar;
zzefVar = this.zza.zzb;
return zzefVar.zzl();
}
}

View File

@@ -0,0 +1,20 @@
package com.google.firebase.analytics;
import com.google.android.gms.internal.measurement.zzef;
import java.util.concurrent.Callable;
/* loaded from: classes3.dex */
final class zzc implements Callable {
final /* synthetic */ FirebaseAnalytics zza;
public zzc(FirebaseAnalytics firebaseAnalytics) {
this.zza = firebaseAnalytics;
}
@Override // java.util.concurrent.Callable
public final /* bridge */ /* synthetic */ Object call() throws Exception {
zzef zzefVar;
zzefVar = this.zza.zzb;
return zzefVar.zzh();
}
}

View File

@@ -0,0 +1,108 @@
package com.google.firebase.analytics;
import android.os.Bundle;
import com.google.android.gms.internal.measurement.zzef;
import com.google.android.gms.measurement.internal.zzhf;
import com.google.android.gms.measurement.internal.zzhg;
import com.google.android.gms.measurement.internal.zzil;
import java.util.List;
import java.util.Map;
/* loaded from: classes3.dex */
final class zzd implements zzil {
final /* synthetic */ zzef zza;
public zzd(zzef zzefVar) {
this.zza = zzefVar;
}
@Override // com.google.android.gms.measurement.internal.zzil
public final int zza(String str) {
return this.zza.zza(str);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final long zzb() {
return this.zza.zzb();
}
@Override // com.google.android.gms.measurement.internal.zzil
public final Object zzg(int i) {
return this.zza.zzi(i);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final String zzh() {
return this.zza.zzm();
}
@Override // com.google.android.gms.measurement.internal.zzil
public final String zzi() {
return this.zza.zzn();
}
@Override // com.google.android.gms.measurement.internal.zzil
public final String zzj() {
return this.zza.zzo();
}
@Override // com.google.android.gms.measurement.internal.zzil
public final String zzk() {
return this.zza.zzp();
}
@Override // com.google.android.gms.measurement.internal.zzil
public final List zzm(String str, String str2) {
return this.zza.zzq(str, str2);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final Map zzo(String str, String str2, boolean z3) {
return this.zza.zzr(str, str2, z3);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final void zzp(String str) {
this.zza.zzv(str);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final void zzq(String str, String str2, Bundle bundle) {
this.zza.zzw(str, str2, bundle);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final void zzr(String str) {
this.zza.zzx(str);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final void zzs(String str, String str2, Bundle bundle) {
this.zza.zzz(str, str2, bundle);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final void zzt(String str, String str2, Bundle bundle, long j4) {
this.zza.zzA(str, str2, bundle, j4);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final void zzu(zzhg zzhgVar) {
this.zza.zzC(zzhgVar);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final void zzv(Bundle bundle) {
this.zza.zzE(bundle);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final void zzw(zzhf zzhfVar) {
this.zza.zzK(zzhfVar);
}
@Override // com.google.android.gms.measurement.internal.zzil
public final void zzx(zzhg zzhgVar) {
this.zza.zzP(zzhgVar);
}
}

View File

@@ -0,0 +1,11 @@
package com.google.firebase.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Target;
@Inherited
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
/* loaded from: classes3.dex */
public @interface DeferredApi {
}

View File

@@ -0,0 +1,11 @@
package com.google.firebase.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
@Documented
/* loaded from: classes3.dex */
public @interface PreviewApi {
}

View File

@@ -0,0 +1,11 @@
package com.google.firebase.annotations;
import com.google.android.gms.common.annotation.KeepForSdk;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR})
@KeepForSdk
/* loaded from: classes3.dex */
public @interface PublicApi {
}

View File

@@ -0,0 +1,11 @@
package com.google.firebase.annotations.concurrent;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import javax.inject.Qualifier;
@Target({ElementType.PARAMETER, ElementType.METHOD, ElementType.FIELD})
@Qualifier
/* loaded from: classes3.dex */
public @interface Background {
}

View File

@@ -0,0 +1,11 @@
package com.google.firebase.annotations.concurrent;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import javax.inject.Qualifier;
@Target({ElementType.PARAMETER, ElementType.METHOD, ElementType.FIELD})
@Qualifier
/* loaded from: classes3.dex */
public @interface Blocking {
}

View File

@@ -0,0 +1,11 @@
package com.google.firebase.annotations.concurrent;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import javax.inject.Qualifier;
@Target({ElementType.PARAMETER, ElementType.METHOD, ElementType.FIELD})
@Qualifier
/* loaded from: classes3.dex */
public @interface Lightweight {
}

View File

@@ -0,0 +1,11 @@
package com.google.firebase.annotations.concurrent;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import javax.inject.Qualifier;
@Target({ElementType.PARAMETER, ElementType.METHOD, ElementType.FIELD})
@Qualifier
/* loaded from: classes3.dex */
public @interface UiThread {
}

View File

@@ -0,0 +1,8 @@
package com.google.firebase.appcheck;
/* loaded from: classes3.dex */
public abstract class AppCheckTokenResult {
public abstract Exception getError();
public abstract String getToken();
}

View File

@@ -0,0 +1,8 @@
package com.google.firebase.appcheck.interop;
import com.google.firebase.appcheck.AppCheckTokenResult;
/* loaded from: classes3.dex */
public interface AppCheckTokenListener {
void onAppCheckTokenChanged(AppCheckTokenResult appCheckTokenResult);
}

View File

@@ -0,0 +1,9 @@
package com.google.firebase.appcheck.interop;
/* loaded from: classes3.dex */
public final class BuildConfig {
public static final String BUILD_TYPE = "release";
public static final boolean DEBUG = false;
public static final String LIBRARY_PACKAGE_NAME = "com.google.firebase.appcheck.interop";
public static final String VERSION_NAME = "17.0.0";
}

View File

@@ -0,0 +1,13 @@
package com.google.firebase.appcheck.interop;
import com.google.android.gms.tasks.Task;
import com.google.firebase.appcheck.AppCheckTokenResult;
/* loaded from: classes3.dex */
public interface InteropAppCheckTokenProvider {
void addAppCheckTokenListener(AppCheckTokenListener appCheckTokenListener);
Task<AppCheckTokenResult> getToken(boolean z3);
void removeAppCheckTokenListener(AppCheckTokenListener appCheckTokenListener);
}

View File

@@ -0,0 +1,353 @@
package com.google.firebase.appcheck.interop;
/* loaded from: classes3.dex */
public final class R {
/* loaded from: classes3.dex */
public static final class attr {
public static final int alpha = 0x7f030031;
public static final int buttonSize = 0x7f0300a5;
public static final int circleCrop = 0x7f0300e9;
public static final int colorScheme = 0x7f030135;
public static final int coordinatorLayoutStyle = 0x7f03016c;
public static final int font = 0x7f03022d;
public static final int fontProviderAuthority = 0x7f03022f;
public static final int fontProviderCerts = 0x7f030230;
public static final int fontProviderFetchStrategy = 0x7f030231;
public static final int fontProviderFetchTimeout = 0x7f030232;
public static final int fontProviderPackage = 0x7f030233;
public static final int fontProviderQuery = 0x7f030234;
public static final int fontStyle = 0x7f030236;
public static final int fontVariationSettings = 0x7f030237;
public static final int fontWeight = 0x7f030238;
public static final int imageAspectRatio = 0x7f030271;
public static final int imageAspectRatioAdjust = 0x7f030272;
public static final int keylines = 0x7f0302b5;
public static final int layout_anchor = 0x7f0302c6;
public static final int layout_anchorGravity = 0x7f0302c7;
public static final int layout_behavior = 0x7f0302c9;
public static final int layout_dodgeInsetEdges = 0x7f0302fa;
public static final int layout_insetEdge = 0x7f030305;
public static final int layout_keyline = 0x7f030306;
public static final int scopeUris = 0x7f03041a;
public static final int statusBarBackground = 0x7f030488;
public static final int ttcIndex = 0x7f030559;
private attr() {
}
}
/* loaded from: classes3.dex */
public static final class color {
public static final int common_google_signin_btn_text_dark = 0x7f050045;
public static final int common_google_signin_btn_text_dark_default = 0x7f050046;
public static final int common_google_signin_btn_text_dark_disabled = 0x7f050047;
public static final int common_google_signin_btn_text_dark_focused = 0x7f050048;
public static final int common_google_signin_btn_text_dark_pressed = 0x7f050049;
public static final int common_google_signin_btn_text_light = 0x7f05004a;
public static final int common_google_signin_btn_text_light_default = 0x7f05004b;
public static final int common_google_signin_btn_text_light_disabled = 0x7f05004c;
public static final int common_google_signin_btn_text_light_focused = 0x7f05004d;
public static final int common_google_signin_btn_text_light_pressed = 0x7f05004e;
public static final int common_google_signin_btn_tint = 0x7f05004f;
public static final int notification_action_color_filter = 0x7f050315;
public static final int notification_icon_bg_color = 0x7f050316;
public static final int ripple_material_light = 0x7f050322;
public static final int secondary_text_default_material_light = 0x7f050324;
private color() {
}
}
/* loaded from: classes3.dex */
public static final class dimen {
public static final int compat_button_inset_horizontal_material = 0x7f06006d;
public static final int compat_button_inset_vertical_material = 0x7f06006e;
public static final int compat_button_padding_horizontal_material = 0x7f06006f;
public static final int compat_button_padding_vertical_material = 0x7f060070;
public static final int compat_control_corner_material = 0x7f060071;
public static final int compat_notification_large_icon_max_height = 0x7f060072;
public static final int compat_notification_large_icon_max_width = 0x7f060073;
public static final int notification_action_icon_size = 0x7f060385;
public static final int notification_action_text_size = 0x7f060386;
public static final int notification_big_circle_margin = 0x7f060387;
public static final int notification_content_margin_start = 0x7f060388;
public static final int notification_large_icon_height = 0x7f06038d;
public static final int notification_large_icon_width = 0x7f06038e;
public static final int notification_main_column_padding_top = 0x7f06038f;
public static final int notification_media_narrow_margin = 0x7f060391;
public static final int notification_right_icon_size = 0x7f060393;
public static final int notification_right_side_padding_top = 0x7f060394;
public static final int notification_small_icon_background_padding = 0x7f060395;
public static final int notification_small_icon_size_as_large = 0x7f060396;
public static final int notification_subtext_size = 0x7f060397;
public static final int notification_top_pad = 0x7f06039b;
public static final int notification_top_pad_large_text = 0x7f06039c;
private dimen() {
}
}
/* loaded from: classes3.dex */
public static final class drawable {
public static final int common_full_open_on_phone = 0x7f07008b;
public static final int common_google_signin_btn_icon_dark = 0x7f07008c;
public static final int common_google_signin_btn_icon_dark_focused = 0x7f07008d;
public static final int common_google_signin_btn_icon_dark_normal = 0x7f07008e;
public static final int common_google_signin_btn_icon_dark_normal_background = 0x7f07008f;
public static final int common_google_signin_btn_icon_disabled = 0x7f070090;
public static final int common_google_signin_btn_icon_light = 0x7f070091;
public static final int common_google_signin_btn_icon_light_focused = 0x7f070092;
public static final int common_google_signin_btn_icon_light_normal = 0x7f070093;
public static final int common_google_signin_btn_icon_light_normal_background = 0x7f070094;
public static final int common_google_signin_btn_text_dark = 0x7f070095;
public static final int common_google_signin_btn_text_dark_focused = 0x7f070096;
public static final int common_google_signin_btn_text_dark_normal = 0x7f070097;
public static final int common_google_signin_btn_text_dark_normal_background = 0x7f070098;
public static final int common_google_signin_btn_text_disabled = 0x7f070099;
public static final int common_google_signin_btn_text_light = 0x7f07009a;
public static final int common_google_signin_btn_text_light_focused = 0x7f07009b;
public static final int common_google_signin_btn_text_light_normal = 0x7f07009c;
public static final int common_google_signin_btn_text_light_normal_background = 0x7f07009d;
public static final int googleg_disabled_color_18 = 0x7f0700ac;
public static final int googleg_standard_color_18 = 0x7f0700ad;
public static final int notification_action_background = 0x7f070181;
public static final int notification_bg = 0x7f070182;
public static final int notification_bg_low = 0x7f070183;
public static final int notification_bg_low_normal = 0x7f070184;
public static final int notification_bg_low_pressed = 0x7f070185;
public static final int notification_bg_normal = 0x7f070186;
public static final int notification_bg_normal_pressed = 0x7f070187;
public static final int notification_icon_background = 0x7f070188;
public static final int notification_template_icon_bg = 0x7f07018a;
public static final int notification_template_icon_low_bg = 0x7f07018b;
public static final int notification_tile_bg = 0x7f07018c;
public static final int notify_panel_notification_icon_bg = 0x7f07018d;
private drawable() {
}
}
/* loaded from: classes3.dex */
public static final class id {
public static final int accessibility_action_clickable_span = 0x7f090013;
public static final int accessibility_custom_action_0 = 0x7f090014;
public static final int accessibility_custom_action_1 = 0x7f090015;
public static final int accessibility_custom_action_10 = 0x7f090016;
public static final int accessibility_custom_action_11 = 0x7f090017;
public static final int accessibility_custom_action_12 = 0x7f090018;
public static final int accessibility_custom_action_13 = 0x7f090019;
public static final int accessibility_custom_action_14 = 0x7f09001a;
public static final int accessibility_custom_action_15 = 0x7f09001b;
public static final int accessibility_custom_action_16 = 0x7f09001c;
public static final int accessibility_custom_action_17 = 0x7f09001d;
public static final int accessibility_custom_action_18 = 0x7f09001e;
public static final int accessibility_custom_action_19 = 0x7f09001f;
public static final int accessibility_custom_action_2 = 0x7f090020;
public static final int accessibility_custom_action_20 = 0x7f090021;
public static final int accessibility_custom_action_21 = 0x7f090022;
public static final int accessibility_custom_action_22 = 0x7f090023;
public static final int accessibility_custom_action_23 = 0x7f090024;
public static final int accessibility_custom_action_24 = 0x7f090025;
public static final int accessibility_custom_action_25 = 0x7f090026;
public static final int accessibility_custom_action_26 = 0x7f090027;
public static final int accessibility_custom_action_27 = 0x7f090028;
public static final int accessibility_custom_action_28 = 0x7f090029;
public static final int accessibility_custom_action_29 = 0x7f09002a;
public static final int accessibility_custom_action_3 = 0x7f09002b;
public static final int accessibility_custom_action_30 = 0x7f09002c;
public static final int accessibility_custom_action_31 = 0x7f09002d;
public static final int accessibility_custom_action_4 = 0x7f09002e;
public static final int accessibility_custom_action_5 = 0x7f09002f;
public static final int accessibility_custom_action_6 = 0x7f090030;
public static final int accessibility_custom_action_7 = 0x7f090031;
public static final int accessibility_custom_action_8 = 0x7f090032;
public static final int accessibility_custom_action_9 = 0x7f090033;
public static final int action_container = 0x7f090045;
public static final int action_divider = 0x7f090048;
public static final int action_image = 0x7f09004a;
public static final int action_text = 0x7f090051;
public static final int actions = 0x7f090052;
public static final int adjust_height = 0x7f090058;
public static final int adjust_width = 0x7f090059;
public static final int async = 0x7f090071;
public static final int auto = 0x7f090072;
public static final int blocking = 0x7f090082;
public static final int bottom = 0x7f090083;
public static final int chronometer = 0x7f0900a9;
public static final int dark = 0x7f0900ea;
public static final int dialog_button = 0x7f09010b;
public static final int end = 0x7f090133;
public static final int forever = 0x7f090152;
public static final int icon = 0x7f090195;
public static final int icon_group = 0x7f090196;
public static final int icon_only = 0x7f090198;
public static final int info = 0x7f0901a9;
public static final int italic = 0x7f0901be;
public static final int left = 0x7f0901e2;
public static final int light = 0x7f0901e7;
public static final int line1 = 0x7f0901e9;
public static final int line3 = 0x7f0901ea;
public static final int none = 0x7f090264;
public static final int normal = 0x7f090265;
public static final int notification_background = 0x7f090269;
public static final int notification_main_column = 0x7f09026a;
public static final int notification_main_column_container = 0x7f09026b;
public static final int right = 0x7f0902cd;
public static final int right_icon = 0x7f0902cf;
public static final int right_side = 0x7f0902d0;
public static final int standard = 0x7f090321;
public static final int start = 0x7f090322;
public static final int tag_accessibility_actions = 0x7f09035c;
public static final int tag_accessibility_clickable_spans = 0x7f09035d;
public static final int tag_accessibility_heading = 0x7f09035e;
public static final int tag_accessibility_pane_title = 0x7f09035f;
public static final int tag_screen_reader_focusable = 0x7f090363;
public static final int tag_transition_group = 0x7f090365;
public static final int tag_unhandled_key_event_manager = 0x7f090366;
public static final int tag_unhandled_key_listeners = 0x7f090367;
public static final int text = 0x7f09036d;
public static final int text2 = 0x7f09036e;
public static final int time = 0x7f09038e;
public static final int title = 0x7f090393;
public static final int top = 0x7f0903ac;
public static final int wide = 0x7f090401;
private id() {
}
}
/* loaded from: classes3.dex */
public static final class integer {
public static final int google_play_services_version = 0x7f0a0009;
public static final int status_bar_notification_info_maxnum = 0x7f0a0045;
private integer() {
}
}
/* loaded from: classes3.dex */
public static final class layout {
public static final int custom_dialog = 0x7f0c0026;
public static final int notification_action = 0x7f0c00a8;
public static final int notification_action_tombstone = 0x7f0c00a9;
public static final int notification_template_custom_big = 0x7f0c00aa;
public static final int notification_template_icon_group = 0x7f0c00ab;
public static final int notification_template_part_chronometer = 0x7f0c00ac;
public static final int notification_template_part_time = 0x7f0c00ad;
private layout() {
}
}
/* loaded from: classes3.dex */
public static final class string {
public static final int common_google_play_services_enable_button = 0x7f1300b4;
public static final int common_google_play_services_enable_text = 0x7f1300b5;
public static final int common_google_play_services_enable_title = 0x7f1300b6;
public static final int common_google_play_services_install_button = 0x7f1300b7;
public static final int common_google_play_services_install_text = 0x7f1300b8;
public static final int common_google_play_services_install_title = 0x7f1300b9;
public static final int common_google_play_services_notification_channel_name = 0x7f1300ba;
public static final int common_google_play_services_notification_ticker = 0x7f1300bb;
public static final int common_google_play_services_unknown_issue = 0x7f1300bc;
public static final int common_google_play_services_unsupported_text = 0x7f1300bd;
public static final int common_google_play_services_update_button = 0x7f1300be;
public static final int common_google_play_services_update_text = 0x7f1300bf;
public static final int common_google_play_services_update_title = 0x7f1300c0;
public static final int common_google_play_services_updating_text = 0x7f1300c1;
public static final int common_google_play_services_wear_update_text = 0x7f1300c2;
public static final int common_open_on_phone = 0x7f1300c4;
public static final int common_signin_button_text = 0x7f1300c5;
public static final int common_signin_button_text_long = 0x7f1300c6;
public static final int status_bar_notification_info_overflow = 0x7f13023b;
private string() {
}
}
/* loaded from: classes3.dex */
public static final class style {
public static final int TextAppearance_Compat_Notification = 0x7f1401fb;
public static final int TextAppearance_Compat_Notification_Info = 0x7f1401fc;
public static final int TextAppearance_Compat_Notification_Line2 = 0x7f1401fd;
public static final int TextAppearance_Compat_Notification_Time = 0x7f1401fe;
public static final int TextAppearance_Compat_Notification_Title = 0x7f1401ff;
public static final int Widget_Compat_NotificationActionContainer = 0x7f1403a1;
public static final int Widget_Compat_NotificationActionText = 0x7f1403a2;
public static final int Widget_Support_CoordinatorLayout = 0x7f1404d7;
private style() {
}
}
/* loaded from: classes3.dex */
public static final class styleable {
public static final int ColorStateListItem_alpha = 0x00000003;
public static final int ColorStateListItem_android_alpha = 0x00000001;
public static final int ColorStateListItem_android_color = 0x00000000;
public static final int ColorStateListItem_android_lStar = 0x00000002;
public static final int ColorStateListItem_lStar = 0x00000004;
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0x00000000;
public static final int CoordinatorLayout_Layout_layout_anchor = 0x00000001;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 0x00000002;
public static final int CoordinatorLayout_Layout_layout_behavior = 0x00000003;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 0x00000004;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 0x00000005;
public static final int CoordinatorLayout_Layout_layout_keyline = 0x00000006;
public static final int CoordinatorLayout_keylines = 0x00000000;
public static final int CoordinatorLayout_statusBarBackground = 0x00000001;
public static final int FontFamilyFont_android_font = 0x00000000;
public static final int FontFamilyFont_android_fontStyle = 0x00000002;
public static final int FontFamilyFont_android_fontVariationSettings = 0x00000004;
public static final int FontFamilyFont_android_fontWeight = 0x00000001;
public static final int FontFamilyFont_android_ttcIndex = 0x00000003;
public static final int FontFamilyFont_font = 0x00000005;
public static final int FontFamilyFont_fontStyle = 0x00000006;
public static final int FontFamilyFont_fontVariationSettings = 0x00000007;
public static final int FontFamilyFont_fontWeight = 0x00000008;
public static final int FontFamilyFont_ttcIndex = 0x00000009;
public static final int FontFamily_fontProviderAuthority = 0x00000000;
public static final int FontFamily_fontProviderCerts = 0x00000001;
public static final int FontFamily_fontProviderFetchStrategy = 0x00000002;
public static final int FontFamily_fontProviderFetchTimeout = 0x00000003;
public static final int FontFamily_fontProviderPackage = 0x00000004;
public static final int FontFamily_fontProviderQuery = 0x00000005;
public static final int FontFamily_fontProviderSystemFontFamily = 0x00000006;
public static final int GradientColorItem_android_color = 0x00000000;
public static final int GradientColorItem_android_offset = 0x00000001;
public static final int GradientColor_android_centerColor = 0x00000007;
public static final int GradientColor_android_centerX = 0x00000003;
public static final int GradientColor_android_centerY = 0x00000004;
public static final int GradientColor_android_endColor = 0x00000001;
public static final int GradientColor_android_endX = 0x0000000a;
public static final int GradientColor_android_endY = 0x0000000b;
public static final int GradientColor_android_gradientRadius = 0x00000005;
public static final int GradientColor_android_startColor = 0x00000000;
public static final int GradientColor_android_startX = 0x00000008;
public static final int GradientColor_android_startY = 0x00000009;
public static final int GradientColor_android_tileMode = 0x00000006;
public static final int GradientColor_android_type = 0x00000002;
public static final int LoadingImageView_circleCrop = 0x00000000;
public static final int LoadingImageView_imageAspectRatio = 0x00000001;
public static final int LoadingImageView_imageAspectRatioAdjust = 0x00000002;
public static final int SignInButton_buttonSize = 0x00000000;
public static final int SignInButton_colorScheme = 0x00000001;
public static final int SignInButton_scopeUris = 0x00000002;
public static final int[] ColorStateListItem = {android.R.attr.color, android.R.attr.alpha, 16844359, com.adif.elcanomovil.R.attr.alpha, com.adif.elcanomovil.R.attr.lStar};
public static final int[] CoordinatorLayout = {com.adif.elcanomovil.R.attr.keylines, com.adif.elcanomovil.R.attr.statusBarBackground};
public static final int[] CoordinatorLayout_Layout = {android.R.attr.layout_gravity, com.adif.elcanomovil.R.attr.layout_anchor, com.adif.elcanomovil.R.attr.layout_anchorGravity, com.adif.elcanomovil.R.attr.layout_behavior, com.adif.elcanomovil.R.attr.layout_dodgeInsetEdges, com.adif.elcanomovil.R.attr.layout_insetEdge, com.adif.elcanomovil.R.attr.layout_keyline};
public static final int[] FontFamily = {com.adif.elcanomovil.R.attr.fontProviderAuthority, com.adif.elcanomovil.R.attr.fontProviderCerts, com.adif.elcanomovil.R.attr.fontProviderFetchStrategy, com.adif.elcanomovil.R.attr.fontProviderFetchTimeout, com.adif.elcanomovil.R.attr.fontProviderPackage, com.adif.elcanomovil.R.attr.fontProviderQuery, com.adif.elcanomovil.R.attr.fontProviderSystemFontFamily};
public static final int[] FontFamilyFont = {android.R.attr.font, android.R.attr.fontWeight, android.R.attr.fontStyle, android.R.attr.ttcIndex, android.R.attr.fontVariationSettings, com.adif.elcanomovil.R.attr.font, com.adif.elcanomovil.R.attr.fontStyle, com.adif.elcanomovil.R.attr.fontVariationSettings, com.adif.elcanomovil.R.attr.fontWeight, com.adif.elcanomovil.R.attr.ttcIndex};
public static final int[] GradientColor = {android.R.attr.startColor, android.R.attr.endColor, android.R.attr.type, android.R.attr.centerX, android.R.attr.centerY, android.R.attr.gradientRadius, android.R.attr.tileMode, android.R.attr.centerColor, android.R.attr.startX, android.R.attr.startY, android.R.attr.endX, android.R.attr.endY};
public static final int[] GradientColorItem = {android.R.attr.color, android.R.attr.offset};
public static final int[] LoadingImageView = {com.adif.elcanomovil.R.attr.circleCrop, com.adif.elcanomovil.R.attr.imageAspectRatio, com.adif.elcanomovil.R.attr.imageAspectRatioAdjust};
public static final int[] SignInButton = {com.adif.elcanomovil.R.attr.buttonSize, com.adif.elcanomovil.R.attr.colorScheme, com.adif.elcanomovil.R.attr.scopeUris};
private styleable() {
}
}
private R() {
}
}

View File

@@ -0,0 +1,18 @@
package com.google.firebase.auth;
import com.google.android.gms.common.internal.Preconditions;
import com.google.firebase.FirebaseException;
/* loaded from: classes3.dex */
public class FirebaseAuthException extends FirebaseException {
private final String zza;
public FirebaseAuthException(String str, String str2) {
super(str2);
this.zza = Preconditions.checkNotEmpty(str);
}
public String getErrorCode() {
return this.zza;
}
}

View File

@@ -0,0 +1,62 @@
package com.google.firebase.auth;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.firebase.remoteconfig.RemoteConfigComponent;
import java.util.Map;
/* loaded from: classes3.dex */
public class GetTokenResult {
private String zza;
private Map<String, Object> zzb;
@KeepForSdk
public GetTokenResult(String str, Map<String, Object> map) {
this.zza = str;
this.zzb = map;
}
private final long zza(String str) {
Integer num = (Integer) this.zzb.get(str);
if (num == null) {
return 0L;
}
return num.longValue();
}
public long getAuthTimestamp() {
return zza("auth_time");
}
public Map<String, Object> getClaims() {
return this.zzb;
}
public long getExpirationTimestamp() {
return zza("exp");
}
public long getIssuedAtTimestamp() {
return zza("iat");
}
public String getSignInProvider() {
Map map = (Map) this.zzb.get(RemoteConfigComponent.DEFAULT_NAMESPACE);
if (map != null) {
return (String) map.get("sign_in_provider");
}
return null;
}
@KeepForSdk
public String getSignInSecondFactor() {
Map map = (Map) this.zzb.get(RemoteConfigComponent.DEFAULT_NAMESPACE);
if (map != null) {
return (String) map.get("sign_in_second_factor");
}
return null;
}
public String getToken() {
return this.zza;
}
}

View File

@@ -0,0 +1,11 @@
package com.google.firebase.auth.internal;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.firebase.internal.InternalTokenResult;
@KeepForSdk
/* loaded from: classes3.dex */
public interface IdTokenListener {
@KeepForSdk
void onIdTokenChanged(InternalTokenResult internalTokenResult);
}

View File

@@ -0,0 +1,25 @@
package com.google.firebase.auth.internal;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.tasks.Task;
import com.google.firebase.annotations.DeferredApi;
import com.google.firebase.auth.GetTokenResult;
import com.google.firebase.internal.InternalTokenProvider;
@KeepForSdk
/* loaded from: classes3.dex */
public interface InternalAuthProvider extends InternalTokenProvider {
@KeepForSdk
@DeferredApi
void addIdTokenListener(IdTokenListener idTokenListener);
@Override // com.google.firebase.internal.InternalTokenProvider
@KeepForSdk
Task<GetTokenResult> getAccessToken(boolean z3);
@Override // com.google.firebase.internal.InternalTokenProvider
String getUid();
@KeepForSdk
void removeIdTokenListener(IdTokenListener idTokenListener);
}

View File

@@ -0,0 +1,7 @@
package com.google.firebase.auth.internal;
/* loaded from: classes3.dex */
public final class R {
private R() {
}
}

View File

@@ -0,0 +1,9 @@
package com.google.firebase.components;
/* loaded from: classes3.dex */
public final class BuildConfig {
public static final String BUILD_TYPE = "release";
public static final boolean DEBUG = false;
public static final String LIBRARY_PACKAGE_NAME = "com.google.firebase.components";
public static final String VERSION_NAME = "17.1.5";
}

View File

@@ -0,0 +1,241 @@
package com.google.firebase.components;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/* loaded from: classes3.dex */
public final class Component<T> {
private final Set<Dependency> dependencies;
private final ComponentFactory<T> factory;
private final int instantiation;
private final String name;
private final Set<Qualified<? super T>> providedInterfaces;
private final Set<Class<?>> publishedEvents;
private final int type;
public static <T> Builder<T> builder(Class<T> cls) {
return new Builder<>(cls, new Class[0]);
}
public static <T> Component<T> intoSet(T t2, Class<T> cls) {
return intoSetBuilder(cls).factory(new a(t2, 2)).build();
}
public static <T> Builder<T> intoSetBuilder(Class<T> cls) {
return builder(cls).intoSet();
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object lambda$intoSet$3(Object obj, ComponentContainer componentContainer) {
return obj;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object lambda$intoSet$4(Object obj, ComponentContainer componentContainer) {
return obj;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object lambda$of$0(Object obj, ComponentContainer componentContainer) {
return obj;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object lambda$of$1(Object obj, ComponentContainer componentContainer) {
return obj;
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ Object lambda$of$2(Object obj, ComponentContainer componentContainer) {
return obj;
}
@Deprecated
public static <T> Component<T> of(Class<T> cls, T t2) {
return builder(cls).factory(new a(t2, 3)).build();
}
public Set<Dependency> getDependencies() {
return this.dependencies;
}
public ComponentFactory<T> getFactory() {
return this.factory;
}
public String getName() {
return this.name;
}
public Set<Qualified<? super T>> getProvidedInterfaces() {
return this.providedInterfaces;
}
public Set<Class<?>> getPublishedEvents() {
return this.publishedEvents;
}
public boolean isAlwaysEager() {
return this.instantiation == 1;
}
public boolean isEagerInDefaultApp() {
return this.instantiation == 2;
}
public boolean isLazy() {
return this.instantiation == 0;
}
public boolean isValue() {
return this.type == 0;
}
public String toString() {
return "Component<" + Arrays.toString(this.providedInterfaces.toArray()) + ">{" + this.instantiation + ", type=" + this.type + ", deps=" + Arrays.toString(this.dependencies.toArray()) + "}";
}
public Component<T> withFactory(ComponentFactory<T> componentFactory) {
return new Component<>(this.name, this.providedInterfaces, this.dependencies, this.instantiation, this.type, componentFactory, this.publishedEvents);
}
/* loaded from: classes3.dex */
public static class Builder<T> {
private final Set<Dependency> dependencies;
private ComponentFactory<T> factory;
private int instantiation;
private String name;
private final Set<Qualified<? super T>> providedInterfaces;
private final Set<Class<?>> publishedEvents;
private int type;
/* JADX INFO: Access modifiers changed from: private */
public Builder<T> intoSet() {
this.type = 1;
return this;
}
private Builder<T> setInstantiation(int i) {
Preconditions.checkState(this.instantiation == 0, "Instantiation type has already been set.");
this.instantiation = i;
return this;
}
private void validateInterface(Qualified<?> qualified) {
Preconditions.checkArgument(!this.providedInterfaces.contains(qualified), "Components are not allowed to depend on interfaces they themselves provide.");
}
public Builder<T> add(Dependency dependency) {
Preconditions.checkNotNull(dependency, "Null dependency");
validateInterface(dependency.getInterface());
this.dependencies.add(dependency);
return this;
}
public Builder<T> alwaysEager() {
return setInstantiation(1);
}
public Component<T> build() {
Preconditions.checkState(this.factory != null, "Missing required property: factory.");
return new Component<>(this.name, new HashSet(this.providedInterfaces), new HashSet(this.dependencies), this.instantiation, this.type, this.factory, this.publishedEvents);
}
public Builder<T> eagerInDefaultApp() {
return setInstantiation(2);
}
public Builder<T> factory(ComponentFactory<T> componentFactory) {
this.factory = (ComponentFactory) Preconditions.checkNotNull(componentFactory, "Null factory");
return this;
}
public Builder<T> name(String str) {
this.name = str;
return this;
}
public Builder<T> publishes(Class<?> cls) {
this.publishedEvents.add(cls);
return this;
}
@SafeVarargs
private Builder(Class<T> cls, Class<? super T>... clsArr) {
this.name = null;
HashSet hashSet = new HashSet();
this.providedInterfaces = hashSet;
this.dependencies = new HashSet();
this.instantiation = 0;
this.type = 0;
this.publishedEvents = new HashSet();
Preconditions.checkNotNull(cls, "Null interface");
hashSet.add(Qualified.unqualified(cls));
for (Class<? super T> cls2 : clsArr) {
Preconditions.checkNotNull(cls2, "Null interface");
this.providedInterfaces.add(Qualified.unqualified(cls2));
}
}
@SafeVarargs
private Builder(Qualified<T> qualified, Qualified<? super T>... qualifiedArr) {
this.name = null;
HashSet hashSet = new HashSet();
this.providedInterfaces = hashSet;
this.dependencies = new HashSet();
this.instantiation = 0;
this.type = 0;
this.publishedEvents = new HashSet();
Preconditions.checkNotNull(qualified, "Null interface");
hashSet.add(qualified);
for (Qualified<? super T> qualified2 : qualifiedArr) {
Preconditions.checkNotNull(qualified2, "Null interface");
}
Collections.addAll(this.providedInterfaces, qualifiedArr);
}
}
private Component(String str, Set<Qualified<? super T>> set, Set<Dependency> set2, int i, int i4, ComponentFactory<T> componentFactory, Set<Class<?>> set3) {
this.name = str;
this.providedInterfaces = Collections.unmodifiableSet(set);
this.dependencies = Collections.unmodifiableSet(set2);
this.instantiation = i;
this.type = i4;
this.factory = componentFactory;
this.publishedEvents = Collections.unmodifiableSet(set3);
}
@SafeVarargs
public static <T> Builder<T> builder(Class<T> cls, Class<? super T>... clsArr) {
return new Builder<>(cls, clsArr);
}
public static <T> Component<T> intoSet(T t2, Qualified<T> qualified) {
return intoSetBuilder(qualified).factory(new a(t2, 1)).build();
}
public static <T> Builder<T> intoSetBuilder(Qualified<T> qualified) {
return builder(qualified).intoSet();
}
@SafeVarargs
public static <T> Component<T> of(T t2, Class<T> cls, Class<? super T>... clsArr) {
return builder(cls, clsArr).factory(new a(t2, 4)).build();
}
public static <T> Builder<T> builder(Qualified<T> qualified) {
return new Builder<>(qualified, new Qualified[0]);
}
@SafeVarargs
public static <T> Component<T> of(T t2, Qualified<T> qualified, Qualified<? super T>... qualifiedArr) {
return builder(qualified, qualifiedArr).factory(new a(t2, 0)).build();
}
@SafeVarargs
public static <T> Builder<T> builder(Qualified<T> qualified, Qualified<? super T>... qualifiedArr) {
return new Builder<>(qualified, qualifiedArr);
}
}

View File

@@ -0,0 +1,46 @@
package com.google.firebase.components;
import com.google.firebase.inject.Deferred;
import com.google.firebase.inject.Provider;
import java.util.Set;
/* loaded from: classes3.dex */
public interface ComponentContainer {
default <T> T get(Class<T> cls) {
return (T) get(Qualified.unqualified(cls));
}
<T> Deferred<T> getDeferred(Qualified<T> qualified);
default <T> Deferred<T> getDeferred(Class<T> cls) {
return getDeferred(Qualified.unqualified(cls));
}
<T> Provider<T> getProvider(Qualified<T> qualified);
default <T> Provider<T> getProvider(Class<T> cls) {
return getProvider(Qualified.unqualified(cls));
}
default <T> Set<T> setOf(Class<T> cls) {
return setOf(Qualified.unqualified(cls));
}
<T> Provider<Set<T>> setOfProvider(Qualified<T> qualified);
default <T> Provider<Set<T>> setOfProvider(Class<T> cls) {
return setOfProvider(Qualified.unqualified(cls));
}
default <T> T get(Qualified<T> qualified) {
Provider<T> provider = getProvider(qualified);
if (provider == null) {
return null;
}
return provider.get();
}
default <T> Set<T> setOf(Qualified<T> qualified) {
return setOfProvider(qualified).get();
}
}

View File

@@ -0,0 +1,131 @@
package com.google.firebase.components;
import C.w;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.PackageManager;
import android.content.pm.ServiceInfo;
import android.os.Bundle;
import android.util.Log;
import com.google.firebase.inject.Provider;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes3.dex */
public final class ComponentDiscovery<T> {
private static final String COMPONENT_KEY_PREFIX = "com.google.firebase.components:";
private static final String COMPONENT_SENTINEL_VALUE = "com.google.firebase.components.ComponentRegistrar";
static final String TAG = "ComponentDiscovery";
private final T context;
private final RegistrarNameRetriever<T> retriever;
/* loaded from: classes3.dex */
public static class MetadataRegistrarNameRetriever implements RegistrarNameRetriever<Context> {
private final Class<? extends Service> discoveryService;
private Bundle getMetadata(Context context) {
try {
PackageManager packageManager = context.getPackageManager();
if (packageManager == null) {
Log.w(ComponentDiscovery.TAG, "Context has no PackageManager.");
return null;
}
ServiceInfo serviceInfo = packageManager.getServiceInfo(new ComponentName(context, this.discoveryService), 128);
if (serviceInfo != null) {
return serviceInfo.metaData;
}
Log.w(ComponentDiscovery.TAG, this.discoveryService + " has no service info.");
return null;
} catch (PackageManager.NameNotFoundException unused) {
Log.w(ComponentDiscovery.TAG, "Application info not found.");
return null;
}
}
private MetadataRegistrarNameRetriever(Class<? extends Service> cls) {
this.discoveryService = cls;
}
@Override // com.google.firebase.components.ComponentDiscovery.RegistrarNameRetriever
public List<String> retrieve(Context context) {
Bundle metadata = getMetadata(context);
if (metadata == null) {
Log.w(ComponentDiscovery.TAG, "Could not retrieve metadata, returning empty list of registrars.");
return Collections.EMPTY_LIST;
}
ArrayList arrayList = new ArrayList();
for (String str : metadata.keySet()) {
if (ComponentDiscovery.COMPONENT_SENTINEL_VALUE.equals(metadata.get(str)) && str.startsWith(ComponentDiscovery.COMPONENT_KEY_PREFIX)) {
arrayList.add(str.substring(31));
}
}
return arrayList;
}
}
/* loaded from: classes3.dex */
public interface RegistrarNameRetriever<T> {
List<String> retrieve(T t2);
}
public ComponentDiscovery(T t2, RegistrarNameRetriever<T> registrarNameRetriever) {
this.context = t2;
this.retriever = registrarNameRetriever;
}
public static ComponentDiscovery<Context> forContext(Context context, Class<? extends Service> cls) {
return new ComponentDiscovery<>(context, new MetadataRegistrarNameRetriever(cls));
}
/* JADX INFO: Access modifiers changed from: private */
public static ComponentRegistrar instantiate(String str) {
try {
Class<?> cls = Class.forName(str);
if (ComponentRegistrar.class.isAssignableFrom(cls)) {
return (ComponentRegistrar) cls.getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
}
throw new InvalidRegistrarException("Class " + str + " is not an instance of com.google.firebase.components.ComponentRegistrar");
} catch (ClassNotFoundException unused) {
Log.w(TAG, "Class " + str + " is not an found.");
return null;
} catch (IllegalAccessException e4) {
throw new InvalidRegistrarException(w.o("Could not instantiate ", str, "."), e4);
} catch (InstantiationException e5) {
throw new InvalidRegistrarException(w.o("Could not instantiate ", str, "."), e5);
} catch (NoSuchMethodException e6) {
throw new InvalidRegistrarException(w.z("Could not instantiate ", str), e6);
} catch (InvocationTargetException e7) {
throw new InvalidRegistrarException(w.z("Could not instantiate ", str), e7);
}
}
@Deprecated
public List<ComponentRegistrar> discover() {
ArrayList arrayList = new ArrayList();
Iterator<String> it = this.retriever.retrieve(this.context).iterator();
while (it.hasNext()) {
try {
ComponentRegistrar instantiate = instantiate(it.next());
if (instantiate != null) {
arrayList.add(instantiate);
}
} catch (InvalidRegistrarException e4) {
Log.w(TAG, "Invalid component registrar.", e4);
}
}
return arrayList;
}
public List<Provider<ComponentRegistrar>> discoverLazy() {
ArrayList arrayList = new ArrayList();
Iterator<String> it = this.retriever.retrieve(this.context).iterator();
while (it.hasNext()) {
arrayList.add(new b(it.next(), 0));
}
return arrayList;
}
}

View File

@@ -0,0 +1,13 @@
package com.google.firebase.components;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
/* loaded from: classes3.dex */
public class ComponentDiscoveryService extends Service {
@Override // android.app.Service
public IBinder onBind(Intent intent) {
return null;
}
}

View File

@@ -0,0 +1,6 @@
package com.google.firebase.components;
/* loaded from: classes3.dex */
public interface ComponentFactory<T> {
T create(ComponentContainer componentContainer);
}

View File

@@ -0,0 +1,8 @@
package com.google.firebase.components;
import java.util.List;
/* loaded from: classes3.dex */
public interface ComponentRegistrar {
List<Component<?>> getComponents();
}

View File

@@ -0,0 +1,10 @@
package com.google.firebase.components;
import java.util.List;
/* loaded from: classes3.dex */
public interface ComponentRegistrarProcessor {
public static final ComponentRegistrarProcessor NOOP = new Object();
List<Component<?>> processRegistrar(ComponentRegistrar componentRegistrar);
}

View File

@@ -0,0 +1,340 @@
package com.google.firebase.components;
import android.util.Log;
import com.google.firebase.dynamicloading.ComponentLoader;
import com.google.firebase.events.Publisher;
import com.google.firebase.events.Subscriber;
import com.google.firebase.inject.Deferred;
import com.google.firebase.inject.Provider;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicReference;
/* loaded from: classes3.dex */
public class ComponentRuntime implements ComponentContainer, ComponentLoader {
private static final Provider<Set<Object>> EMPTY_PROVIDER = new g(1);
private final ComponentRegistrarProcessor componentRegistrarProcessor;
private final Map<Component<?>, Provider<?>> components;
private final AtomicReference<Boolean> eagerComponentsInitializedWith;
private final EventBus eventBus;
private final Map<Qualified<?>, Provider<?>> lazyInstanceMap;
private final Map<Qualified<?>, LazySet<?>> lazySetMap;
private Set<String> processedCoroutineDispatcherInterfaces;
private final List<Provider<ComponentRegistrar>> unprocessedRegistrarProviders;
/* loaded from: classes3.dex */
public static final class Builder {
private final Executor defaultExecutor;
private final List<Provider<ComponentRegistrar>> lazyRegistrars = new ArrayList();
private final List<Component<?>> additionalComponents = new ArrayList();
private ComponentRegistrarProcessor componentRegistrarProcessor = ComponentRegistrarProcessor.NOOP;
public Builder(Executor executor) {
this.defaultExecutor = executor;
}
public static /* synthetic */ ComponentRegistrar lambda$addComponentRegistrar$0(ComponentRegistrar componentRegistrar) {
return componentRegistrar;
}
public Builder addComponent(Component<?> component) {
this.additionalComponents.add(component);
return this;
}
public Builder addComponentRegistrar(ComponentRegistrar componentRegistrar) {
this.lazyRegistrars.add(new c(componentRegistrar, 1));
return this;
}
public Builder addLazyComponentRegistrars(Collection<Provider<ComponentRegistrar>> collection) {
this.lazyRegistrars.addAll(collection);
return this;
}
public ComponentRuntime build() {
return new ComponentRuntime(this.defaultExecutor, this.lazyRegistrars, this.additionalComponents, this.componentRegistrarProcessor);
}
public Builder setProcessor(ComponentRegistrarProcessor componentRegistrarProcessor) {
this.componentRegistrarProcessor = componentRegistrarProcessor;
return this;
}
}
public /* synthetic */ ComponentRuntime(Executor executor, Iterable iterable, Collection collection, ComponentRegistrarProcessor componentRegistrarProcessor, AnonymousClass1 anonymousClass1) {
this(executor, iterable, collection, componentRegistrarProcessor);
}
public static Builder builder(Executor executor) {
return new Builder(executor);
}
private void discoverComponents(List<Component<?>> list) {
ArrayList arrayList = new ArrayList();
synchronized (this) {
Iterator<Provider<ComponentRegistrar>> it = this.unprocessedRegistrarProviders.iterator();
while (it.hasNext()) {
try {
ComponentRegistrar componentRegistrar = it.next().get();
if (componentRegistrar != null) {
list.addAll(this.componentRegistrarProcessor.processRegistrar(componentRegistrar));
it.remove();
}
} catch (InvalidRegistrarException e4) {
it.remove();
Log.w("ComponentDiscovery", "Invalid component registrar.", e4);
}
}
Iterator<Component<?>> it2 = list.iterator();
while (it2.hasNext()) {
Object[] array = it2.next().getProvidedInterfaces().toArray();
int length = array.length;
int i = 0;
while (true) {
if (i < length) {
Object obj = array[i];
if (obj.toString().contains("kotlinx.coroutines.CoroutineDispatcher")) {
if (this.processedCoroutineDispatcherInterfaces.contains(obj.toString())) {
it2.remove();
break;
}
this.processedCoroutineDispatcherInterfaces.add(obj.toString());
}
i++;
}
}
}
if (this.components.isEmpty()) {
CycleDetector.detect(list);
} else {
ArrayList arrayList2 = new ArrayList(this.components.keySet());
arrayList2.addAll(list);
CycleDetector.detect(arrayList2);
}
for (final Component<?> component : list) {
this.components.put(component, new Lazy(new Provider() { // from class: com.google.firebase.components.d
@Override // com.google.firebase.inject.Provider
public final Object get() {
Object lambda$discoverComponents$0;
lambda$discoverComponents$0 = ComponentRuntime.this.lambda$discoverComponents$0(component);
return lambda$discoverComponents$0;
}
}));
}
arrayList.addAll(processInstanceComponents(list));
arrayList.addAll(processSetComponents());
processDependencies();
}
Iterator it3 = arrayList.iterator();
while (it3.hasNext()) {
((Runnable) it3.next()).run();
}
maybeInitializeEagerComponents();
}
private void doInitializeEagerComponents(Map<Component<?>, Provider<?>> map, boolean z3) {
for (Map.Entry<Component<?>, Provider<?>> entry : map.entrySet()) {
Component<?> key = entry.getKey();
Provider<?> value = entry.getValue();
if (key.isAlwaysEager() || (key.isEagerInDefaultApp() && z3)) {
value.get();
}
}
this.eventBus.enablePublishingAndFlushPending();
}
private static <T> List<T> iterableToList(Iterable<T> iterable) {
ArrayList arrayList = new ArrayList();
Iterator<T> it = iterable.iterator();
while (it.hasNext()) {
arrayList.add(it.next());
}
return arrayList;
}
public /* synthetic */ Object lambda$discoverComponents$0(Component component) {
return component.getFactory().create(new RestrictedComponentContainer(component, this));
}
public static /* synthetic */ ComponentRegistrar lambda$toProviders$1(ComponentRegistrar componentRegistrar) {
return componentRegistrar;
}
private void maybeInitializeEagerComponents() {
Boolean bool = this.eagerComponentsInitializedWith.get();
if (bool != null) {
doInitializeEagerComponents(this.components, bool.booleanValue());
}
}
private void processDependencies() {
for (Component<?> component : this.components.keySet()) {
for (Dependency dependency : component.getDependencies()) {
if (dependency.isSet() && !this.lazySetMap.containsKey(dependency.getInterface())) {
this.lazySetMap.put(dependency.getInterface(), LazySet.fromCollection(Collections.EMPTY_SET));
} else if (this.lazyInstanceMap.containsKey(dependency.getInterface())) {
continue;
} else {
if (dependency.isRequired()) {
throw new MissingDependencyException("Unsatisfied dependency for component " + component + ": " + dependency.getInterface());
}
if (!dependency.isSet()) {
this.lazyInstanceMap.put(dependency.getInterface(), OptionalProvider.empty());
}
}
}
}
}
private List<Runnable> processInstanceComponents(List<Component<?>> list) {
ArrayList arrayList = new ArrayList();
for (Component<?> component : list) {
if (component.isValue()) {
Provider<?> provider = this.components.get(component);
for (Qualified<? super Object> qualified : component.getProvidedInterfaces()) {
if (this.lazyInstanceMap.containsKey(qualified)) {
arrayList.add(new e(0, (OptionalProvider) this.lazyInstanceMap.get(qualified), provider));
} else {
this.lazyInstanceMap.put(qualified, provider);
}
}
}
}
return arrayList;
}
private List<Runnable> processSetComponents() {
ArrayList arrayList = new ArrayList();
HashMap hashMap = new HashMap();
for (Map.Entry<Component<?>, Provider<?>> entry : this.components.entrySet()) {
Component<?> key = entry.getKey();
if (!key.isValue()) {
Provider<?> value = entry.getValue();
for (Qualified<? super Object> qualified : key.getProvidedInterfaces()) {
if (!hashMap.containsKey(qualified)) {
hashMap.put(qualified, new HashSet());
}
((Set) hashMap.get(qualified)).add(value);
}
}
}
for (Map.Entry entry2 : hashMap.entrySet()) {
if (this.lazySetMap.containsKey(entry2.getKey())) {
LazySet<?> lazySet = this.lazySetMap.get(entry2.getKey());
Iterator it = ((Set) entry2.getValue()).iterator();
while (it.hasNext()) {
arrayList.add(new e(1, lazySet, (Provider) it.next()));
}
} else {
this.lazySetMap.put((Qualified) entry2.getKey(), LazySet.fromCollection((Collection) entry2.getValue()));
}
}
return arrayList;
}
private static Iterable<Provider<ComponentRegistrar>> toProviders(Iterable<ComponentRegistrar> iterable) {
ArrayList arrayList = new ArrayList();
Iterator<ComponentRegistrar> it = iterable.iterator();
while (it.hasNext()) {
arrayList.add(new c(it.next(), 0));
}
return arrayList;
}
public Collection<Component<?>> getAllComponentsForTest() {
return this.components.keySet();
}
@Override // com.google.firebase.components.ComponentContainer
public <T> Deferred<T> getDeferred(Qualified<T> qualified) {
Provider<T> provider = getProvider(qualified);
return provider == null ? OptionalProvider.empty() : provider instanceof OptionalProvider ? (OptionalProvider) provider : OptionalProvider.of(provider);
}
@Override // com.google.firebase.components.ComponentContainer
public synchronized <T> Provider<T> getProvider(Qualified<T> qualified) {
Preconditions.checkNotNull(qualified, "Null interface requested.");
return (Provider) this.lazyInstanceMap.get(qualified);
}
public void initializeAllComponentsForTests() {
Iterator<Provider<?>> it = this.components.values().iterator();
while (it.hasNext()) {
it.next().get();
}
}
public void initializeEagerComponents(boolean z3) {
HashMap hashMap;
AtomicReference<Boolean> atomicReference = this.eagerComponentsInitializedWith;
Boolean valueOf = Boolean.valueOf(z3);
while (!atomicReference.compareAndSet(null, valueOf)) {
if (atomicReference.get() != null) {
return;
}
}
synchronized (this) {
hashMap = new HashMap(this.components);
}
doInitializeEagerComponents(hashMap, z3);
}
@Override // com.google.firebase.components.ComponentContainer
public synchronized <T> Provider<Set<T>> setOfProvider(Qualified<T> qualified) {
LazySet<?> lazySet = this.lazySetMap.get(qualified);
if (lazySet != null) {
return lazySet;
}
return (Provider<Set<T>>) EMPTY_PROVIDER;
}
@Deprecated
public ComponentRuntime(Executor executor, Iterable<ComponentRegistrar> iterable, Component<?>... componentArr) {
this(executor, toProviders(iterable), Arrays.asList(componentArr), ComponentRegistrarProcessor.NOOP);
}
private ComponentRuntime(Executor executor, Iterable<Provider<ComponentRegistrar>> iterable, Collection<Component<?>> collection, ComponentRegistrarProcessor componentRegistrarProcessor) {
this.components = new HashMap();
this.lazyInstanceMap = new HashMap();
this.lazySetMap = new HashMap();
this.processedCoroutineDispatcherInterfaces = new HashSet();
this.eagerComponentsInitializedWith = new AtomicReference<>();
EventBus eventBus = new EventBus(executor);
this.eventBus = eventBus;
this.componentRegistrarProcessor = componentRegistrarProcessor;
ArrayList arrayList = new ArrayList();
arrayList.add(Component.of(eventBus, (Class<EventBus>) EventBus.class, (Class<? super EventBus>[]) new Class[]{Subscriber.class, Publisher.class}));
arrayList.add(Component.of(this, (Class<ComponentRuntime>) ComponentLoader.class, (Class<? super ComponentRuntime>[]) new Class[0]));
for (Component<?> component : collection) {
if (component != null) {
arrayList.add(component);
}
}
this.unprocessedRegistrarProviders = iterableToList(iterable);
discoverComponents(arrayList);
}
@Override // com.google.firebase.dynamicloading.ComponentLoader
public void discoverComponents() {
synchronized (this) {
try {
if (this.unprocessedRegistrarProviders.isEmpty()) {
return;
}
discoverComponents(new ArrayList());
} catch (Throwable th) {
throw th;
}
}
}
}

View File

@@ -0,0 +1,156 @@
package com.google.firebase.components;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class CycleDetector {
/* loaded from: classes3.dex */
public static class ComponentNode {
private final Component<?> component;
private final Set<ComponentNode> dependencies = new HashSet();
private final Set<ComponentNode> dependents = new HashSet();
public ComponentNode(Component<?> component) {
this.component = component;
}
public void addDependency(ComponentNode componentNode) {
this.dependencies.add(componentNode);
}
public void addDependent(ComponentNode componentNode) {
this.dependents.add(componentNode);
}
public Component<?> getComponent() {
return this.component;
}
public Set<ComponentNode> getDependencies() {
return this.dependencies;
}
public boolean isLeaf() {
return this.dependencies.isEmpty();
}
public boolean isRoot() {
return this.dependents.isEmpty();
}
public void removeDependent(ComponentNode componentNode) {
this.dependents.remove(componentNode);
}
}
/* loaded from: classes3.dex */
public static class Dep {
private final Qualified<?> anInterface;
private final boolean set;
public boolean equals(Object obj) {
if (obj instanceof Dep) {
Dep dep = (Dep) obj;
if (dep.anInterface.equals(this.anInterface) && dep.set == this.set) {
return true;
}
}
return false;
}
public int hashCode() {
return Boolean.valueOf(this.set).hashCode() ^ ((this.anInterface.hashCode() ^ 1000003) * 1000003);
}
private Dep(Qualified<?> qualified, boolean z3) {
this.anInterface = qualified;
this.set = z3;
}
}
public static void detect(List<Component<?>> list) {
Set<ComponentNode> graph = toGraph(list);
Set<ComponentNode> roots = getRoots(graph);
int i = 0;
while (!roots.isEmpty()) {
ComponentNode next = roots.iterator().next();
roots.remove(next);
i++;
for (ComponentNode componentNode : next.getDependencies()) {
componentNode.removeDependent(next);
if (componentNode.isRoot()) {
roots.add(componentNode);
}
}
}
if (i == list.size()) {
return;
}
ArrayList arrayList = new ArrayList();
for (ComponentNode componentNode2 : graph) {
if (!componentNode2.isRoot() && !componentNode2.isLeaf()) {
arrayList.add(componentNode2.getComponent());
}
}
throw new DependencyCycleException(arrayList);
}
private static Set<ComponentNode> getRoots(Set<ComponentNode> set) {
HashSet hashSet = new HashSet();
for (ComponentNode componentNode : set) {
if (componentNode.isRoot()) {
hashSet.add(componentNode);
}
}
return hashSet;
}
private static Set<ComponentNode> toGraph(List<Component<?>> list) {
Set<ComponentNode> set;
HashMap hashMap = new HashMap(list.size());
Iterator<Component<?>> it = list.iterator();
while (true) {
if (!it.hasNext()) {
Iterator it2 = hashMap.values().iterator();
while (it2.hasNext()) {
for (ComponentNode componentNode : (Set) it2.next()) {
for (Dependency dependency : componentNode.getComponent().getDependencies()) {
if (dependency.isDirectInjection() && (set = (Set) hashMap.get(new Dep(dependency.getInterface(), dependency.isSet()))) != null) {
for (ComponentNode componentNode2 : set) {
componentNode.addDependency(componentNode2);
componentNode2.addDependent(componentNode);
}
}
}
}
}
HashSet hashSet = new HashSet();
Iterator it3 = hashMap.values().iterator();
while (it3.hasNext()) {
hashSet.addAll((Set) it3.next());
}
return hashSet;
}
Component<?> next = it.next();
ComponentNode componentNode3 = new ComponentNode(next);
for (Qualified<? super Object> qualified : next.getProvidedInterfaces()) {
Dep dep = new Dep(qualified, !next.isValue());
if (!hashMap.containsKey(dep)) {
hashMap.put(dep, new HashSet());
}
Set set2 = (Set) hashMap.get(dep);
if (!set2.isEmpty() && !dep.set) {
throw new IllegalArgumentException("Multiple components provide " + qualified + ".");
}
set2.add(componentNode3);
}
}
}
}

View File

@@ -0,0 +1,130 @@
package com.google.firebase.components;
import C.w;
/* loaded from: classes3.dex */
public final class Dependency {
private final Qualified<?> anInterface;
private final int injection;
private final int type;
private Dependency(Class<?> cls, int i, int i4) {
this((Qualified<?>) Qualified.unqualified(cls), i, i4);
}
public static Dependency deferred(Class<?> cls) {
return new Dependency(cls, 0, 2);
}
private static String describeInjection(int i) {
if (i == 0) {
return "direct";
}
if (i == 1) {
return "provider";
}
if (i == 2) {
return "deferred";
}
throw new AssertionError(com.google.android.gms.measurement.internal.a.l(i, "Unsupported injection: "));
}
@Deprecated
public static Dependency optional(Class<?> cls) {
return new Dependency(cls, 0, 0);
}
public static Dependency optionalProvider(Class<?> cls) {
return new Dependency(cls, 0, 1);
}
public static Dependency required(Class<?> cls) {
return new Dependency(cls, 1, 0);
}
public static Dependency requiredProvider(Class<?> cls) {
return new Dependency(cls, 1, 1);
}
public static Dependency setOf(Class<?> cls) {
return new Dependency(cls, 2, 0);
}
public static Dependency setOfProvider(Class<?> cls) {
return new Dependency(cls, 2, 1);
}
public boolean equals(Object obj) {
if (obj instanceof Dependency) {
Dependency dependency = (Dependency) obj;
if (this.anInterface.equals(dependency.anInterface) && this.type == dependency.type && this.injection == dependency.injection) {
return true;
}
}
return false;
}
public Qualified<?> getInterface() {
return this.anInterface;
}
public int hashCode() {
return this.injection ^ ((((this.anInterface.hashCode() ^ 1000003) * 1000003) ^ this.type) * 1000003);
}
public boolean isDeferred() {
return this.injection == 2;
}
public boolean isDirectInjection() {
return this.injection == 0;
}
public boolean isRequired() {
return this.type == 1;
}
public boolean isSet() {
return this.type == 2;
}
public String toString() {
StringBuilder sb = new StringBuilder("Dependency{anInterface=");
sb.append(this.anInterface);
sb.append(", type=");
int i = this.type;
sb.append(i == 1 ? "required" : i == 0 ? "optional" : "set");
sb.append(", injection=");
return w.r(sb, describeInjection(this.injection), "}");
}
private Dependency(Qualified<?> qualified, int i, int i4) {
this.anInterface = (Qualified) Preconditions.checkNotNull(qualified, "Null dependency anInterface.");
this.type = i;
this.injection = i4;
}
public static Dependency deferred(Qualified<?> qualified) {
return new Dependency(qualified, 0, 2);
}
public static Dependency optionalProvider(Qualified<?> qualified) {
return new Dependency(qualified, 0, 1);
}
public static Dependency required(Qualified<?> qualified) {
return new Dependency(qualified, 1, 0);
}
public static Dependency requiredProvider(Qualified<?> qualified) {
return new Dependency(qualified, 1, 1);
}
public static Dependency setOf(Qualified<?> qualified) {
return new Dependency(qualified, 2, 0);
}
public static Dependency setOfProvider(Qualified<?> qualified) {
return new Dependency(qualified, 2, 1);
}
}

View File

@@ -0,0 +1,18 @@
package com.google.firebase.components;
import java.util.Arrays;
import java.util.List;
/* loaded from: classes3.dex */
public class DependencyCycleException extends DependencyException {
private final List<Component<?>> componentsInCycle;
public DependencyCycleException(List<Component<?>> list) {
super("Dependency cycle detected: " + Arrays.toString(list.toArray()));
this.componentsInCycle = list;
}
public List<Component<?>> getComponentsInCycle() {
return this.componentsInCycle;
}
}

View File

@@ -0,0 +1,8 @@
package com.google.firebase.components;
/* loaded from: classes3.dex */
public class DependencyException extends RuntimeException {
public DependencyException(String str) {
super(str);
}
}

View File

@@ -0,0 +1,116 @@
package com.google.firebase.components;
import com.google.firebase.events.Event;
import com.google.firebase.events.EventHandler;
import com.google.firebase.events.Publisher;
import com.google.firebase.events.Subscriber;
import java.util.ArrayDeque;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executor;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class EventBus implements Subscriber, Publisher {
private final Executor defaultExecutor;
private final Map<Class<?>, ConcurrentHashMap<EventHandler<Object>, Executor>> handlerMap = new HashMap();
private Queue<Event<?>> pendingEvents = new ArrayDeque();
public EventBus(Executor executor) {
this.defaultExecutor = executor;
}
private synchronized Set<Map.Entry<EventHandler<Object>, Executor>> getHandlers(Event<?> event) {
ConcurrentHashMap<EventHandler<Object>, Executor> concurrentHashMap;
try {
concurrentHashMap = this.handlerMap.get(event.getType());
} catch (Throwable th) {
throw th;
}
return concurrentHashMap == null ? Collections.EMPTY_SET : concurrentHashMap.entrySet();
}
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ void lambda$publish$0(Map.Entry entry, Event event) {
((EventHandler) entry.getKey()).handle(event);
}
public void enablePublishingAndFlushPending() {
Queue<Event<?>> queue;
synchronized (this) {
try {
queue = this.pendingEvents;
if (queue != null) {
this.pendingEvents = null;
} else {
queue = null;
}
} catch (Throwable th) {
throw th;
}
}
if (queue != null) {
Iterator<Event<?>> it = queue.iterator();
while (it.hasNext()) {
publish(it.next());
}
}
}
@Override // com.google.firebase.events.Publisher
public void publish(Event<?> event) {
Preconditions.checkNotNull(event);
synchronized (this) {
try {
Queue<Event<?>> queue = this.pendingEvents;
if (queue != null) {
queue.add(event);
return;
}
for (Map.Entry<EventHandler<Object>, Executor> entry : getHandlers(event)) {
entry.getValue().execute(new e(2, entry, event));
}
} catch (Throwable th) {
throw th;
}
}
}
@Override // com.google.firebase.events.Subscriber
public synchronized <T> void subscribe(Class<T> cls, Executor executor, EventHandler<? super T> eventHandler) {
try {
Preconditions.checkNotNull(cls);
Preconditions.checkNotNull(eventHandler);
Preconditions.checkNotNull(executor);
if (!this.handlerMap.containsKey(cls)) {
this.handlerMap.put(cls, new ConcurrentHashMap<>());
}
this.handlerMap.get(cls).put(eventHandler, executor);
} catch (Throwable th) {
throw th;
}
}
@Override // com.google.firebase.events.Subscriber
public synchronized <T> void unsubscribe(Class<T> cls, EventHandler<? super T> eventHandler) {
Preconditions.checkNotNull(cls);
Preconditions.checkNotNull(eventHandler);
if (this.handlerMap.containsKey(cls)) {
ConcurrentHashMap<EventHandler<Object>, Executor> concurrentHashMap = this.handlerMap.get(cls);
concurrentHashMap.remove(eventHandler);
if (concurrentHashMap.isEmpty()) {
this.handlerMap.remove(cls);
}
}
}
@Override // com.google.firebase.events.Subscriber
public <T> void subscribe(Class<T> cls, EventHandler<? super T> eventHandler) {
subscribe(cls, this.defaultExecutor, eventHandler);
}
}

View File

@@ -0,0 +1,12 @@
package com.google.firebase.components;
/* loaded from: classes3.dex */
public class InvalidRegistrarException extends RuntimeException {
public InvalidRegistrarException(String str) {
super(str);
}
public InvalidRegistrarException(String str, Throwable th) {
super(str, th);
}
}

View File

@@ -0,0 +1,47 @@
package com.google.firebase.components;
import com.google.firebase.inject.Provider;
/* loaded from: classes3.dex */
public class Lazy<T> implements Provider<T> {
private static final Object UNINITIALIZED = new Object();
private volatile Object instance;
private volatile Provider<T> provider;
public Lazy(T t2) {
this.instance = UNINITIALIZED;
this.instance = t2;
}
@Override // com.google.firebase.inject.Provider
public T get() {
T t2;
T t4 = (T) this.instance;
Object obj = UNINITIALIZED;
if (t4 != obj) {
return t4;
}
synchronized (this) {
try {
t2 = (T) this.instance;
if (t2 == obj) {
t2 = this.provider.get();
this.instance = t2;
this.provider = null;
}
} catch (Throwable th) {
throw th;
}
}
return t2;
}
public boolean isInitialized() {
return this.instance != UNINITIALIZED;
}
public Lazy(Provider<T> provider) {
this.instance = UNINITIALIZED;
this.provider = provider;
}
}

View File

@@ -0,0 +1,63 @@
package com.google.firebase.components;
import com.google.firebase.inject.Provider;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class LazySet<T> implements Provider<Set<T>> {
private volatile Set<T> actualSet = null;
private volatile Set<Provider<T>> providers = Collections.newSetFromMap(new ConcurrentHashMap());
public LazySet(Collection<Provider<T>> collection) {
this.providers.addAll(collection);
}
public static LazySet<?> fromCollection(Collection<Provider<?>> collection) {
return new LazySet<>((Set) collection);
}
private synchronized void updateSet() {
try {
Iterator<Provider<T>> it = this.providers.iterator();
while (it.hasNext()) {
this.actualSet.add(it.next().get());
}
this.providers = null;
} catch (Throwable th) {
throw th;
}
}
public synchronized void add(Provider<T> provider) {
try {
if (this.actualSet == null) {
this.providers.add(provider);
} else {
this.actualSet.add(provider.get());
}
} catch (Throwable th) {
throw th;
}
}
@Override // com.google.firebase.inject.Provider
public Set<T> get() {
if (this.actualSet == null) {
synchronized (this) {
try {
if (this.actualSet == null) {
this.actualSet = Collections.newSetFromMap(new ConcurrentHashMap());
updateSet();
}
} finally {
}
}
}
return Collections.unmodifiableSet(this.actualSet);
}
}

View File

@@ -0,0 +1,8 @@
package com.google.firebase.components;
/* loaded from: classes3.dex */
public class MissingDependencyException extends DependencyException {
public MissingDependencyException(String str) {
super(str);
}
}

View File

@@ -0,0 +1,85 @@
package com.google.firebase.components;
import com.google.firebase.inject.Deferred;
import com.google.firebase.inject.Provider;
/* loaded from: classes3.dex */
public class OptionalProvider<T> implements Provider<T>, Deferred<T> {
private volatile Provider<T> delegate;
private Deferred.DeferredHandler<T> handler;
private static final Deferred.DeferredHandler<Object> NOOP_HANDLER = new Object();
private static final Provider<Object> EMPTY_PROVIDER = new g(0);
private OptionalProvider(Deferred.DeferredHandler<T> deferredHandler, Provider<T> provider) {
this.handler = deferredHandler;
this.delegate = provider;
}
public static <T> OptionalProvider<T> empty() {
return new OptionalProvider<>(NOOP_HANDLER, EMPTY_PROVIDER);
}
public static /* synthetic */ void lambda$static$0(Provider provider) {
}
public static /* synthetic */ Object lambda$static$1() {
return null;
}
public static /* synthetic */ void lambda$whenAvailable$2(Deferred.DeferredHandler deferredHandler, Deferred.DeferredHandler deferredHandler2, Provider provider) {
deferredHandler.handle(provider);
deferredHandler2.handle(provider);
}
public static <T> OptionalProvider<T> of(Provider<T> provider) {
return new OptionalProvider<>(null, provider);
}
@Override // com.google.firebase.inject.Provider
public T get() {
return this.delegate.get();
}
public void set(Provider<T> provider) {
Deferred.DeferredHandler<T> deferredHandler;
if (this.delegate != EMPTY_PROVIDER) {
throw new IllegalStateException("provide() can be called only once.");
}
synchronized (this) {
deferredHandler = this.handler;
this.handler = null;
this.delegate = provider;
}
deferredHandler.handle(provider);
}
@Override // com.google.firebase.inject.Deferred
public void whenAvailable(final Deferred.DeferredHandler<T> deferredHandler) {
Provider<T> provider;
Provider<T> provider2;
Provider<T> provider3 = this.delegate;
Provider<Object> provider4 = EMPTY_PROVIDER;
if (provider3 != provider4) {
deferredHandler.handle(provider3);
return;
}
synchronized (this) {
provider = this.delegate;
if (provider != provider4) {
provider2 = provider;
} else {
final Deferred.DeferredHandler<T> deferredHandler2 = this.handler;
this.handler = new Deferred.DeferredHandler() { // from class: com.google.firebase.components.h
@Override // com.google.firebase.inject.Deferred.DeferredHandler
public final void handle(Provider provider5) {
OptionalProvider.lambda$whenAvailable$2(Deferred.DeferredHandler.this, deferredHandler, provider5);
}
};
provider2 = null;
}
}
if (provider2 != null) {
deferredHandler.handle(provider);
}
}
}

View File

@@ -0,0 +1,28 @@
package com.google.firebase.components;
/* loaded from: classes3.dex */
public final class Preconditions {
public static void checkArgument(boolean z3, String str) {
if (!z3) {
throw new IllegalArgumentException(str);
}
}
public static <T> T checkNotNull(T t2) {
t2.getClass();
return t2;
}
public static void checkState(boolean z3, String str) {
if (!z3) {
throw new IllegalStateException(str);
}
}
public static <T> T checkNotNull(T t2, String str) {
if (t2 != null) {
return t2;
}
throw new NullPointerException(str);
}
}

View File

@@ -0,0 +1,51 @@
package com.google.firebase.components;
import java.lang.annotation.Annotation;
/* loaded from: classes3.dex */
public final class Qualified<T> {
private final Class<? extends Annotation> qualifier;
private final Class<T> type;
/* loaded from: classes3.dex */
public @interface Unqualified {
}
public Qualified(Class<? extends Annotation> cls, Class<T> cls2) {
this.qualifier = cls;
this.type = cls2;
}
public static <T> Qualified<T> qualified(Class<? extends Annotation> cls, Class<T> cls2) {
return new Qualified<>(cls, cls2);
}
public static <T> Qualified<T> unqualified(Class<T> cls) {
return new Qualified<>(Unqualified.class, cls);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || Qualified.class != obj.getClass()) {
return false;
}
Qualified qualified = (Qualified) obj;
if (this.type.equals(qualified.type)) {
return this.qualifier.equals(qualified.qualifier);
}
return false;
}
public int hashCode() {
return this.qualifier.hashCode() + (this.type.hashCode() * 31);
}
public String toString() {
if (this.qualifier == Unqualified.class) {
return this.type.getName();
}
return "@" + this.qualifier.getName() + " " + this.type.getName();
}
}

View File

@@ -0,0 +1,7 @@
package com.google.firebase.components;
/* loaded from: classes3.dex */
public final class R {
private R() {
}
}

View File

@@ -0,0 +1,137 @@
package com.google.firebase.components;
import com.google.firebase.events.Event;
import com.google.firebase.events.Publisher;
import com.google.firebase.inject.Deferred;
import com.google.firebase.inject.Provider;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class RestrictedComponentContainer implements ComponentContainer {
private final Set<Qualified<?>> allowedDeferredInterfaces;
private final Set<Qualified<?>> allowedDirectInterfaces;
private final Set<Qualified<?>> allowedProviderInterfaces;
private final Set<Class<?>> allowedPublishedEvents;
private final Set<Qualified<?>> allowedSetDirectInterfaces;
private final Set<Qualified<?>> allowedSetProviderInterfaces;
private final ComponentContainer delegateContainer;
/* loaded from: classes3.dex */
public static class RestrictedPublisher implements Publisher {
private final Set<Class<?>> allowedPublishedEvents;
private final Publisher delegate;
public RestrictedPublisher(Set<Class<?>> set, Publisher publisher) {
this.allowedPublishedEvents = set;
this.delegate = publisher;
}
@Override // com.google.firebase.events.Publisher
public void publish(Event<?> event) {
if (!this.allowedPublishedEvents.contains(event.getType())) {
throw new DependencyException(String.format("Attempting to publish an undeclared event %s.", event));
}
this.delegate.publish(event);
}
}
public RestrictedComponentContainer(Component<?> component, ComponentContainer componentContainer) {
HashSet hashSet = new HashSet();
HashSet hashSet2 = new HashSet();
HashSet hashSet3 = new HashSet();
HashSet hashSet4 = new HashSet();
HashSet hashSet5 = new HashSet();
for (Dependency dependency : component.getDependencies()) {
if (dependency.isDirectInjection()) {
if (dependency.isSet()) {
hashSet4.add(dependency.getInterface());
} else {
hashSet.add(dependency.getInterface());
}
} else if (dependency.isDeferred()) {
hashSet3.add(dependency.getInterface());
} else if (dependency.isSet()) {
hashSet5.add(dependency.getInterface());
} else {
hashSet2.add(dependency.getInterface());
}
}
if (!component.getPublishedEvents().isEmpty()) {
hashSet.add(Qualified.unqualified(Publisher.class));
}
this.allowedDirectInterfaces = Collections.unmodifiableSet(hashSet);
this.allowedProviderInterfaces = Collections.unmodifiableSet(hashSet2);
this.allowedDeferredInterfaces = Collections.unmodifiableSet(hashSet3);
this.allowedSetDirectInterfaces = Collections.unmodifiableSet(hashSet4);
this.allowedSetProviderInterfaces = Collections.unmodifiableSet(hashSet5);
this.allowedPublishedEvents = component.getPublishedEvents();
this.delegateContainer = componentContainer;
}
@Override // com.google.firebase.components.ComponentContainer
public <T> T get(Class<T> cls) {
if (this.allowedDirectInterfaces.contains(Qualified.unqualified(cls))) {
T t2 = (T) this.delegateContainer.get(cls);
return !cls.equals(Publisher.class) ? t2 : (T) new RestrictedPublisher(this.allowedPublishedEvents, (Publisher) t2);
}
throw new DependencyException("Attempting to request an undeclared dependency " + cls + ".");
}
@Override // com.google.firebase.components.ComponentContainer
public <T> Deferred<T> getDeferred(Class<T> cls) {
return getDeferred(Qualified.unqualified(cls));
}
@Override // com.google.firebase.components.ComponentContainer
public <T> Provider<T> getProvider(Class<T> cls) {
return getProvider(Qualified.unqualified(cls));
}
@Override // com.google.firebase.components.ComponentContainer
public <T> Set<T> setOf(Qualified<T> qualified) {
if (this.allowedSetDirectInterfaces.contains(qualified)) {
return this.delegateContainer.setOf(qualified);
}
throw new DependencyException("Attempting to request an undeclared dependency Set<" + qualified + ">.");
}
@Override // com.google.firebase.components.ComponentContainer
public <T> Provider<Set<T>> setOfProvider(Class<T> cls) {
return setOfProvider(Qualified.unqualified(cls));
}
@Override // com.google.firebase.components.ComponentContainer
public <T> Deferred<T> getDeferred(Qualified<T> qualified) {
if (this.allowedDeferredInterfaces.contains(qualified)) {
return this.delegateContainer.getDeferred(qualified);
}
throw new DependencyException("Attempting to request an undeclared dependency Deferred<" + qualified + ">.");
}
@Override // com.google.firebase.components.ComponentContainer
public <T> Provider<T> getProvider(Qualified<T> qualified) {
if (this.allowedProviderInterfaces.contains(qualified)) {
return this.delegateContainer.getProvider(qualified);
}
throw new DependencyException("Attempting to request an undeclared dependency Provider<" + qualified + ">.");
}
@Override // com.google.firebase.components.ComponentContainer
public <T> Provider<Set<T>> setOfProvider(Qualified<T> qualified) {
if (this.allowedSetProviderInterfaces.contains(qualified)) {
return this.delegateContainer.setOfProvider(qualified);
}
throw new DependencyException("Attempting to request an undeclared dependency Provider<Set<" + qualified + ">>.");
}
@Override // com.google.firebase.components.ComponentContainer
public <T> T get(Qualified<T> qualified) {
if (this.allowedDirectInterfaces.contains(qualified)) {
return (T) this.delegateContainer.get(qualified);
}
throw new DependencyException("Attempting to request an undeclared dependency " + qualified + ".");
}
}

View File

@@ -0,0 +1,44 @@
package com.google.firebase.components;
/* loaded from: classes3.dex */
public final /* synthetic */ class a implements ComponentFactory {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f5922a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f5923b;
public /* synthetic */ a(Object obj, int i) {
this.f5922a = i;
this.f5923b = obj;
}
@Override // com.google.firebase.components.ComponentFactory
public final Object create(ComponentContainer componentContainer) {
Object lambda$of$2;
Object lambda$intoSet$4;
Object lambda$intoSet$3;
Object lambda$of$0;
Object lambda$of$1;
int i = this.f5922a;
Object obj = this.f5923b;
switch (i) {
case 0:
lambda$of$2 = Component.lambda$of$2(obj, componentContainer);
return lambda$of$2;
case 1:
lambda$intoSet$4 = Component.lambda$intoSet$4(obj, componentContainer);
return lambda$intoSet$4;
case 2:
lambda$intoSet$3 = Component.lambda$intoSet$3(obj, componentContainer);
return lambda$intoSet$3;
case 3:
lambda$of$0 = Component.lambda$of$0(obj, componentContainer);
return lambda$of$0;
default:
lambda$of$1 = Component.lambda$of$1(obj, componentContainer);
return lambda$of$1;
}
}
}

View File

@@ -0,0 +1,37 @@
package com.google.firebase.components;
import com.google.firebase.FirebaseApp;
import com.google.firebase.inject.Provider;
import com.google.firebase.installations.FirebaseInstallations;
import com.google.firebase.installations.local.IidStore;
/* loaded from: classes3.dex */
public final /* synthetic */ class b implements Provider {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f5924a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f5925b;
public /* synthetic */ b(Object obj, int i) {
this.f5924a = i;
this.f5925b = obj;
}
@Override // com.google.firebase.inject.Provider
public final Object get() {
ComponentRegistrar instantiate;
IidStore lambda$new$0;
int i = this.f5924a;
Object obj = this.f5925b;
switch (i) {
case 0:
instantiate = ComponentDiscovery.instantiate((String) obj);
return instantiate;
default:
lambda$new$0 = FirebaseInstallations.lambda$new$0((FirebaseApp) obj);
return lambda$new$0;
}
}
}

View File

@@ -0,0 +1,31 @@
package com.google.firebase.components;
import com.google.firebase.components.ComponentRuntime;
import com.google.firebase.inject.Provider;
/* loaded from: classes3.dex */
public final /* synthetic */ class c implements Provider {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f5926a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ ComponentRegistrar f5927b;
public /* synthetic */ c(ComponentRegistrar componentRegistrar, int i) {
this.f5926a = i;
this.f5927b = componentRegistrar;
}
@Override // com.google.firebase.inject.Provider
public final Object get() {
int i = this.f5926a;
ComponentRegistrar componentRegistrar = this.f5927b;
switch (i) {
case 0:
return ComponentRuntime.c(componentRegistrar);
default:
return ComponentRuntime.Builder.a(componentRegistrar);
}
}
}

View File

@@ -0,0 +1,39 @@
package com.google.firebase.components;
import com.google.firebase.events.Event;
import com.google.firebase.inject.Provider;
import java.util.Map;
/* loaded from: classes3.dex */
public final /* synthetic */ class e implements Runnable {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f5930a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f5931b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ Object f5932c;
public /* synthetic */ e(int i, Object obj, Object obj2) {
this.f5930a = i;
this.f5932c = obj;
this.f5931b = obj2;
}
@Override // java.lang.Runnable
public final void run() {
switch (this.f5930a) {
case 0:
((OptionalProvider) this.f5932c).set((Provider) this.f5931b);
return;
case 1:
((LazySet) this.f5932c).add((Provider) this.f5931b);
return;
default:
EventBus.lambda$publish$0((Map.Entry) this.f5932c, (Event) this.f5931b);
return;
}
}
}

View File

@@ -0,0 +1,18 @@
package com.google.firebase.components;
import com.google.firebase.inject.Deferred;
import com.google.firebase.inject.Provider;
import java.util.List;
/* loaded from: classes3.dex */
public final /* synthetic */ class f implements Deferred.DeferredHandler, ComponentRegistrarProcessor {
@Override // com.google.firebase.inject.Deferred.DeferredHandler
public void handle(Provider provider) {
OptionalProvider.lambda$static$0(provider);
}
@Override // com.google.firebase.components.ComponentRegistrarProcessor
public List processRegistrar(ComponentRegistrar componentRegistrar) {
return componentRegistrar.getComponents();
}
}

View File

@@ -0,0 +1,25 @@
package com.google.firebase.components;
import com.google.firebase.inject.Provider;
import java.util.Collections;
/* loaded from: classes3.dex */
public final /* synthetic */ class g implements Provider {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f5933a;
public /* synthetic */ g(int i) {
this.f5933a = i;
}
@Override // com.google.firebase.inject.Provider
public final Object get() {
switch (this.f5933a) {
case 0:
return OptionalProvider.a();
default:
return Collections.EMPTY_SET;
}
}
}

View File

@@ -0,0 +1,41 @@
package com.google.firebase.concurrent;
import android.os.Process;
import android.os.StrictMode;
import java.util.Locale;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicLong;
/* loaded from: classes3.dex */
class CustomThreadFactory implements ThreadFactory {
private static final ThreadFactory DEFAULT = Executors.defaultThreadFactory();
private final String namePrefix;
private final StrictMode.ThreadPolicy policy;
private final int priority;
private final AtomicLong threadCount = new AtomicLong();
public CustomThreadFactory(String str, int i, StrictMode.ThreadPolicy threadPolicy) {
this.namePrefix = str;
this.priority = i;
this.policy = threadPolicy;
}
/* JADX INFO: Access modifiers changed from: private */
public /* synthetic */ void lambda$newThread$0(Runnable runnable) {
Process.setThreadPriority(this.priority);
StrictMode.ThreadPolicy threadPolicy = this.policy;
if (threadPolicy != null) {
StrictMode.setThreadPolicy(threadPolicy);
}
runnable.run();
}
@Override // java.util.concurrent.ThreadFactory
public Thread newThread(Runnable runnable) {
Thread newThread = DEFAULT.newThread(new a(0, this, runnable));
Locale locale = Locale.ROOT;
newThread.setName(this.namePrefix + " Thread #" + this.threadCount.getAndIncrement());
return newThread;
}
}

View File

@@ -0,0 +1,182 @@
package com.google.firebase.concurrent;
import com.google.firebase.concurrent.DelegatingScheduledFuture;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/* loaded from: classes3.dex */
public class DelegatingScheduledExecutorService implements ScheduledExecutorService {
private final ExecutorService delegate;
private final ScheduledExecutorService scheduler;
public DelegatingScheduledExecutorService(ExecutorService executorService, ScheduledExecutorService scheduledExecutorService) {
this.delegate = executorService;
this.scheduler = scheduledExecutorService;
}
public static /* synthetic */ void lambda$schedule$0(Runnable runnable, DelegatingScheduledFuture.Completer completer) {
try {
runnable.run();
completer.set(null);
} catch (Exception e4) {
completer.setException(e4);
}
}
public /* synthetic */ void lambda$schedule$1(Runnable runnable, DelegatingScheduledFuture.Completer completer) {
this.delegate.execute(new c(runnable, completer, 1));
}
public /* synthetic */ ScheduledFuture lambda$schedule$2(Runnable runnable, long j4, TimeUnit timeUnit, DelegatingScheduledFuture.Completer completer) {
return this.scheduler.schedule(new d(this, runnable, completer, 2), j4, timeUnit);
}
public static /* synthetic */ void lambda$schedule$3(Callable callable, DelegatingScheduledFuture.Completer completer) {
try {
completer.set(callable.call());
} catch (Exception e4) {
completer.setException(e4);
}
}
public /* synthetic */ Future lambda$schedule$4(Callable callable, DelegatingScheduledFuture.Completer completer) throws Exception {
return this.delegate.submit(new a(1, callable, completer));
}
public /* synthetic */ ScheduledFuture lambda$schedule$5(final Callable callable, long j4, TimeUnit timeUnit, final DelegatingScheduledFuture.Completer completer) {
return this.scheduler.schedule(new Callable() { // from class: com.google.firebase.concurrent.f
@Override // java.util.concurrent.Callable
public final Object call() {
Future lambda$schedule$4;
lambda$schedule$4 = DelegatingScheduledExecutorService.this.lambda$schedule$4(callable, completer);
return lambda$schedule$4;
}
}, j4, timeUnit);
}
public static /* synthetic */ void lambda$scheduleAtFixedRate$6(Runnable runnable, DelegatingScheduledFuture.Completer completer) {
try {
runnable.run();
} catch (Exception e4) {
completer.setException(e4);
throw e4;
}
}
public /* synthetic */ void lambda$scheduleAtFixedRate$7(Runnable runnable, DelegatingScheduledFuture.Completer completer) {
this.delegate.execute(new c(runnable, completer, 2));
}
public /* synthetic */ ScheduledFuture lambda$scheduleAtFixedRate$8(Runnable runnable, long j4, long j5, TimeUnit timeUnit, DelegatingScheduledFuture.Completer completer) {
return this.scheduler.scheduleAtFixedRate(new d(this, runnable, completer, 1), j4, j5, timeUnit);
}
public /* synthetic */ void lambda$scheduleWithFixedDelay$10(Runnable runnable, DelegatingScheduledFuture.Completer completer) {
this.delegate.execute(new c(runnable, completer, 0));
}
public /* synthetic */ ScheduledFuture lambda$scheduleWithFixedDelay$11(Runnable runnable, long j4, long j5, TimeUnit timeUnit, DelegatingScheduledFuture.Completer completer) {
return this.scheduler.scheduleWithFixedDelay(new d(this, runnable, completer, 0), j4, j5, timeUnit);
}
public static /* synthetic */ void lambda$scheduleWithFixedDelay$9(Runnable runnable, DelegatingScheduledFuture.Completer completer) {
try {
runnable.run();
} catch (Exception e4) {
completer.setException(e4);
}
}
@Override // java.util.concurrent.ExecutorService
public boolean awaitTermination(long j4, TimeUnit timeUnit) throws InterruptedException {
return this.delegate.awaitTermination(j4, timeUnit);
}
@Override // java.util.concurrent.Executor
public void execute(Runnable runnable) {
this.delegate.execute(runnable);
}
@Override // java.util.concurrent.ExecutorService
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> collection) throws InterruptedException {
return this.delegate.invokeAll(collection);
}
@Override // java.util.concurrent.ExecutorService
public <T> T invokeAny(Collection<? extends Callable<T>> collection) throws ExecutionException, InterruptedException {
return (T) this.delegate.invokeAny(collection);
}
@Override // java.util.concurrent.ExecutorService
public boolean isShutdown() {
return this.delegate.isShutdown();
}
@Override // java.util.concurrent.ExecutorService
public boolean isTerminated() {
return this.delegate.isTerminated();
}
@Override // java.util.concurrent.ScheduledExecutorService
public ScheduledFuture<?> schedule(Runnable runnable, long j4, TimeUnit timeUnit) {
return new DelegatingScheduledFuture(new b(this, runnable, j4, timeUnit, 0));
}
@Override // java.util.concurrent.ScheduledExecutorService
public ScheduledFuture<?> scheduleAtFixedRate(Runnable runnable, long j4, long j5, TimeUnit timeUnit) {
return new DelegatingScheduledFuture(new e(this, runnable, j4, j5, timeUnit, 0));
}
@Override // java.util.concurrent.ScheduledExecutorService
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable runnable, long j4, long j5, TimeUnit timeUnit) {
return new DelegatingScheduledFuture(new e(this, runnable, j4, j5, timeUnit, 1));
}
@Override // java.util.concurrent.ExecutorService
public void shutdown() {
throw new UnsupportedOperationException("Shutting down is not allowed.");
}
@Override // java.util.concurrent.ExecutorService
public List<Runnable> shutdownNow() {
throw new UnsupportedOperationException("Shutting down is not allowed.");
}
@Override // java.util.concurrent.ExecutorService
public <T> Future<T> submit(Callable<T> callable) {
return this.delegate.submit(callable);
}
@Override // java.util.concurrent.ExecutorService
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> collection, long j4, TimeUnit timeUnit) throws InterruptedException {
return this.delegate.invokeAll(collection, j4, timeUnit);
}
@Override // java.util.concurrent.ExecutorService
public <T> T invokeAny(Collection<? extends Callable<T>> collection, long j4, TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException {
return (T) this.delegate.invokeAny(collection, j4, timeUnit);
}
@Override // java.util.concurrent.ScheduledExecutorService
public <V> ScheduledFuture<V> schedule(Callable<V> callable, long j4, TimeUnit timeUnit) {
return new DelegatingScheduledFuture(new b(this, callable, j4, timeUnit, 1));
}
@Override // java.util.concurrent.ExecutorService
public <T> Future<T> submit(Runnable runnable, T t2) {
return this.delegate.submit(runnable, t2);
}
@Override // java.util.concurrent.ExecutorService
public Future<?> submit(Runnable runnable) {
return this.delegate.submit(runnable);
}
}

View File

@@ -0,0 +1,54 @@
package com.google.firebase.concurrent;
import android.annotation.SuppressLint;
import androidx.concurrent.futures.j;
import java.util.concurrent.Delayed;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
@SuppressLint({"RestrictedApi"})
/* loaded from: classes3.dex */
class DelegatingScheduledFuture<V> extends j implements ScheduledFuture<V> {
private final ScheduledFuture<?> upstreamFuture;
/* loaded from: classes3.dex */
public interface Completer<T> {
void set(T t2);
void setException(Throwable th);
}
/* loaded from: classes3.dex */
public interface Resolver<T> {
ScheduledFuture<?> addCompleter(Completer<T> completer);
}
public DelegatingScheduledFuture(Resolver<V> resolver) {
this.upstreamFuture = resolver.addCompleter(new Completer<V>() { // from class: com.google.firebase.concurrent.DelegatingScheduledFuture.1
@Override // com.google.firebase.concurrent.DelegatingScheduledFuture.Completer
public void set(V v3) {
DelegatingScheduledFuture.this.set(v3);
}
@Override // com.google.firebase.concurrent.DelegatingScheduledFuture.Completer
public void setException(Throwable th) {
DelegatingScheduledFuture.this.setException(th);
}
});
}
@Override // androidx.concurrent.futures.j
public void afterDone() {
this.upstreamFuture.cancel(wasInterrupted());
}
@Override // java.util.concurrent.Delayed
public long getDelay(TimeUnit timeUnit) {
return this.upstreamFuture.getDelay(timeUnit);
}
@Override // java.lang.Comparable
public int compareTo(Delayed delayed) {
return this.upstreamFuture.compareTo(delayed);
}
}

View File

@@ -0,0 +1,90 @@
package com.google.firebase.concurrent;
import android.annotation.SuppressLint;
import android.os.StrictMode;
import com.google.firebase.annotations.concurrent.Background;
import com.google.firebase.annotations.concurrent.Blocking;
import com.google.firebase.annotations.concurrent.Lightweight;
import com.google.firebase.annotations.concurrent.UiThread;
import com.google.firebase.components.Component;
import com.google.firebase.components.ComponentContainer;
import com.google.firebase.components.ComponentRegistrar;
import com.google.firebase.components.Lazy;
import com.google.firebase.components.Qualified;
import com.google.firebase.inject.Provider;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadFactory;
@SuppressLint({"ThreadPoolCreation"})
/* loaded from: classes3.dex */
public class ExecutorsRegistrar implements ComponentRegistrar {
static final Lazy<ScheduledExecutorService> BG_EXECUTOR = new Lazy<>((Provider) new g(0));
static final Lazy<ScheduledExecutorService> LITE_EXECUTOR = new Lazy<>((Provider) new g(1));
static final Lazy<ScheduledExecutorService> BLOCKING_EXECUTOR = new Lazy<>((Provider) new g(2));
static final Lazy<ScheduledExecutorService> SCHEDULER = new Lazy<>((Provider) new g(3));
private static StrictMode.ThreadPolicy bgPolicy() {
StrictMode.ThreadPolicy.Builder detectNetwork = new StrictMode.ThreadPolicy.Builder().detectNetwork();
detectNetwork.detectResourceMismatches();
detectNetwork.detectUnbufferedIo();
return detectNetwork.penaltyLog().build();
}
private static ThreadFactory factory(String str, int i) {
return new CustomThreadFactory(str, i, null);
}
public static /* synthetic */ ScheduledExecutorService lambda$getComponents$4(ComponentContainer componentContainer) {
return BG_EXECUTOR.get();
}
public static /* synthetic */ ScheduledExecutorService lambda$getComponents$5(ComponentContainer componentContainer) {
return BLOCKING_EXECUTOR.get();
}
public static /* synthetic */ ScheduledExecutorService lambda$getComponents$6(ComponentContainer componentContainer) {
return LITE_EXECUTOR.get();
}
public static /* synthetic */ Executor lambda$getComponents$7(ComponentContainer componentContainer) {
return UiExecutor.INSTANCE;
}
public static /* synthetic */ ScheduledExecutorService lambda$static$0() {
return scheduled(Executors.newFixedThreadPool(4, factory("Firebase Background", 10, bgPolicy())));
}
public static /* synthetic */ ScheduledExecutorService lambda$static$1() {
return scheduled(Executors.newFixedThreadPool(Math.max(2, Runtime.getRuntime().availableProcessors()), factory("Firebase Lite", 0, litePolicy())));
}
public static /* synthetic */ ScheduledExecutorService lambda$static$2() {
return scheduled(Executors.newCachedThreadPool(factory("Firebase Blocking", 11)));
}
public static /* synthetic */ ScheduledExecutorService lambda$static$3() {
return Executors.newSingleThreadScheduledExecutor(factory("Firebase Scheduler", 0));
}
private static StrictMode.ThreadPolicy litePolicy() {
return new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build();
}
private static ScheduledExecutorService scheduled(ExecutorService executorService) {
return new DelegatingScheduledExecutorService(executorService, SCHEDULER.get());
}
@Override // com.google.firebase.components.ComponentRegistrar
public List<Component<?>> getComponents() {
return Arrays.asList(Component.builder(Qualified.qualified(Background.class, ScheduledExecutorService.class), Qualified.qualified(Background.class, ExecutorService.class), Qualified.qualified(Background.class, Executor.class)).factory(new M2.a(2)).build(), Component.builder(Qualified.qualified(Blocking.class, ScheduledExecutorService.class), Qualified.qualified(Blocking.class, ExecutorService.class), Qualified.qualified(Blocking.class, Executor.class)).factory(new M2.a(3)).build(), Component.builder(Qualified.qualified(Lightweight.class, ScheduledExecutorService.class), Qualified.qualified(Lightweight.class, ExecutorService.class), Qualified.qualified(Lightweight.class, Executor.class)).factory(new M2.a(4)).build(), Component.builder(Qualified.qualified(UiThread.class, Executor.class)).factory(new M2.a(5)).build());
}
private static ThreadFactory factory(String str, int i, StrictMode.ThreadPolicy threadPolicy) {
return new CustomThreadFactory(str, i, threadPolicy);
}
}

View File

@@ -0,0 +1,54 @@
package com.google.firebase.concurrent;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ScheduledExecutorService;
/* loaded from: classes3.dex */
public class FirebaseExecutors {
/* loaded from: classes3.dex */
public enum DirectExecutor implements Executor {
INSTANCE;
@Override // java.util.concurrent.Executor
public void execute(Runnable runnable) {
runnable.run();
}
}
private FirebaseExecutors() {
}
public static Executor directExecutor() {
return DirectExecutor.INSTANCE;
}
public static Executor newLimitedConcurrencyExecutor(Executor executor, int i) {
return new LimitedConcurrencyExecutor(executor, i);
}
public static ExecutorService newLimitedConcurrencyExecutorService(ExecutorService executorService, int i) {
return new LimitedConcurrencyExecutorService(executorService, i);
}
public static ScheduledExecutorService newLimitedConcurrencyScheduledExecutorService(ExecutorService executorService, int i) {
return new DelegatingScheduledExecutorService(newLimitedConcurrencyExecutorService(executorService, i), ExecutorsRegistrar.SCHEDULER.get());
}
public static PausableExecutor newPausableExecutor(Executor executor) {
return new PausableExecutorImpl(false, executor);
}
public static PausableExecutorService newPausableExecutorService(ExecutorService executorService) {
return new PausableExecutorServiceImpl(false, executorService);
}
public static PausableScheduledExecutorService newPausableScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) {
return new PausableScheduledExecutorServiceImpl(newPausableExecutorService(scheduledExecutorService), ExecutorsRegistrar.SCHEDULER.get());
}
public static Executor newSequentialExecutor(Executor executor) {
return new SequentialExecutor(executor);
}
}

View File

@@ -0,0 +1,53 @@
package com.google.firebase.concurrent;
import com.google.firebase.components.Preconditions;
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.Semaphore;
/* loaded from: classes3.dex */
public class LimitedConcurrencyExecutor implements Executor {
private final Executor delegate;
private final LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<>();
private final Semaphore semaphore;
public LimitedConcurrencyExecutor(Executor executor, int i) {
Preconditions.checkArgument(i > 0, "concurrency must be positive.");
this.delegate = executor;
this.semaphore = new Semaphore(i, true);
}
public static /* synthetic */ void a(LimitedConcurrencyExecutor limitedConcurrencyExecutor, Runnable runnable) {
limitedConcurrencyExecutor.lambda$decorate$0(runnable);
}
private Runnable decorate(Runnable runnable) {
return new a(2, this, runnable);
}
public /* synthetic */ void lambda$decorate$0(Runnable runnable) {
try {
runnable.run();
} finally {
this.semaphore.release();
maybeEnqueueNext();
}
}
private void maybeEnqueueNext() {
while (this.semaphore.tryAcquire()) {
Runnable poll = this.queue.poll();
if (poll == null) {
this.semaphore.release();
return;
}
this.delegate.execute(decorate(poll));
}
}
@Override // java.util.concurrent.Executor
public void execute(Runnable runnable) {
this.queue.offer(runnable);
maybeEnqueueNext();
}
}

View File

@@ -0,0 +1,93 @@
package com.google.firebase.concurrent;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/* loaded from: classes3.dex */
final class LimitedConcurrencyExecutorService extends LimitedConcurrencyExecutor implements ExecutorService {
private final ExecutorService delegate;
public LimitedConcurrencyExecutorService(ExecutorService executorService, int i) {
super(executorService, i);
this.delegate = executorService;
}
public static /* synthetic */ Object lambda$submit$0(Runnable runnable, Object obj) throws Exception {
runnable.run();
return obj;
}
public static /* synthetic */ Object lambda$submit$1(Runnable runnable) throws Exception {
runnable.run();
return null;
}
@Override // java.util.concurrent.ExecutorService
public boolean awaitTermination(long j4, TimeUnit timeUnit) throws InterruptedException {
return this.delegate.awaitTermination(j4, timeUnit);
}
@Override // java.util.concurrent.ExecutorService
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> collection) throws InterruptedException {
return this.delegate.invokeAll(collection);
}
@Override // java.util.concurrent.ExecutorService
public <T> T invokeAny(Collection<? extends Callable<T>> collection) throws ExecutionException, InterruptedException {
return (T) this.delegate.invokeAny(collection);
}
@Override // java.util.concurrent.ExecutorService
public boolean isShutdown() {
return this.delegate.isShutdown();
}
@Override // java.util.concurrent.ExecutorService
public boolean isTerminated() {
return this.delegate.isTerminated();
}
@Override // java.util.concurrent.ExecutorService
public void shutdown() {
throw new UnsupportedOperationException("Shutting down is not allowed.");
}
@Override // java.util.concurrent.ExecutorService
public List<Runnable> shutdownNow() {
throw new UnsupportedOperationException("Shutting down is not allowed.");
}
@Override // java.util.concurrent.ExecutorService
public <T> Future<T> submit(Callable<T> callable) {
FutureTask futureTask = new FutureTask(callable);
execute(futureTask);
return futureTask;
}
@Override // java.util.concurrent.ExecutorService
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> collection, long j4, TimeUnit timeUnit) throws InterruptedException {
return this.delegate.invokeAll(collection, j4, timeUnit);
}
@Override // java.util.concurrent.ExecutorService
public <T> T invokeAny(Collection<? extends Callable<T>> collection, long j4, TimeUnit timeUnit) throws ExecutionException, InterruptedException, TimeoutException {
return (T) this.delegate.invokeAny(collection, j4, timeUnit);
}
@Override // java.util.concurrent.ExecutorService
public <T> Future<T> submit(Runnable runnable, T t2) {
return submit(new i(runnable, t2, 0));
}
@Override // java.util.concurrent.ExecutorService
public Future<?> submit(Runnable runnable) {
return submit(new h(runnable, 0));
}
}

View File

@@ -0,0 +1,12 @@
package com.google.firebase.concurrent;
import java.util.concurrent.Executor;
/* loaded from: classes3.dex */
public interface PausableExecutor extends Executor {
boolean isPaused();
void pause();
void resume();
}

Some files were not shown because too many files have changed in this diff Show More