forked from MobisysGmbH/cordova-plugin-mlkit-barcode-scanner
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
117 lines (102 loc) · 7.22 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-mlkit-barcode-scanner" version="2.2.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-mlkit-barcode-scanner</name>
<js-module name="cordova-plugin-ml-kit-barcode-scanner" src="www/main.js">
<clobbers target="cordova.plugins.mlkit.barcodeScanner"/>
</js-module>
<engines>
<engine name="cordova" version=">=7.1.0"/>
<engine name="cordova-android" version=">=8.0.0"/>
<engine name="cordova-ios" version=">=4.5.0"/>
</engines>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="cordova-plugin-mlkit-barcode-scanner">
<param name="ios-package" value="CDViOSScanner"/>
</feature>
</config-file>
<framework src="Foundation.framework"/>
<framework src="AVFoundation.framework"/>
<framework src="UIKit.framework"/>
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="GoogleMLKit/BarcodeScanning" spec="~> 3.2.0" />
</pods>
</podspec>
<header-file src="src/ios/CDViOSScanner.h"/>
<source-file src="src/ios/CDViOSScanner.m"/>
<header-file src="src/ios/CameraViewController.h"/>
<source-file src="src/ios/CameraViewController.m"/>
</platform>
<platform name="android">
<dependency id="cordova-plugin-androidx-adapter" version="^1.1.3" />
<config-file parent="/*" target="res/xml/config.xml">
<feature name="cordova-plugin-mlkit-barcode-scanner">
<param name="android-package" value="com.mobisys.cordova.plugins.mlkit.barcode.scanner.MLKitBarcodeScanner"/>
</feature>
</config-file>
<config-file parent="/*" target="app/src/main/AndroidManifest.xml">
<uses-permission android:name="android.permission.CAMERA" />
</config-file>
<config-file parent="application" target="app/src/main/AndroidManifest.xml">
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<meta-data android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="barcode" />
<meta-data android:name="com.google.mlkit.vision.DEPENDENCIES" android:value="barcode" />
<activity android:label="Read Barcode" android:name="com.mobisys.cordova.plugins.mlkit.barcode.scanner.CaptureActivity" android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.CAMERA" />
</config-file>
<config-file parent="application" target="AndroidManifest.xml">
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<meta-data android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="barcode" />
<activity android:label="Read Barcode" android:name="com.mobisys.cordova.plugins.mlkit.barcode.scanner.CaptureActivity" android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
</config-file>
<config-file target="res/values/strings.xml" parent="/*">
<string name="ok">OK</string>
<string name="permission_camera_rationale">Access to the camera is needed for detection</string>
<string name="no_camera_permission">This application cannot run because it does not have the camera permission. The application will now exit.</string>
<string name="low_storage_error">Face detector dependencies cannot be downloaded due to low device storage</string>
<string name="title_activity_main">Barcode Reader Activity</string>
<string name="barcode_header">Click "Read Barcode" to read a barcode</string>
<string name="read_barcode">Read Barcode</string>
<string name="auto_focus">Auto Focus</string>
<string name="use_flash">Use Flash</string>
<string name="barcode_success">Barcode read successfully</string>
<string name="barcode_failure">No barcode captured</string>
<string name="barcode_error">"Error reading barcode: %1$s"</string>
</config-file>
<!-- <source-file src="src/android/src/BarcodeCaptureActivity.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner"/> -->
<!-- <source-file src="src/android/src/BarcodeGraphic.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner"/> -->
<!-- <source-file src="src/android/src/BarcodeScanningProcessor.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner"/> -->
<source-file src="src/android/src/CaptureActivity.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner"/>
<source-file src="src/android/src/MLKitBarcodeScanner.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner"/>
<!--
<source-file src="src/android/src/ui/camera/CameraSource.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner/ui/camera"/>
<source-file src="src/android/src/ui/camera/CameraSourcePreview.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner/ui/camera"/>
<source-file src="src/android/src/ui/camera/GraphicOverlay.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner/ui/camera"/>
-->
<source-file src="src/android/src/utils/BitmapUtils.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner/utils"/>
<source-file src="src/android/src/utils/FrameMetadata.java" target-dir="src/com/mobisys/cordova/plugins/mlkit/barcode/scanner/utils"/>
<resource-file src="src/android/res/layout/capture_activity.xml" target="res/layout/capture_activity.xml"/>
<resource-file src="src/android/res/drawable/flashlight.png" target="res/drawable/flashlight.png"/>
<!-- <resource-file src="src/android/res/drawable/rounded_rectangle.xml" target="res/drawable/rounded_rectangle.xml"/> -->
<resource-file src="src/android/res/drawable/torch_active.xml" target="res/drawable/torch_active.xml"/>
<resource-file src="src/android/res/drawable/torch_inactive.xml" target="res/drawable/torch_inactive.xml"/>
<framework src="com.android.support:support-v4:27.1.0" />
<framework src="com.android.support:design:27.1.0" />
<framework src="com.google.android.gms:play-services-vision:17.0.2" />
<framework src="com.google.mlkit:barcode-scanning:16.0.3"/>
<framework src="androidx.camera:camera-core:1.0.0-beta05"/>
<framework src="androidx.camera:camera-camera2:1.0.0-beta05"/>
<framework src="androidx.camera:camera-lifecycle:1.0.0-beta05"/>
<framework src="androidx.camera:camera-view:1.0.0-alpha12"/>
<framework src="androidx.constraintlayout:constraintlayout:2.0.4"/>
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference"/>
</platform>
</plugin>