alexandroid/decompiled/jadx/sources/com/th3rdwave/safeareacontext/NativeSafeAreaContextSpec.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

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();
}