Files
adif-api-reverse-engineering/apk_decompiled/sources/com/google/firebase/remoteconfig/ktx/RemoteConfigKt$configUpdates$1$registration$1.java

46 lines
2.9 KiB
Java

package com.google.firebase.remoteconfig.ktx;
import com.google.firebase.messaging.Constants;
import com.google.firebase.remoteconfig.ConfigUpdate;
import com.google.firebase.remoteconfig.ConfigUpdateListener;
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
import com.google.firebase.remoteconfig.FirebaseRemoteConfigException;
import com.google.firebase.remoteconfig.d;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.CoroutineScopeKt;
import kotlinx.coroutines.channels.ChannelsKt;
import kotlinx.coroutines.channels.ProducerScope;
@Metadata(d1 = {"\u0000\u001f\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0016J\u0010\u0010\u0006\u001a\u00020\u00032\u0006\u0010\u0007\u001a\u00020\bH\u0016¨\u0006\t"}, d2 = {"com/google/firebase/remoteconfig/ktx/RemoteConfigKt$configUpdates$1$registration$1", "Lcom/google/firebase/remoteconfig/ConfigUpdateListener;", "onError", "", Constants.IPC_BUNDLE_KEY_SEND_ERROR, "Lcom/google/firebase/remoteconfig/FirebaseRemoteConfigException;", "onUpdate", "configUpdate", "Lcom/google/firebase/remoteconfig/ConfigUpdate;", "com.google.firebase-firebase-config"}, k = 1, mv = {1, 7, 1}, xi = 48)
/* loaded from: classes3.dex */
public final class RemoteConfigKt$configUpdates$1$registration$1 implements ConfigUpdateListener {
final /* synthetic */ ProducerScope<ConfigUpdate> $$this$callbackFlow;
final /* synthetic */ FirebaseRemoteConfig $this_configUpdates;
/* JADX WARN: Multi-variable type inference failed */
public RemoteConfigKt$configUpdates$1$registration$1(FirebaseRemoteConfig firebaseRemoteConfig, ProducerScope<? super ConfigUpdate> producerScope) {
this.$this_configUpdates = firebaseRemoteConfig;
this.$$this$callbackFlow = producerScope;
}
/* renamed from: onUpdate$lambda-0 */
public static final void m95onUpdate$lambda0(ProducerScope $this$callbackFlow, ConfigUpdate configUpdate) {
Intrinsics.checkNotNullParameter($this$callbackFlow, "$$this$callbackFlow");
Intrinsics.checkNotNullParameter(configUpdate, "$configUpdate");
ChannelsKt.trySendBlocking($this$callbackFlow, configUpdate);
}
@Override // com.google.firebase.remoteconfig.ConfigUpdateListener
public void onError(FirebaseRemoteConfigException r22) {
Intrinsics.checkNotNullParameter(r22, "error");
CoroutineScopeKt.cancel(this.$$this$callbackFlow, "Error listening for config updates.", r22);
}
@Override // com.google.firebase.remoteconfig.ConfigUpdateListener
public void onUpdate(ConfigUpdate configUpdate) {
Intrinsics.checkNotNullParameter(configUpdate, "configUpdate");
this.$this_configUpdates.schedule(new d(this.$$this$callbackFlow, configUpdate, 1));
}
}