NetMirror.apk
Download file
package com.facebook.react.bridge;
import com.facebook.jni.HybridData;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/* JADX INFO: loaded from: classes.dex */
public class Inspector {
private final HybridData mHybridData;
public static class LocalConnection {
private final HybridData mHybridData;
private LocalConnection(HybridData hybridData) {
this.mHybridData = hybridData;
}
public native void disconnect();
public native void sendMessage(String str);
}
public static class Page {
private final int mId;
private final String mTitle;
private final String mVM;
private Page(int i3, String str, String str2) {
this.mId = i3;
this.mTitle = str;
this.mVM = str2;
}
public int getId() {
return this.mId;
}
public String getTitle() {
return this.mTitle;
}
public String getVM() {
return this.mVM;
}
public String toString() {
return "Page{mId=" + this.mId + ", mTitle='" + this.mTitle + "'}";
}
}
public interface RemoteConnection {
void onDisconnect();
void onMessage(String str);
}
static {
ReactBridge.staticInit();
}
private Inspector(HybridData hybridData) {
this.mHybridData = hybridData;
}
public static LocalConnection connect(int i3, RemoteConnection remoteConnection) {
try {
LocalConnection localConnectionConnectNative = instance().connectNative(i3, remoteConnection);
if (localConnectionConnectNative != null) {
return localConnectionConnectNative;
}
throw new IllegalStateException("Can't open failed connection");
} catch (UnsatisfiedLinkError e4) {
Y.a.n("ReactNative", "Inspector doesn't work in open source yet", e4);
throw new RuntimeException(e4);
}
}
private native LocalConnection connectNative(int i3, RemoteConnection remoteConnection);
public static List<Page> getPages() {
try {
return Arrays.asList(instance().getPagesNative());
} catch (UnsatisfiedLinkError e4) {
Y.a.n("ReactNative", "Inspector doesn't work in open source yet", e4);
return Collections.emptyList();
}
}
private native Page[] getPagesNative();
private static native Inspector instance();
}
⚠️ 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