config.xml 1.0 KB

1234567891011121314151617181920212223242526
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <widget id="zskk.dros" version="1.0.0"
  3. xmlns="http://www.w3.org/ns/widgets"
  4. xmlns:cdv="http://cordova.apache.org/ns/1.0"
  5. xmlns:android="http://schemas.android.com/apk/res/android">
  6. <name>dros</name>
  7. <description>Sample Apache Cordova App</description>
  8. <author email="dev@cordova.apache.org" href="https://cordova.apache.org">
  9. Apache Cordova Team
  10. </author>
  11. <content src="index.html" />
  12. <!-- 白名单配置 -->
  13. <!-- <access origin="*" />
  14. <allow-navigation href="*" />
  15. <allow-intent href="http://*/*" />
  16. <allow-intent href="https://*/*" /> -->
  17. <!-- Android 平台配置:允许明文 HTTP -->
  18. <platform name="android">
  19. <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
  20. <application android:usesCleartextTraffic="true" />
  21. </edit-config>
  22. <preference name="AndroidInsecureFileModeEnabled" value="true" />
  23. </platform>
  24. </widget>