41 lines
2.3 KiB
XML
41 lines
2.3 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
|
<plugin id="cordova.plugin.JcPrinter" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<name>bluetoothPrinter</name>
|
|
<js-module name="jcPrinter" src="www/jcPrinter.js">
|
|
<clobbers target="cordova.plugins.jcprinter" />
|
|
</js-module>
|
|
<platform name="android">
|
|
<config-file parent="/*" target="res/xml/config.xml">
|
|
<feature name="JcPrinter">
|
|
<param name="android-package" value="cordova.plugin.jcprinter.JcPrinter"/>
|
|
</feature>
|
|
</config-file>
|
|
|
|
<source-file src="src/android/cordova/plugin/jcprinter/JcPrinter.java"
|
|
target-dir="cordova/plugin/jcprinter"/>
|
|
|
|
<lib-file src="src/android/3.1.8-release.aar" />
|
|
<lib-file src="src/android/image-2.0.10-release.aar" />
|
|
|
|
<!-- <resource-file src="src/android/3.1.8-release.aar" target="libs/3.1.8-release.aar" /> -->
|
|
<!-- <resource-file src="src/android/image-2.0.10-release.aar" target="libs/image-2.0.10-release.aar" /> -->
|
|
<framework src="src/android/jcPrinter.gradle" custom="true" type="gradleReference" />
|
|
|
|
|
|
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
<uses-permission android:name="android.permission.BLUETOOTH"/>
|
|
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
|
|
<!--Android12 的蓝牙权限 如果您的应用与已配对的蓝牙设备通信或者获取当前手机蓝牙是否打开-->
|
|
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/>
|
|
<!--Android12 的蓝牙权限 如果您的应用查找蓝牙设备(如蓝牙低功耗 (BLE) 外围设备)-->
|
|
<uses-permission android:name="android.permission.BLUETOOTH_SCAN"/>
|
|
<!--Android12 的蓝牙权限 如果您的应用使当前设备可被其他蓝牙设备检测到-->
|
|
<uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE"/>
|
|
<!--Android 6-11 定位权限-->
|
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
|
|
</config-file>
|
|
</platform>
|
|
</plugin>
|