forked from flobiwankenobi/cordova-plugin-barcode-detector
-
Notifications
You must be signed in to change notification settings - Fork 22
/
plugin.xml
133 lines (122 loc) · 5.26 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-mlkit-barcode-scanner"
version="3.0.7"
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/BarcodeScanner.plugin.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>
<config-file target="*-Info.plist"
parent="CFBundleDevelopmentRegion">
<string>de_DE</string>
</config-file>
<config-file target="*-Info.plist"
parent="CFBundleLocalizations">
<array>
<string>en</string>
<string>de</string>
</array>
</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="~> 2.5.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" />
<resource-file src="src/ios/Sounds/beep.caf" />
<resource-file src="src/ios/de.lproj/Localizable.strings"
target="de.lproj/Localizable.strings" />
<resource-file src="src/ios/en.lproj/Localizable.strings"
target="en.lproj/Localizable.strings" />
</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="AndroidManifest.xml">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-feature android:name="android.hardware.camera"
android:required="false" />
</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>
<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/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/assets/beep.ogg"
target="assets/beep.ogg" />
<resource-file src="src/android/res/values/strings-en.xml"
target="res/values/strings.xml" />
<resource-file src="src/android/res/values/strings-de.xml"
target="res/values-de/strings.xml" />
<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/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.2.0" />
<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>