File tree Expand file tree Collapse file tree
src/main/java/com/compassconnections/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ android {
1111 applicationId " com.compassconnections.app"
1212 minSdkVersion rootProject. ext. minSdkVersion
1313 targetSdkVersion rootProject. ext. targetSdkVersion
14- versionCode 78
14+ versionCode 79
1515 versionName " 1.16.0"
1616 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
1717 aaptOptions {
@@ -20,10 +20,17 @@ android {
2020 ignoreAssetsPattern ' !.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
2121 }
2222 }
23+ buildFeatures {
24+ buildConfig = true
25+ }
2326 buildTypes {
2427 release {
2528 minifyEnabled false
2629 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
30+ buildConfigField " boolean" , " ENABLE_WEBVIEW_DEBUG" , " false"
31+ }
32+ debug {
33+ buildConfigField " boolean" , " ENABLE_WEBVIEW_DEBUG" , " true"
2734 }
2835 }
2936}
Original file line number Diff line number Diff line change @@ -216,8 +216,9 @@ public void onCreate(Bundle savedInstanceState) {
216216 WebView webView = this .bridge .getWebView ();
217217 webView .setWebViewClient (new BridgeWebViewClient (this .bridge ));
218218
219- // WebView.setWebContentsDebuggingEnabled(true);
220-
219+ if (BuildConfig .ENABLE_WEBVIEW_DEBUG ) {
220+ WebView .setWebContentsDebuggingEnabled (true );
221+ }
221222 // Set a recognizable User-Agent (always reliable)
222223 WebSettings settings = webView .getSettings ();
223224 settings .setUserAgentString (settings .getUserAgentString () + " CompassAppWebView" );
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ export const LOCAL_WEB_DOMAIN = `localhost:3000`
5454export const LOCAL_BACKEND_DOMAIN = `${ IS_WEBVIEW_DEV_PHONE ? '192.168.1.3' : IS_LOCAL_ANDROID ? '10.0.2.2' : 'localhost' } :8088`
5555
5656export const DOMAIN = IS_LOCAL ? LOCAL_WEB_DOMAIN : ENV_CONFIG . domain
57- export const DEPLOYED_WEB_URL = `https://${ ENV_CONFIG . domain } `
58- export const WEB_URL = IS_LOCAL ? `http://${ LOCAL_WEB_DOMAIN } ` : `https://${ DOMAIN } `
57+ export const DEPLOYED_WEB_URL = `https://www. ${ ENV_CONFIG . domain } `
58+ export const WEB_URL = IS_LOCAL ? `http://${ LOCAL_WEB_DOMAIN } ` : `https://www. ${ DOMAIN } `
5959export const BACKEND_DOMAIN = IS_LOCAL ? LOCAL_BACKEND_DOMAIN : ENV_CONFIG . backendDomain
6060export const FIREBASE_CONFIG = ENV_CONFIG . firebaseConfig
6161export const PROJECT_ID = ENV_CONFIG . firebaseConfig . projectId
Original file line number Diff line number Diff line change @@ -49,8 +49,16 @@ sed -i.bak 's/\bgetStaticPaths\b/_getStaticPaths/g' $USERNAME_PAGE
4949# rename getServerSideProps to _getServerSideProps
5050sed -i.bak ' s/\bgetServerSideProps\b/_getServerSideProps/g' $HOME_PAGE
5151
52+ # rename proxy to _proxy
53+ mv proxy.ts _proxy.ts
54+
5255yarn build
5356
5457sed -i.bak ' s/\b_getStaticProps\b/getStaticProps/g' $USERNAME_PAGE
5558sed -i.bak ' s/\b_getStaticPaths\b/getStaticPaths/g' $USERNAME_PAGE
5659sed -i.bak ' s/\b_getServerSideProps\b/getServerSideProps/g' $HOME_PAGE
60+
61+ mv _proxy.ts proxy.ts
62+
63+ # Remove backup files
64+ rm -f " $USERNAME_PAGE .bak" " $HOME_PAGE .bak"
You can’t perform that action at this time.
0 commit comments