react-native-iap 12.16.0 → 12.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -54,13 +54,13 @@ Follow [this guide](./IapExample/README.md) to get the example running.
|
|
|
54
54
|
|
|
55
55
|
### <p style="color: gold;">Gold Tier</p>
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
<a href="https://www.courier.com/?utm_source=react-native-iap&utm_campaign=osssponsors">
|
|
58
|
+
<img width="420" alt="courier_dot_com" src="https://github.com/user-attachments/assets/319d8966-6839-498d-8ead-ce8cc72c3bca" />
|
|
59
|
+
</a>
|
|
60
60
|
|
|
61
61
|
## Past Sponsors
|
|
62
62
|
|
|
63
|
-
<a href="https://www.revenuecat.com"><img src="https://github.com/hyochan/react-native-iap/assets/27461460/1e387a47-afe0-4b85-ad78-1064ca6623fa" width="200"/></a>
|
|
63
|
+
<a href="https://namiml.com"><img src="https://github.com/hyochan/react-native-iap/assets/27461460/89d71f61-bb73-400a-83bd-fe0f96eb726e" width="280"/></a> <a href="https://www.revenuecat.com"><img src="https://github.com/hyochan/react-native-iap/assets/27461460/1e387a47-afe0-4b85-ad78-1064ca6623fa" width="200"/></a>
|
|
64
64
|
|
|
65
65
|
Support this project by becoming a sponsor. Your logo will show up here with
|
|
66
66
|
a link to your website. [Buy me a coffee](https://www.buymeacoffee.com/hyochan) or
|
|
@@ -71,7 +71,7 @@ a link to your website. [Buy me a coffee](https://www.buymeacoffee.com/hyochan)
|
|
|
71
71
|
|
|
72
72
|
Please take a look at [iap.dev/consulting](https://iap.dev/consulting). At iap.dev, we offer IAP consulting services for all platforms. Please [Contact Us](https://console.iap.dev/contact-us).
|
|
73
73
|
|
|
74
|
-
Note: This service is not affiliated with hyochan. It was created by [andresesfm](https://github.com/andresesfm) who has contributed and provided support for this project
|
|
74
|
+
Note: This service is not affiliated with [hyochan](https://github.com/hyochan). It was created by [andresesfm](https://github.com/andresesfm) who has contributed and provided support for this project
|
|
75
75
|
|
|
76
76
|
### Backers
|
|
77
77
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ConfigPlugin } from 'expo/config-plugins';
|
|
2
2
|
type PaymentProvider = 'Amazon AppStore' | 'both' | 'Play Store';
|
|
3
3
|
export declare const modifyAppBuildGradle: (buildGradle: string, paymentProvider: PaymentProvider) => string;
|
|
4
|
-
export declare const modifyProjectBuildGradle: (buildGradle: string) => string;
|
|
5
4
|
interface Props {
|
|
6
5
|
paymentProvider?: PaymentProvider;
|
|
7
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withIAP.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withIAP.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"withIAP.d.ts","sourceRoot":"","sources":["../../../../plugin/src/withIAP.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAsB,MAAM,qBAAqB,CAAC;AAItE,KAAK,eAAe,GAAG,iBAAiB,GAAG,MAAM,GAAG,YAAY,CAAC;AAuCjE,eAAO,MAAM,oBAAoB,gBAClB,MAAM,mBACF,eAAe,WAwBjC,CAAC;AAkBF,UAAU,KAAK;IACb,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;;AA0BD,wBAAmE"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-iap",
|
|
3
|
-
"version": "12.16.
|
|
3
|
+
"version": "12.16.1",
|
|
4
4
|
"description": "React Native In App Purchase Module.",
|
|
5
5
|
"repository": "https://github.com/hyochan/react-native-iap",
|
|
6
|
-
"author": "hyochan <
|
|
6
|
+
"author": "hyochan <hyo@hyo.dev> (https://github.com/hyochan)",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://github.com/hyochan/react-native-iap/issues"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ConfigPlugin } from 'expo/config-plugins';
|
|
2
2
|
type PaymentProvider = 'Amazon AppStore' | 'both' | 'Play Store';
|
|
3
3
|
export declare const modifyAppBuildGradle: (buildGradle: string, paymentProvider: PaymentProvider) => string;
|
|
4
|
-
export declare const modifyProjectBuildGradle: (buildGradle: string) => string;
|
|
5
4
|
interface Props {
|
|
6
5
|
paymentProvider?: PaymentProvider;
|
|
7
6
|
}
|
package/plugin/build/withIAP.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.modifyAppBuildGradle = void 0;
|
|
4
4
|
const config_plugins_1 = require("expo/config-plugins");
|
|
5
5
|
const config_plugins_2 = require("expo/config-plugins");
|
|
6
6
|
const pkg = require('../../package.json');
|
|
@@ -45,25 +45,12 @@ const modifyAppBuildGradle = (buildGradle, paymentProvider) => {
|
|
|
45
45
|
return addToBuildGradle(missingDimensionStrategy, 'defaultConfig', 1, buildGradle);
|
|
46
46
|
};
|
|
47
47
|
exports.modifyAppBuildGradle = modifyAppBuildGradle;
|
|
48
|
-
const modifyProjectBuildGradle = (buildGradle) => {
|
|
49
|
-
const supportLibVersion = `supportLibVersion = "28.0.0"`;
|
|
50
|
-
if (buildGradle.includes(supportLibVersion)) {
|
|
51
|
-
return buildGradle;
|
|
52
|
-
}
|
|
53
|
-
return addToBuildGradle(supportLibVersion, 'ext', 1, buildGradle);
|
|
54
|
-
};
|
|
55
|
-
exports.modifyProjectBuildGradle = modifyProjectBuildGradle;
|
|
56
48
|
const withIAPAndroid = (config, { paymentProvider }) => {
|
|
57
49
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
58
50
|
config = (0, config_plugins_1.withAppBuildGradle)(config, (config) => {
|
|
59
51
|
config.modResults.contents = (0, exports.modifyAppBuildGradle)(config.modResults.contents, paymentProvider);
|
|
60
52
|
return config;
|
|
61
53
|
});
|
|
62
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
63
|
-
config = (0, config_plugins_1.withProjectBuildGradle)(config, (config) => {
|
|
64
|
-
config.modResults.contents = (0, exports.modifyProjectBuildGradle)(config.modResults.contents);
|
|
65
|
-
return config;
|
|
66
|
-
});
|
|
67
54
|
return config;
|
|
68
55
|
};
|
|
69
56
|
const withIAP = (config, props) => {
|