-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplugin.xml
60 lines (56 loc) · 3.2 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="@monaca/monaca-plugin-barcode-scanner" version="1.5.0" >
<name>@monaca/monaca-plugin-barcode-scanner</name>
<description>MonacaBarcodeScannerPlugin</description>
<author>Asial Corporation</author>
<license>Apache-2.0</license>
<engines>
<engine name="cordova" version=">=11.0.0"/>
</engines>
<js-module src="www/barcode_scanner.js" name="monaca.BarcodeScanner">
<clobbers target="monaca.BarcodeScanner" />
</js-module>
<!-- android -->
<platform name="android">
<preference name="CAMERA_LIBRARIES_VERSION" default="1.1.0-beta02"/>
<framework src="androidx.constraintlayout:constraintlayout:2.1.3" />
<framework src="androidx.camera:camera-camera2:$CAMERA_LIBRARIES_VERSION" />
<framework src="androidx.camera:camera-view:$CAMERA_LIBRARIES_VERSION" />
<framework src="androidx.camera:camera-lifecycle:$CAMERA_LIBRARIES_VERSION" />
<framework src="com.google.mlkit:barcode-scanning:17.2.0" />
<framework src="com.google.guava:guava:33.3.0-android" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MonacaBarcodeScannerPlugin" >
<param name="android-package" value="io.monaca.plugin.barcodescanner.BarcodeScanner"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*" >
<uses-permission android:name="android.permission.CAMERA" />
</config-file>
<config-file target="AndroidManifest.xml" parent="application">
<activity android:name="io.monaca.plugin.barcodescanner.BarcodeScannerActivity" android:theme="@style/Theme.AppCompat.NoActionBar" />
</config-file>
<source-file src="src/android/BarcodeScanner.java" target-dir="src/io/monaca/plugin/barcodescanner" />
<source-file src="src/android/BarcodeScannerActivity.java" target-dir="src/io/monaca/plugin/barcodescanner" />
<source-file src="src/android/ImageUtils.java" target-dir="src/io/monaca/plugin/barcodescanner" />
<source-file src="src/android/BitmapUtils.java" target-dir="src/io/monaca/plugin/barcodescanner" />
<source-file src="src/android/FrameMetadata.java" target-dir="src/io/monaca/plugin/barcodescanner" />
<resource-file src="src/android/res/layout/activity_barcode_scanner.xml" target="res/layout/activity_barcode_scanner.xml" />
<resource-file src="src/android/res/drawable/rectangle.xml" target="res/drawable/rectangle.xml" />
<resource-file src="src/android/res/drawable/round_btn.xml" target="res/drawable/round_btn.xml" />
<resource-file src="src/android/res/drawable/torch_btn.xml" target="res/drawable/torch_btn.xml" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="MonacaBarcodeScannerPlugin">
<param name="ios-package" value="CDVBarcodeScanner"/>
</feature>
</config-file>
<header-file src="src/ios/CDVBarcodeScanner.h"/>
<source-file src="src/ios/CDVBarcodeScanner.m"/>
<source-file src="src/ios/BarcodeScannerViewController.h"/>
<source-file src="src/ios/BarcodeScannerViewController.m"/>
<resource-file src="src/ios/CDVBarcodeScanner.bundle"/>
</platform>
</plugin>