mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-16 10:57:17 +01:00
59 lines
3.4 KiB
Java
59 lines
3.4 KiB
Java
package com.facebook.react.modules.debug;
|
|
|
|
import com.facebook.fbreact.specs.NativeDevMenuSpec;
|
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
import com.facebook.react.bridge.UiThreadUtil;
|
|
import com.facebook.react.devsupport.interfaces.DevSupportManager;
|
|
import com.facebook.react.module.annotations.ReactModule;
|
|
import com.mapbox.maps.NativeMapImpl$$ExternalSyntheticLambda2;
|
|
import kotlin.Metadata;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@ReactModule(name = "DevMenu")
|
|
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\b\u0001\u0018\u0000 \u000f2\u00020\u0001:\u0001\u000fB\u0019\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0004\b\u0006\u0010\u0007J\b\u0010\b\u001a\u00020\tH\u0016J\b\u0010\n\u001a\u00020\tH\u0016J\u0010\u0010\u000b\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\rH\u0016J\u0010\u0010\u000e\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\rH\u0016R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0010"}, d2 = {"Lcom/facebook/react/modules/debug/DevMenuModule;", "Lcom/facebook/fbreact/specs/NativeDevMenuSpec;", "reactContext", "Lcom/facebook/react/bridge/ReactApplicationContext;", "devSupportManager", "Lcom/facebook/react/devsupport/interfaces/DevSupportManager;", "<init>", "(Lcom/facebook/react/bridge/ReactApplicationContext;Lcom/facebook/react/devsupport/interfaces/DevSupportManager;)V", "show", "", "reload", "setProfilingEnabled", "enabled", "", "setHotLoadingEnabled", "Companion", "ReactAndroid_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
|
|
/* loaded from: classes6.dex */
|
|
public final class DevMenuModule extends NativeDevMenuSpec {
|
|
|
|
@NotNull
|
|
public static final String NAME = "DevMenu";
|
|
|
|
@NotNull
|
|
private final DevSupportManager devSupportManager;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public DevMenuModule(@Nullable ReactApplicationContext reactApplicationContext, @NotNull DevSupportManager devSupportManager) {
|
|
super(reactApplicationContext);
|
|
devSupportManager.getClass();
|
|
this.devSupportManager = devSupportManager;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public static final void reload$lambda$0(DevMenuModule devMenuModule) {
|
|
devMenuModule.devSupportManager.handleReloadJS();
|
|
}
|
|
|
|
@Override // com.facebook.fbreact.specs.NativeDevMenuSpec
|
|
public void reload() {
|
|
if (this.devSupportManager.getIsDevSupportEnabled()) {
|
|
UiThreadUtil.runOnUiThread(new NativeMapImpl$$ExternalSyntheticLambda2(this, 4));
|
|
}
|
|
}
|
|
|
|
@Override // com.facebook.fbreact.specs.NativeDevMenuSpec
|
|
public void setHotLoadingEnabled(boolean enabled) {
|
|
this.devSupportManager.setHotModuleReplacementEnabled(enabled);
|
|
}
|
|
|
|
@Override // com.facebook.fbreact.specs.NativeDevMenuSpec
|
|
public void show() {
|
|
if (this.devSupportManager.getIsDevSupportEnabled()) {
|
|
this.devSupportManager.showDevOptionsDialog();
|
|
}
|
|
}
|
|
|
|
@Override // com.facebook.fbreact.specs.NativeDevMenuSpec
|
|
public void setProfilingEnabled(boolean enabled) {
|
|
}
|
|
}
|