|
@@ -1,7 +1,7 @@
|
|
|
import { CapacitorConfig } from '@capacitor/cli';
|
|
|
-// import { updateVersion } from './scripts/sync-version';
|
|
|
+import { updateVersion } from './scripts/sync-version';
|
|
|
+
|
|
|
|
|
|
-// updateVersion()
|
|
|
|
|
|
|
|
|
|
|
@@ -38,8 +38,7 @@ const config: CapacitorConfig = {
|
|
|
},
|
|
|
|
|
|
// Android专属配置
|
|
|
- android: {
|
|
|
- scheme: 'acc',
|
|
|
+ android: {
|
|
|
allowMixedContent: true, // 允许混合HTTP/HTTPS内容
|
|
|
useLegacyBridge: true, // 使用旧版桥接(兼容性)
|
|
|
|
|
@@ -59,6 +58,8 @@ if (process.env.DAPP_BUILD != "1") {
|
|
|
cleartext: true, // 允许HTTP明文通信(仅开发环境)
|
|
|
allowNavigation: ['*'] // 允许任意URL导航
|
|
|
}
|
|
|
+}else{
|
|
|
+ updateVersion()
|
|
|
}
|
|
|
|
|
|
|