-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplugin.xml
134 lines (107 loc) · 5.38 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
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin id="com.outsystems.payments" version="1.2.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>OSPayments</name>
<description>OutSystems-owned plugin for mobile payments</description>
<author>OutSystems Inc</author>
<js-module name="OSPayments" src="www/OSPayments.js">
<clobbers target="cordova.plugins.OSPayments"/>
</js-module>
<platform name="android">
<hook type="after_prepare" src="hooks/android/androidCopyPreferences.js" />
<config-file parent="/*" target="res/xml/config.xml">
<feature name="OSPayments">
<param name="android-package" value="com.outsystems.payments.OSPayments"/>
</feature>
<preference name="GradlePluginKotlinEnabled" value="true" />
<preference name="GradlePluginKotlinCodeStyle" value="official" />
<preference name="AndroidXEnabled" value="true"/>
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true" />
</config-file>
<config-file parent="/resources" target="res/values/strings.xml">
<string name="merchant_name">MERCHANT_NAME</string>
<string name="merchant_country_code">MERCHANT_COUNTRY_CODE</string>
<string name="payment_allowed_networks">ALLOWED_NETWORKS</string>
<string name="payment_supported_capabilities">SUPPORTED_CAPABILITIES</string>
<string name="payment_supported_card_countries">SUPPORTED_CARD_COUNTRIES</string>
<string name="shipping_supported_contacts">SHIPPING_SUPPORTED_CONTACTS</string>
<string name="shipping_country_codes">SHIPPING_COUNTRY_CODES</string>
<string name="billing_supported_contacts">BILLING_SUPPORTED_CONTACTS</string>
<string name="gateway">GATEWAY</string>
<string name="backend_url">BACKEND_URL</string>
<string name="gateway_merchant_id">GATEWAY_MERCHANT_ID</string>
<string name="stripe_version">STRIPE_VERSION</string>
<string name="stripe_pub_key">STRIPE_PUB_KEY</string>
</config-file>
<source-file src="src/android/com/outsystems/payments/OSPayments.kt" target-dir="app/src/main/kotlin/com/outsystems/payments"/>
<framework src="src/android/com/outsystems/payments/build.gradle" custom="true" type="gradleReference" />
</platform>
<platform name="ios">
<!-- Hooks -->
<hook type="after_prepare" src="hooks/ios/iOSCopyPreferences.js" />
<dependency id="cordova-plugin-add-swift-support" url="https://github.com/OutSystems/cordova-plugin-add-swift-support.git#2.0.3-OS1"/>
<config-file parent="/*" target="config.xml">
<feature name="OSPayments">
<param name="ios-package" value="OSPayments"/>
</feature>
<preference name="deployment-target" value="13" />
<preference name="UseSwiftLanguageVersion" value="5" />
</config-file>
<config-file target="*-Debug.plist" parent="com.apple.developer.in-app-payments">
<array>
<string>APPLE_PAY_MERCHANT_ID</string>
</array>
</config-file>
<config-file target="*-Release.plist" parent="com.apple.developer.in-app-payments">
<array>
<string>APPLE_PAY_MERCHANT_ID</string>
</array>
</config-file>
<config-file target="*-Info.plist" parent="ApplePayMerchantID">
<string>APPLE_PAY_MERCHANT_ID</string>
</config-file>
<config-file target="*-Info.plist" parent="ApplePayMerchantName">
<string>APPLE_PAY_MERCHANT_NAME</string>
</config-file>
<config-file target="*-Info.plist" parent="ApplePayMerchantCountryCode">
<string>APPLE_PAY_MERCHANT_COUNTRY_CODE</string>
</config-file>
<config-file target="*-Info.plist" parent="ApplePayPaymentAllowedNetworks">
<array>APPLE_PAY_PAYMENT_ALLOWED_NETWORKS</array>
</config-file>
<config-file target="*-Info.plist" parent="ApplePayPaymentSupportedCapabilities">
<array>APPLE_PAY_PAYMENT_SUPPORTED_CAPABILITIES</array>
</config-file>
<config-file target="*-Info.plist" parent="ApplePayPaymentSupportedCardCountries">
<array>APPLE_PAY_PAYMENT_SUPPORTED_CARD_COUNTRIES</array>
</config-file>
<config-file target="*-Info.plist" parent="ApplePayShippingSupportedContacts">
<array>APPLE_PAY_SHIPPING_SUPPORTED_CONTACTS</array>
</config-file>
<config-file target="*-Info.plist" parent="ApplePayBillingSupportedContacts">
<array>APPLE_PAY_BILLING_SUPPORTED_CONTACTS</array>
</config-file>
<config-file target="*-Info.plist" parent="ApplePayPaymentGateway">
<dict>
<key>ApplePayPaymentGatewayName</key>
<string>APPLE_PAY_PAYMENT_GATEWAY_NAME</string>
<key>ApplePayRequestURL</key>
<string>APPLE_PAY_PAYMENT_REQUEST_URL</string>
<key>ApplePayStripePublishableKey</key>
<string>APPLE_PAY_PAYMENT_STRIPE_PUBLISHABLE_KEY</string>
</dict>
</config-file>
<!-- iOS Source Files -->
<source-file src="src/ios/OSPayments.swift"/>
<framework src="src/ios/frameworks/OSPaymentsLib.xcframework" embed="true" custom="true" />
<podspec>
<config>
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="OSCommonPluginLib" spec="1.0.0" />
</pods>
</podspec>
</platform>
</plugin>