android/app/build.gradle | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
android/app/src/main/java/com/whyc/lock/MainActivity.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
android/app/build.gradle
@@ -1,7 +1,7 @@ apply plugin: 'com.android.application' android { namespace "com.whyc.lock2" namespace "com.whyc.lock" compileSdk rootProject.ext.compileSdkVersion defaultConfig { applicationId "com.whyc.lock2" @@ -27,12 +27,9 @@ } } buildTypes { debug { buildConfigField "boolean", "WEBVIEW_DEBUGGING_ENABLED", "true" } release { buildConfigField "boolean", "WEBVIEW_DEBUGGING_ENABLED", "false" signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' android/app/src/main/java/com/whyc/lock/MainActivity.java
@@ -11,9 +11,9 @@ super.onCreate(savedInstanceState); // 检查 Android 版本是否为 4.4(KitKat)及以上 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && BuildConfig.WEBVIEW_DEBUGGING_ENABLED) { // 开启 WebView 的调试功能 WebView.setWebContentsDebuggingEnabled(true); } // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // // 开启 WebView 的调试功能 // WebView.setWebContentsDebuggingEnabled(true); // } } }