mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-03 06:23:22 -04:00
Update build scripts, constants, and Android configurations for improved web view handling and debugging
- Rename `proxy.ts` to `_proxy.ts` temporarily during build scripts and clean up backup files. - Adjust Compass URLs to consistently include "www." - Introduce WebView debugging toggle via `BuildConfig.ENABLE_WEBVIEW_DEBUG`. - Bump Android version code to 79 and enable `buildConfig` features.
This commit is contained in:
@@ -11,7 +11,7 @@ android {
|
||||
applicationId "com.compassconnections.app"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 78
|
||||
versionCode 79
|
||||
versionName "1.16.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
@@ -20,10 +20,17 @@ android {
|
||||
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
|
||||
}
|
||||
}
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
buildConfigField "boolean", "ENABLE_WEBVIEW_DEBUG", "false"
|
||||
}
|
||||
debug {
|
||||
buildConfigField "boolean", "ENABLE_WEBVIEW_DEBUG", "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -216,8 +216,9 @@ public class MainActivity extends BridgeActivity implements ModifiedMainActivity
|
||||
WebView webView = this.bridge.getWebView();
|
||||
webView.setWebViewClient(new BridgeWebViewClient(this.bridge));
|
||||
|
||||
// WebView.setWebContentsDebuggingEnabled(true);
|
||||
|
||||
if (BuildConfig.ENABLE_WEBVIEW_DEBUG) {
|
||||
WebView.setWebContentsDebuggingEnabled(true);
|
||||
}
|
||||
// Set a recognizable User-Agent (always reliable)
|
||||
WebSettings settings = webView.getSettings();
|
||||
settings.setUserAgentString(settings.getUserAgentString() + " CompassAppWebView");
|
||||
|
||||
Reference in New Issue
Block a user