mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 17:37:16 +01:00
55 lines
2.2 KiB
Java
55 lines
2.2 KiB
Java
package com.th3rdwave.safeareacontext;
|
|
|
|
import androidx.room.Room$$ExternalSyntheticBUOutline0;
|
|
import com.facebook.proguard.annotations.DoNotStrip;
|
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
import com.facebook.react.common.build.ReactBuildConfig;
|
|
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
import java.util.Arrays;
|
|
import java.util.HashSet;
|
|
import java.util.Map;
|
|
import javax.annotation.Nonnull;
|
|
import javax.annotation.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes9.dex */
|
|
public abstract class NativeSafeAreaContextSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
public static final String NAME = "RNCSafeAreaContext";
|
|
|
|
public NativeSafeAreaContextSpec(ReactApplicationContext reactApplicationContext) {
|
|
super(reactApplicationContext);
|
|
}
|
|
|
|
@Override // com.facebook.react.bridge.BaseJavaModule
|
|
@DoNotStrip
|
|
@Nullable
|
|
public final Map<String, Object> getConstants() {
|
|
Map<String, Object> typedExportedConstants = getTypedExportedConstants();
|
|
if (ReactBuildConfig.DEBUG || ReactBuildConfig.IS_INTERNAL_BUILD) {
|
|
HashSet hashSet = new HashSet();
|
|
HashSet hashSet2 = new HashSet(Arrays.asList("initialWindowMetrics"));
|
|
HashSet hashSet3 = new HashSet(typedExportedConstants.keySet());
|
|
hashSet3.removeAll(hashSet);
|
|
hashSet3.removeAll(hashSet2);
|
|
if (!hashSet3.isEmpty()) {
|
|
Room$$ExternalSyntheticBUOutline0.m("Native Module Flow doesn't declare constants: %s", new Object[]{hashSet3});
|
|
return null;
|
|
}
|
|
hashSet.removeAll(typedExportedConstants.keySet());
|
|
if (!hashSet.isEmpty()) {
|
|
Room$$ExternalSyntheticBUOutline0.m("Native Module doesn't fill in constants: %s", new Object[]{hashSet});
|
|
return null;
|
|
}
|
|
}
|
|
return typedExportedConstants;
|
|
}
|
|
|
|
@Override // com.facebook.react.bridge.NativeModule
|
|
@Nonnull
|
|
public String getName() {
|
|
return "RNCSafeAreaContext";
|
|
}
|
|
|
|
public abstract Map<String, Object> getTypedExportedConstants();
|
|
}
|