forked from j3k0/cordova-plugin-purchase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
133 lines (111 loc) · 6 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
The MIT License (MIT)
Copyright (c) 2013-2015 Jean-Christophe Hoelt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cc.fovea.cordova.purchase"
version="7.2.4">
<name>Purchase</name>
<description>Cordova Purchase plugin for iOS (AppStore), Android (PlayStore) and Windows</description>
<engines>
<engine name="cordova" version=">=6.0.0" />
<engine name="cordova-android" version=">=4.0.0" />
</engines>
<repo>https://github.com/j3k0/cordova-plugin-purchase.git</repo>
<issue>https://github.com/j3k0/cordova-plugin-purchase/issues</issue>
<license>MIT</license>
<keywords>cordova,phonegap,purchase,storekit,ios,android,play,appstore,windows</keywords>
<!-- ios -->
<platform name="ios">
<js-module src="www/store-ios.js" name="InAppPurchase">
<clobbers target="store" />
</js-module>
<!-- Cordova 2.2 -->
<plugins-plist key="InAppPurchase" string="InAppPurchase" />
<!-- Cordova 2.5+ -->
<config-file target="config.xml" parent="/*">
<feature name="InAppPurchase">
<param name="ios-package" value="InAppPurchase" />
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/InAppPurchase.h" />
<source-file src="src/ios/InAppPurchase.m" />
<header-file src="src/ios/SKProduct+LocalizedPrice.h" />
<source-file src="src/ios/SKProduct+LocalizedPrice.m" />
<header-file src="src/ios/FileUtility.h" />
<source-file src="src/ios/FileUtility.m" />
<framework src="StoreKit.framework" />
</platform>
<!-- android -->
<platform name="android">
<preference name="BILLING_KEY" />
<js-module src="www/store-android.js" name="InAppBillingPlugin">
<clobbers target="store" />
</js-module>
<config-file target="AndroidManifest.xml" parent="/*">
<!-- In-App Billing Permission -->
<uses-permission android:name="com.android.vending.BILLING" />
</config-file>
<!-- Different version of cordova-android have their resources in different places.
Let's try to have them all setup.
First we need to make sure the required directories exists. This is what the
pre-install hook does -->
<hook type="before_plugin_install" src="scripts/androidBeforeInstall.js" />
<config-file target="*/billing_key_param.xml" parent="/*">
<string name="billing_key_param">$BILLING_KEY</string>
</config-file>
<!-- Cordova >= 3.0.0 -->
<config-file target="res/xml/config.xml" parent="/*">
<feature name="InAppBillingPlugin">
<param
name="android-package"
value="com.smartmobilesoftware.inappbilling.InAppBillingPlugin"
/>
</feature>
</config-file>
<!-- In-app Billing Library -->
<source-file src="src/android/com/android/vending/billing/IInAppBillingService.aidl" target-dir="src/com/android/vending/billing" />
<source-file src="src/android/com/android/vending/billing/IInAppBillingService.aidl" target-dir="app/src/main/aidl/com/android/vending/billing" />
<!-- cordova plugin src files -->
<source-file src="src/android/com/smartmobilesoftware/inappbilling/InAppBillingPlugin.java" target-dir="src/com/smartmobilesoftware/inappbilling" />
<source-file src="src/android/com/smartmobilesoftware/util/Base64.java" target-dir="src/com/smartmobilesoftware/util" />
<source-file src="src/android/com/smartmobilesoftware/util/Base64DecoderException.java" target-dir="src/com/smartmobilesoftware/util" />
<source-file src="src/android/com/smartmobilesoftware/util/IabException.java" target-dir="src/com/smartmobilesoftware/util" />
<source-file src="src/android/com/smartmobilesoftware/util/IabHelper.java" target-dir="src/com/smartmobilesoftware/util" />
<source-file src="src/android/com/smartmobilesoftware/util/IabResult.java" target-dir="src/com/smartmobilesoftware/util" />
<source-file src="src/android/com/smartmobilesoftware/util/Inventory.java" target-dir="src/com/smartmobilesoftware/util" />
<source-file src="src/android/com/smartmobilesoftware/util/Purchase.java" target-dir="src/com/smartmobilesoftware/util" />
<source-file src="src/android/com/smartmobilesoftware/util/Security.java" target-dir="src/com/smartmobilesoftware/util" />
<source-file src="src/android/com/smartmobilesoftware/util/SkuDetails.java" target-dir="src/com/smartmobilesoftware/util" />
</platform>
<!-- windows -->
<platform name="windows">
<js-module src="www/store-windows.js" name="InAppPurchase">
<clobbers target="store" />
</js-module>
<js-module src="src/windows/InAppPurchaseProxy.js" name="InAppPurchaseProxy">
<merges target="" />
</js-module>
</platform>
<!--
vim: ts=4:sw=4:et
-->
</plugin>