NetMirror.apk
Download file
package com.facebook.react.modules.debug;
import com.facebook.fbreact.specs.NativeDevSettingsSpec;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.UiThreadUtil;
import com.facebook.react.bridge.WritableMap;
import k1.InterfaceC0586d;
import v1.InterfaceC0756a;
/* JADX INFO: loaded from: classes.dex */
@InterfaceC0756a(name = NativeDevSettingsSpec.NAME)
public final class DevSettingsModule extends NativeDevSettingsSpec {
private final k1.e devSupportManager;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public DevSettingsModule(ReactApplicationContext reactApplicationContext, k1.e eVar) {
super(reactApplicationContext);
D2.h.f(eVar, "devSupportManager");
this.devSupportManager = eVar;
}
/* JADX INFO: Access modifiers changed from: private */
public static final void addMenuItem$lambda$1(String str, DevSettingsModule devSettingsModule) {
WritableMap writableMapCreateMap = Arguments.createMap();
writableMapCreateMap.putString("title", str);
ReactApplicationContext reactApplicationContextIfActiveOrWarn = devSettingsModule.getReactApplicationContextIfActiveOrWarn();
if (reactApplicationContextIfActiveOrWarn != null) {
reactApplicationContextIfActiveOrWarn.emitDeviceEvent("didPressMenuItem", writableMapCreateMap);
}
}
/* JADX INFO: Access modifiers changed from: private */
public static final void reload$lambda$0(DevSettingsModule devSettingsModule) {
devSettingsModule.devSupportManager.s();
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void addListener(String str) {
D2.h.f(str, "eventName");
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void addMenuItem(final String str) {
D2.h.f(str, "title");
this.devSupportManager.p(str, new InterfaceC0586d() { // from class: com.facebook.react.modules.debug.b
@Override // k1.InterfaceC0586d
public final void a() {
DevSettingsModule.addMenuItem$lambda$1(str, this);
}
});
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void onFastRefresh() {
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void openDebugger() {
this.devSupportManager.s0();
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void reload() {
if (this.devSupportManager.n()) {
UiThreadUtil.runOnUiThread(new Runnable() { // from class: com.facebook.react.modules.debug.c
@Override // java.lang.Runnable
public final void run() {
DevSettingsModule.reload$lambda$0(this.f6934b);
}
});
}
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void reloadWithReason(String str) {
D2.h.f(str, "reason");
reload();
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void removeListeners(double d4) {
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void setHotLoadingEnabled(boolean z3) {
this.devSupportManager.f(z3);
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void setIsShakeToShowDevMenuEnabled(boolean z3) {
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void setProfilingEnabled(boolean z3) {
this.devSupportManager.c(z3);
}
@Override // com.facebook.fbreact.specs.NativeDevSettingsSpec
public void toggleElementInspector() {
this.devSupportManager.h();
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file