-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.xml
More file actions
130 lines (118 loc) · 7.7 KB
/
plugin.xml
File metadata and controls
130 lines (118 loc) · 7.7 KB
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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-firebase-ml-kit-barcode-scanner" version="1.0" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-firebase-ml-kit-barcode-scanner</name>
<js-module name="cordova-plugin-firebase-ml-kit-barcode-scanner" src="www/main.js">
<clobbers target="cordova.plugins.scanner"/>
</js-module>
<engines>
<engine name="cordova" version=">=9.0.0"/>
<engine name="cordova-android" version=">=8.1.0"/>
<engine name="cordova-ios" version=">=5.1.1"/>
</engines>
<!--<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="cordova-plugin-firebase-ml-kit-barcode-scanner">
<param name="ios-package" value="CDViOSScanner"/>
<param name="onload" value="true" />
</feature>
</config-file>
<resource-file src="src/ios/GoogleService-Info.plist" />
<framework src="Foundation.framework"/>
<framework src="AVFoundation.framework"/>
<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods use-frameworks="false">
<pod name="FirebaseMLVision" spec="~> 0.19.0" />
<pod name="FirebaseMLVisionBarcodeModel" spec="~> 0.19.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">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="cordova-plugin-firebase-ml-kit-barcode-scanner">
<param name="android-package" value="tl.cordova.plugin.firebase.mlkit.barcode.scanner.AndroidScanner"/>
</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.firebase.ml.vision.DEPENDENCIES"
android:value="barcode" />
<activity android:screenOrientation="portrait" android:label="@string/title_activity_main" android:name="tl.cordova.plugin.firebase.mlkit.barcode.scanner.SecondaryActivity"/>
<activity android:screenOrientation="portrait" android:label="Read Barcode" android:name="tl.cordova.plugin.firebase.mlkit.barcode.scanner.BarcodeCaptureActivity" android:theme="@style/Theme.AppCompat.Light"/>
</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.firebase.ml.vision.DEPENDENCIES"
android:value="barcode" />
<activity android:screenOrientation="portrait" android:label="@string/title_activity_main" android:name="tl.cordova.plugin.firebase.mlkit.barcode.scanner.SecondaryActivity"/>
<activity android:screenOrientation="portrait" android:label="Read Barcode" android:name="tl.cordova.plugin.firebase.mlkit.barcode.scanner.BarcodeCaptureActivity" android:theme="@style/Theme.AppCompat.Light"/>
</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/tl/cordova/plugin/firebase/mlkit/barcode/scanner"/>
<source-file src="src/android/src/BarcodeGraphic.java"
target-dir="src/tl/cordova/plugin/firebase/mlkit/barcode/scanner"/>
<source-file src="src/android/src/AndroidScanner.java"
target-dir="src/tl/cordova/plugin/firebase/mlkit/barcode/scanner"/>
<source-file src="src/android/src/BarcodeScanningProcessor.java"
target-dir="src/tl/cordova/plugin/firebase/mlkit/barcode/scanner"/>
<source-file src="src/android/src/SecondaryActivity.java"
target-dir="src/tl/cordova/plugin/firebase/mlkit/barcode/scanner"/>
<source-file src="src/android/src/camera/CameraSource2.java"
target-dir="src/tl/cordova/plugin/firebase/mlkit/barcode/scanner/camera"/>
<source-file src="src/android/src/camera/CameraSourcePreview.java"
target-dir="src/tl/cordova/plugin/firebase/mlkit/barcode/scanner/camera"/>
<source-file src="src/android/src/camera/GraphicOverlay.java"
target-dir="src/tl/cordova/plugin/firebase/mlkit/barcode/scanner/camera"/>
<resource-file src="src/android/res/layout/activity_main.xml"
target="res/layout/activity_barcode_scanner.xml"/>
<resource-file src="src/android/res/layout/barcode_capture.xml"
target="res/layout/barcode_capture.xml"/>
<resource-file src="src/android/res/drawable/flashlight.png"
target="res/drawable/flashlight.png"/>
<resource-file src="src/android/res/drawable/horizontal_line.xml" target="res/drawable/horizontal_line.xml"/>
<resource-file src="src/android/res/drawable/vertical_line.xml" target="res/drawable/vertical_line.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="androidx.appcompat:appcompat:1.1.0" />
<framework src="com.google.android.material:material:1.0.0" />
<framework src="com.google.firebase:firebase-ml-vision:24.0.3" />
<framework src="com.google.firebase:firebase-ml-vision-barcode-model:16.1.1" />
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
</platform>
<hook type="after_prepare" src="scripts/setupFirebaseCredentials.js" />
</plugin>