You've already forked cordova-plugin-purchase
mirror of
https://github.com/encounter/cordova-plugin-purchase.git
synced 2026-03-30 11:04:16 -07:00
134 lines
6.0 KiB
XML
134 lines
6.0 KiB
XML
<?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>
|