Selaa lähdekoodia

[aio] 添加生产环境

cc12458 10 kuukautta sitten
vanhempi
commit
7e235ee312

+ 5 - 1
app/build.gradle.kts

@@ -39,13 +39,17 @@ android {
       initWith(getByName("debug"))
       matchingFallbacks += listOf("debug")
     }
+    create("aio-prod") {
+      initWith(getByName("aio"))
+      matchingFallbacks += listOf("aio", "debug")
+    }
     create("aio-test") {
       initWith(getByName("aio"))
       matchingFallbacks += listOf("aio", "debug")
     }
     create("aio-CQ") {
       initWith(getByName("aio-test"))
-      matchingFallbacks += listOf("aio-test", "aio", "debug")
+      matchingFallbacks += listOf("aio-prod", "aio", "debug")
     }
   }
   applicationVariants.all {

+ 6 - 0
app/src/aio-prod/res/values/application.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+  <string name="app_id">AIO</string>
+  <string name="app_name">中医健康辨识仪</string>
+  <string name="app_screen">browser/kiosk?url=https://wx.hzliuzhi.com/aio/</string>
+</resources>

+ 12 - 0
app/src/aio-prod/res/values/browser_proxy.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+  <bool name="browser_http_proxy_enabled">true</bool>
+  <string-array name="browser_proxy_pool">
+    <item>https://hybrid.reborn-tech.com -> https://wx.hzliuzhi.com/mz/hybrid</item>
+    <item>https://api.reborn-tech.com -> https://wx.hzliuzhi.com/mz/api</item>
+    <item>https://taiyi.oss-accelerate.aliyuncs.com -> https://wx.hzliuzhi.com/mz/oss</item>
+    <item>https://taiyi.oss-cn-beijing.aliyuncs.com -> https://wx.hzliuzhi.com/mz/oss</item>
+    <item>https://oss-accelerate.aliyuncs.com/taiyi -> https://wx.hzliuzhi.com/mz/oss</item>
+    <item>https://oss-cn-beijing.aliyuncs.com/taiyi -> https://wx.hzliuzhi.com/mz/oss</item>
+  </string-array>
+</resources>

+ 5 - 0
app/src/aio-prod/res/values/pulse.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+  <bool name="taiyi_skip_report">true</bool>
+  <integer name="taiyi_delay_disconnect">300</integer>
+</resources>