forked from trent_larson/crowd-funder-for-time-pwa
Fix Android emulator API connectivity with cleaner build script approach
- Move Android-specific API server logic from common.sh to build-android.sh - Remove unnecessary ANDROID_BUILD environment variable - Set localhost:3000 as default in common.sh for all Capacitor builds - Override to 10.0.2.2:3000 specifically in build-android.sh for Android development - Fix execution order issue where common.sh ran before ANDROID_BUILD was set - Maintain proper separation: Android emulator uses 10.0.2.2, iOS simulator uses localhost
This commit is contained in:
@@ -57,13 +57,14 @@
|
||||
]
|
||||
},
|
||||
"android": {
|
||||
"allowMixedContent": false,
|
||||
"allowMixedContent": true,
|
||||
"captureInput": true,
|
||||
"webContentsDebuggingEnabled": false,
|
||||
"allowNavigation": [
|
||||
"*.timesafari.app",
|
||||
"*.jsdelivr.net",
|
||||
"api.endorser.ch"
|
||||
"api.endorser.ch",
|
||||
"10.0.2.2:3000"
|
||||
]
|
||||
},
|
||||
"electron": {
|
||||
|
||||
Reference in New Issue
Block a user