config.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. <!-- Cordova 插件配置 -->
  18. <!-- 摄像头插件 - 用于二维码扫描 -->
  19. <!-- 注意:此插件已在 build-android.js 中通过命令行添加,这里只做声明 -->
  20. <!-- <plugin name="cordova-plugin-camera" spec="^6.0.0">
  21. <variable name="CAMERA_USAGE_DESCRIPTION" value="用于扫描二维码录入患者信息" />
  22. <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="用于选择图片进行二维码识别" />
  23. </plugin> -->
  24. <!-- Android 平台配置 -->
  25. <platform name="android">
  26. <!-- Android 权限配置 -->
  27. <config-file target="app/src/main/AndroidManifest.xml" parent="/manifest" mode="merge">
  28. <uses-permission android:name="android.permission.CAMERA" />
  29. <uses-feature android:name="android.hardware.camera" android:required="false" />
  30. <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
  31. </config-file>
  32. </platform>
  33. <!-- 允许明文 HTTP -->
  34. <platform name="android">
  35. <edit-config file="app/src/main/AndroidManifest.xml" mode="merge"
  36. target="/manifest/application">
  37. <application android:usesCleartextTraffic="true" />
  38. </edit-config>
  39. <preference name="AndroidInsecureFileModeEnabled" value="true" />
  40. </platform>
  41. </widget>