Skip to content

Commit

Permalink
Add DEBUG flag for setWebContentsDebuggingEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycodes committed Oct 2, 2020
1 parent 36df6bd commit 41b4299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion android/app/src/main/java/io/metamask/MainApplication.java
Expand Up @@ -59,7 +59,9 @@ public void onCreate() {

initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
RNBranchModule.getAutoInstance(this);
WebView.setWebContentsDebuggingEnabled(true);
if (BuildConfig.DEBUG) {
WebView.setWebContentsDebuggingEnabled(true);
}
}
/**
* Loads Flipper in React Native templates. Call this in the onCreate method with something like
Expand Down
Expand Up @@ -17,8 +17,7 @@ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext
}

@Override
public List<NativeModule> createNativeModules(
ReactApplicationContext reactContext) {
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>();

modules.add(new RCTAnalytics(reactContext));
Expand Down

0 comments on commit 41b4299

Please sign in to comment.