forked from insightautos/cordova-gmv-barcode-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
122 lines (109 loc) · 6.84 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-gmv-barcode-scanner" version="1.2" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-gmv-barcode-scanner</name>
<js-module name="cordova-gmv-barcode-scanner" src="www/main.js">
<clobbers target="cordova.plugins.gmv-barcode-scanner"/>
</js-module>
<engines>
<engine name="cordova" version=">=7.1.0"/>
<engine name="cordova-android" version=">=6.3.0"/>
<engine name="cordova-ios" version=">=4.5.0"/>
</engines>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="cordova-gmv-barcode-scanner">
<param name="ios-package" value="CDViOSScanner"/>
</feature>
</config-file>
<framework src="Foundation.framework"/>
<framework src="AVFoundation.framework"/>
<framework src="UIKit.framework"/>
<framework spec="~> 1.1" src="GoogleMobileVision/BarcodeDetector" type="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-gmv-barcode-scanner">
<param name="android-package" value="com.dealrinc.gmvScanner.CDVAndroidScanner"/>
</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" />
<activity android:label="@string/title_activity_main" android:name="com.dealrinc.gmvScanner.SecondaryActivity"/>
<activity android:label="Read Barcode" android:name="com.dealrinc.gmvScanner.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.android.gms.vision.DEPENDENCIES"
android:value="barcode" />
<activity android:label="@string/title_activity_main" android:name="com.dealrinc.gmvScanner.SecondaryActivity"/>
<activity android:label="Read Barcode" android:name="com.dealrinc.gmvScanner.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/gmvScanner/BarcodeCaptureActivity.java"
target-dir="src/com/dealrinc/gmvScanner"/>
<source-file src="src/android/src/gmvScanner/BarcodeGraphic.java"
target-dir="src/com/dealrinc/gmvScanner"/>
<source-file src="src/android/src/gmvScanner/BarcodeGraphicTracker.java"
target-dir="src/com/dealrinc/gmvScanner"/>
<source-file src="src/android/src/gmvScanner/BarcodeTrackerFactory.java"
target-dir="src/com/dealrinc/gmvScanner"/>
<source-file src="src/android/src/gmvScanner/CDVAndroidScanner.java"
target-dir="src/com/dealrinc/gmvScanner"/>
<source-file src="src/android/src/gmvScanner/SecondaryActivity.java"
target-dir="src/com/dealrinc/gmvScanner"/>
<source-file src="src/android/src/gmvScanner/ui/camera/CameraSource.java"
target-dir="src/com/dealrinc/gmvScanner/ui/camera"/>
<source-file src="src/android/src/gmvScanner/ui/camera/CameraSourcePreview.java"
target-dir="src/com/dealrinc/gmvScanner/ui/camera"/>
<source-file src="src/android/src/gmvScanner/ui/camera/GraphicOverlay.java"
target-dir="src/com/dealrinc/gmvScanner/ui/camera"/>
<resource-file src="src/android/res/layout/activity_main.xml"
target="res/layout/activity_gmv_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/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.google.android.gms:play-services-vision:11.0.1" />
<framework src="com.android.support:design:27.1.0" />
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference"/>
</platform>
</plugin>