Merge pull request #236 from LLK/fix-debugging

Fix debugging
This commit is contained in:
chrisgarrity 2020-01-16 08:55:51 -05:00 committed by GitHub
commit c1a025dd97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -13,9 +13,6 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
}
}
flavorDimensions 'scratchjrversion'

View file

@ -365,7 +365,7 @@ public class ScratchJrActivity
webSettings.setDisplayZoomControls(false);
webSettings.setLoadWithOverviewMode(false);
webSettings.setUseWideViewPort(false);
if (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)) {
if (BuildConfig.DEBUG) {
WebView.setWebContentsDebuggingEnabled(true);
}