NetMirror.apk
Download file
package com.facebook.react.bridge;
import android.content.Context;
import e1.C0526c;
import java.util.Objects;
/* JADX INFO: loaded from: classes.dex */
public abstract class JSBundleLoader {
public static JSBundleLoader createAssetLoader(final Context context, final String str, final boolean z3) {
return new JSBundleLoader() { // from class: com.facebook.react.bridge.JSBundleLoader.1
@Override // com.facebook.react.bridge.JSBundleLoader
public String loadScript(JSBundleLoaderDelegate jSBundleLoaderDelegate) {
jSBundleLoaderDelegate.loadScriptFromAssets(context.getAssets(), str, z3);
return str;
}
};
}
public static JSBundleLoader createCachedBundleFromNetworkLoader(final String str, final String str2) {
return new JSBundleLoader() { // from class: com.facebook.react.bridge.JSBundleLoader.3
@Override // com.facebook.react.bridge.JSBundleLoader
public String loadScript(JSBundleLoaderDelegate jSBundleLoaderDelegate) {
try {
jSBundleLoaderDelegate.loadScriptFromFile(str2, str, false);
return str;
} catch (Exception e4) {
throw C0526c.c(str, Objects.toString(e4.getMessage(), ""), e4);
}
}
};
}
public static JSBundleLoader createCachedSplitBundleFromNetworkLoader(final String str, final String str2) {
return new JSBundleLoader() { // from class: com.facebook.react.bridge.JSBundleLoader.4
@Override // com.facebook.react.bridge.JSBundleLoader
public String loadScript(JSBundleLoaderDelegate jSBundleLoaderDelegate) {
try {
jSBundleLoaderDelegate.loadSplitBundleFromFile(str2, str);
return str;
} catch (Exception e4) {
throw C0526c.c(str, Objects.toString(e4.getMessage(), ""), e4);
}
}
};
}
public static JSBundleLoader createFileLoader(String str) {
return createFileLoader(str, str, false);
}
public abstract String loadScript(JSBundleLoaderDelegate jSBundleLoaderDelegate);
public static JSBundleLoader createFileLoader(final String str, final String str2, final boolean z3) {
return new JSBundleLoader() { // from class: com.facebook.react.bridge.JSBundleLoader.2
@Override // com.facebook.react.bridge.JSBundleLoader
public String loadScript(JSBundleLoaderDelegate jSBundleLoaderDelegate) {
jSBundleLoaderDelegate.loadScriptFromFile(str, str2, z3);
return str;
}
};
}
}
⚠️ 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