forked from card-io/card.io-Cordova-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
93 lines (79 loc) · 4.21 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2014 PayPal. All rights reserved. -->
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-card-io"
version="2.1.0">
<name>CardIO</name>
<description>This plugin allows to add to add CardIO to your application using CardIO Native library</description>
<license>MIT License, see LICENSE.md for details</license>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/cdv-plugin-card-io.js" name="CardIO">
<clobbers target="CardIO" />
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="CardIO">
<param name="ios-package" value="CardIOCordovaPlugin" onload="false" />
</feature>
</config-file>
<!-- Plugin implementation -->
<header-file src="src/ios/CardIOCordovaPlugin.h" />
<source-file src="src/ios/CardIOCordovaPlugin.m" />
<!-- CardIO library -->
<header-file src="src/ios/CardIO/CardIO.h" />
<header-file src="src/ios/CardIO/CardIOCreditCardInfo.h" />
<header-file src="src/ios/CardIO/CardIODetectionMode.h" />
<header-file src="src/ios/CardIO/CardIOPaymentViewController.h" />
<header-file src="src/ios/CardIO/CardIOPaymentViewControllerDelegate.h" />
<header-file src="src/ios/CardIO/CardIOUtilities.h" />
<header-file src="src/ios/CardIO/CardIOView.h" />
<header-file src="src/ios/CardIO/CardIOViewDelegate.h" />
<source-file src="src/ios/CardIO/libCardIO.a" framework="true" />
<source-file src="src/ios/CardIO/libopencv_core.a" framework="true" />
<source-file src="src/ios/CardIO/libopencv_imgproc.a" framework="true" />
<!-- link libraries for CardIO -->
<framework src="Accelerate.framework" />
<framework src="AudioToolbox.framework" />
<framework src="AVFoundation.framework" />
<framework src="CoreGraphics.framework" />
<framework src="CoreMedia.framework" />
<framework src="CoreVideo.framework" />
<framework src="Foundation.framework" />
<framework src="MobileCoreServices.framework" />
<framework src="OpenGLES.framework" />
<framework src="QuartzCore.framework" />
<framework src="Security.framework" />
<framework src="UIKit.framework" />
<framework src="libc++.dylib" />
<!-- ios 10+ camera usage description -->
<preference name="CARD_IO_CAMERA_USAGE_DESCRIPTION" default="${EXECUTABLE_NAME} Would like to use your camera to scan credit cards." />
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>$CARD_IO_CAMERA_USAGE_DESCRIPTION</string>
</config-file>
<!-- ios 10+ photo library read usage description -->
<preference name="CARD_IO_PHOTO_LIBRARY_USAGE_DESCRIPTION" default="${EXECUTABLE_NAME} Would like to use your camera to scan credit cards." />
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>$CARD_IO_PHOTO_LIBRARY_USAGE_DESCRIPTION</string>
</config-file>
<!-- ios 11+ photo library write usage description -->
<preference name="CARD_IO_PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION" default="${EXECUTABLE_NAME} Would like to use your camera to scan credit cards." />
<config-file target="*-Info.plist" parent="NSPhotoLibraryAddUsageDescription">
<string>$CARD_IO_PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION</string>
</config-file>
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CardIO">
<param name="android-package" value="io.card.cordova.sdk.CardIOCordovaPlugin" />
</feature>
</config-file>
<source-file src="src/android/CardIOCordovaPlugin.java" target-dir="src/io/card/cordova/sdk" />
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
</platform>
</plugin>