| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?xml version='1.0' encoding='utf-8'?>
- <widget id="zskk.dros" version="1.0.0"
- xmlns="http://www.w3.org/ns/widgets"
- xmlns:cdv="http://cordova.apache.org/ns/1.0"
- xmlns:android="http://schemas.android.com/apk/res/android">
- <name>dros</name>
- <description>Sample Apache Cordova App</description>
- <author email="dev@cordova.apache.org" href="https://cordova.apache.org">
- Apache Cordova Team
- </author>
- <content src="index.html" />
- <!-- 白名单配置 -->
- <!-- <access origin="*" />
- <allow-navigation href="*" />
- <allow-intent href="http://*/*" />
- <allow-intent href="https://*/*" /> -->
- <!-- Cordova 插件配置 -->
- <!-- 摄像头插件 - 用于二维码扫描 -->
- <!-- 注意:此插件已在 build-android.js 中通过命令行添加,这里只做声明 -->
- <!-- <plugin name="cordova-plugin-camera" spec="^6.0.0">
- <variable name="CAMERA_USAGE_DESCRIPTION" value="用于扫描二维码录入患者信息" />
- <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="用于选择图片进行二维码识别" />
- </plugin> -->
- <!-- Android 平台配置 -->
- <platform name="android">
- <!-- Android 权限配置 -->
- <config-file target="app/src/main/AndroidManifest.xml" parent="/manifest" mode="merge">
- <uses-permission android:name="android.permission.CAMERA" />
- <uses-feature android:name="android.hardware.camera" android:required="false" />
- <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
- </config-file>
- </platform>
- <!-- 允许明文 HTTP -->
- <platform name="android">
- <edit-config file="app/src/main/AndroidManifest.xml" mode="merge"
- target="/manifest/application">
- <application android:usesCleartextTraffic="true" />
- </edit-config>
- <preference name="AndroidInsecureFileModeEnabled" value="true" />
- </platform>
- </widget>
|