-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
88 lines (67 loc) · 4.11 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-mlkit-barcode-scanner" version="0.0.1">
<name>BarCodeScannerPlugin</name>
<description></description>
<license>MIT</license>
<keywords>cordova</keywords>
<repo>https://github.com/CarlsCorrea/BarCodeScannerPlugin.git</repo>
<issue>https://github.com/CarlsCorrea/BarCodeScannerPlugin/issues</issue>
<engines>
<engine name="cordova" version=">=3.0.0"/>
</engines>
<js-module name="cordova-plugin-mlkit-barcode-scanner" src="www/barcodescannerplugin.js">
<clobbers target="cordova.plugins.scanner"/>
</js-module>
<platform name="ios">
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>This app needs access to the camera to take photos.</string>
</config-file>
<config-file target="config.xml" parent="/*">
<preference name="SwiftVersion" default="5.1" />
<feature name="cordova-plugin-mlkit-barcode-scanner">
<param name="ios-package" value="BarCodeScannerPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<dependency url="https://github.com/agoncalvesos/cordova-plugin-add-swift-support" commit="513e43f94ae94ad609d49f24e7dca23a4c358095" id="cordova-plugin-add-swift-support"/>
<framework src="GoogleMLKit/BarcodeScanning" type="podspec" spec="~> 0.61.0" />
<source-file src="src/ios/CameraViewController.swift" />
<source-file src="src/ios/BarCodeScannerPlugin.swift" />
<source-file src="src/ios/UIUtilities.swift" />
</platform>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="cordova-plugin-mlkit-barcode-scanner">
<param name="android-package" value="com.carlscorrea.cordova.plugin.BarCodeScannerPlugin"/>
</feature>
</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.mlkit.vision.DEPENDENCIES"
android:value="barcode" />
<activity android:noHistory="true" android:screenOrientation="portrait" android:label="Read Barcode" android:name="com.carlscorrea.cordova.plugin.BarcodeScannerActivity" android:theme="@style/Theme.AppCompat.Light"/>
</config-file>
<config-file parent="/*" target="app/src/main/AndroidManifest.xml">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.front"/>
</config-file>
<source-file src="src/android/src/barCodeScanner/BarCodeScannerPlugin.java" target-dir="src/com/carlscorrea/cordova/plugin" />
<source-file src="src/android/src/barCodeScanner/BarcodeScannerActivity.java" target-dir="src/com/carlscorrea/cordova/plugin" />
<source-file src="src/android/src/barCodeScanner/BarcodePreviewListener.java" target-dir="src/com/carlscorrea/cordova/plugin"/>
<resource-file src="src/android/res/layout/carlscorrea_base_camera.xml" target="res/layout/carlscorrea_base_camera.xml"/>
<framework src="androidx.appcompat:appcompat:1.0.0"/>
<framework src="com.google.mlkit:barcode-scanning:16.0.0" />
<framework src="com.camerakit:camerakit:1.0.0-beta3.10"/>
<framework src="com.camerakit:jpegkit:0.1.0"/>
<framework src="org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.0"/>
<framework src="org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0"/>
<framework src="com.google.android.material:material:1.1.0"/>
</platform>
</plugin>