forked from vkeepe/card.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
103 lines (91 loc) · 5.06 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
<?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="com.keepe.cardio"
version="1.0.9">
<name>CardIO</name>
<description>This plugin allows to add CardIO to your application using CardIO Native library. Supports iOS & Android</description>
<license>MIT License, see LICENSE.md for details</license>
<keywords>cordova, card scan, scanner, card.io</keywords>
<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">
<hook type="before_plugin_install" src="scripts/cdv-plugin-after-install-ios.js" />
<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" />
<!-- link libraries for CardIO -->
<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" />
</platform>
<!-- android -->
<platform name="android">
<lib-file src="src/android/lib/card.io.jar" arch="device" />
<lib-file src="src/android/lib/arm64-v8a" arch="device" />
<lib-file src="src/android/lib/armeabi" arch="device" />
<lib-file src="src/android/lib/armeabi-v7a" arch="device" />
<lib-file src="src/android/lib/mips" arch="device" />
<lib-file src="src/android/lib/mips64" arch="device" />
<lib-file src="src/android/lib/x86" arch="device" />
<lib-file src="src/android/lib/x86_64" arch="device" />
<source-file src="src/android/CardIOMain.java"
target-dir="src/com/keepe/plugins/cardio" />
<source-file src="src/android/CardIO.java"
target-dir="src/com/keepe/plugins/cardio" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CardIO">
<param name="android-package" value="com.keepe.plugins.cardio.CardIO"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:configChanges="orientation|keyboardHidden" android:name="com.keepe.plugins.cardio.CardIOMain" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:windowSoftInputMode="stateAlwaysHidden">
<intent-filter>
<action android:name="com.keepe.plugins.cardio.SCAN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="io.card.payment.CardIOActivity" android:configChanges="keyboardHidden|orientation"
android:hardwareAccelerated="true"/>
<activity android:name="io.card.payment.DataEntryActivity" android:screenOrientation="portrait"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />
</config-file>
</platform>
</plugin>