forked from tadeukaiba/custom-barcode-scanner
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.xml
More file actions
executable file
·73 lines (61 loc) · 3.77 KB
/
plugin.xml
File metadata and controls
executable file
·73 lines (61 loc) · 3.77 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-custom-scanner" version="1.0.0">
<name>Cordova Plugin Custom Barcode Scanner</name>
<description></description>
<license>MIT</license>
<keywords></keywords>
<repo>https://github.com/mbamobi/cordova-plugin-custom-scanner.git</repo>
<issue>https://github.com/mbamobi/cordova-plugin-custom-scanner/issues</issue>
<js-module src="www/CustomBarcodeScanner.js" name="CustomBarcodeScanner">
<runs/>
<clobbers target="CustomBarcodeScanner" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CustomBarcodeScanner">
<param name="android-package" value="br.com.mbamobi.CustomBarcodeScanner" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="br.com.mbamobi.AnyOrientationActivity" android:screenOrientation="portrait" android:stateNotNeeded="true" android:theme="@style/zxing_CaptureTheme" android:windowSoftInputMode="stateAlwaysHidden"></activity>
<activity android:name="br.com.mbamobi.ScannerActivity" android:screenOrientation="portrait" android:stateNotNeeded="true" android:theme="@style/AppTheme.NoActionBar" android:windowSoftInputMode="stateAlwaysHidden"></activity>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.CAMERA" />
</config-file>
<source-file src="src/android/CustomBarcodeScanner.java" target-dir="src/br/com/mbamobi/" />
<source-file src="src/android/ScannerActivity.java" target-dir="src/br/com/mbamobi/" />
<source-file src="src/android/res/layout/activity_scanner.xml" target-dir="res/layout" />
<source-file src="src/android/res/layout/content_scanner.xml" target-dir="res/layout" />
<source-file src="src/android/res/layout/custom_scanner.xml" target-dir="res/layout" />
<source-file src="src/android/res/values/custom_barcode_scanner_strings.xml" target-dir="res/values" />
<source-file src="src/android/res/values/colors.xml" target-dir="res/values" />
<source-file src="src/android/res/values/styles.xml" target-dir="res/values" />
<source-file src="src/android/res/drawable/lightbulb_off.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/lightbulb_on.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/switch_camera.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/close_camera.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/select_list.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/next_arrow.png" target-dir="res/drawable" />
<source-file src="src/android/res/drawable/rounded_button.xml" target-dir="res/drawable" />
<framework src="src/android/custom-barcode-scanner.gradle" custom="true" type="gradleReference" />
</platform>
<!-- ios -->
<platform name="ios">
<dependency id="cordova-plugin-add-swift-support" version="~1.7.1"/>
<config-file target="config.xml" parent="/*">
<feature name="CustomBarcodeScanner">
<param name="ios-package" value="CustomBarcodeScanner" />
</feature>
</config-file>
<!-- Usage description of Camera for iOS 11+ -->
<preference name="CAMERA_USAGE_DESCRIPTION" default=" " />
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>$CAMERA_USAGE_DESCRIPTION</string>
</config-file>
<source-file src="src/ios/CustomBarcodeScanner.swift" />
<resource-file src="src/ios/CustomBarcodeScanner.bundle"/>
</platform>
</plugin>