react-native-iap 14.2.3 → 14.3.0
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 +2 -6
- package/android/build.gradle +4 -5
- package/android/src/main/java/com/margelo/nitro/iap/HybridRnIap.kt +327 -547
- package/ios/HybridRnIap.swift +16 -0
- package/lib/module/index.js +43 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/plugin/src/withIAP.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +15 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/specs/RnIap.nitro.d.ts +17 -0
- package/lib/typescript/src/specs/RnIap.nitro.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JHybridRnIapSpec.cpp +35 -0
- package/nitrogen/generated/android/c++/JHybridRnIapSpec.hpp +2 -0
- package/nitrogen/generated/android/c++/JNitroDeepLinkOptionsAndroid.hpp +58 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/HybridRnIapSpec.kt +8 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/iap/NitroDeepLinkOptionsAndroid.kt +32 -0
- package/nitrogen/generated/ios/NitroIap-Swift-Cxx-Umbrella.hpp +3 -0
- package/nitrogen/generated/ios/c++/HybridRnIapSpecSwift.hpp +19 -0
- package/nitrogen/generated/ios/swift/HybridRnIapSpec.swift +2 -0
- package/nitrogen/generated/ios/swift/HybridRnIapSpec_cxx.swift +38 -0
- package/nitrogen/generated/ios/swift/NitroDeepLinkOptionsAndroid.swift +84 -0
- package/nitrogen/generated/shared/c++/HybridRnIapSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridRnIapSpec.hpp +5 -0
- package/nitrogen/generated/shared/c++/NitroDeepLinkOptionsAndroid.hpp +72 -0
- package/package.json +1 -1
- package/plugin/build/withIAP.js +21 -18
- package/plugin/src/withIAP.ts +31 -23
- package/src/index.ts +48 -0
- package/src/specs/RnIap.nitro.ts +22 -0
package/README.md
CHANGED
|
@@ -90,15 +90,11 @@ Before installing React Native IAP, make sure you have:
|
|
|
90
90
|
|
|
91
91
|
#### Android Configuration
|
|
92
92
|
|
|
93
|
-
Add the
|
|
93
|
+
Add the OpenIAP Google library to your `android/app/build.gradle` dependencies:
|
|
94
94
|
|
|
95
95
|
```gradle
|
|
96
96
|
dependencies {
|
|
97
|
-
|
|
98
|
-
implementation "com.android.billingclient:billing-ktx:8.0.0"
|
|
99
|
-
|
|
100
|
-
// Google Play Services
|
|
101
|
-
implementation "com.google.android.gms:play-services-base:18.1.0"
|
|
97
|
+
implementation "io.github.hyochan.openiap:openiap-google:1.1.0"
|
|
102
98
|
}
|
|
103
99
|
```
|
|
104
100
|
|
package/android/build.gradle
CHANGED
|
@@ -124,7 +124,6 @@ android {
|
|
|
124
124
|
// Configure Kotlin compiler to match Java compatibility
|
|
125
125
|
kotlinOptions {
|
|
126
126
|
jvmTarget = "17"
|
|
127
|
-
freeCompilerArgs += ["-Xskip-metadata-version-check"]
|
|
128
127
|
}
|
|
129
128
|
|
|
130
129
|
lintOptions {
|
|
@@ -151,14 +150,14 @@ dependencies {
|
|
|
151
150
|
implementation project(":react-native-nitro-modules")
|
|
152
151
|
}
|
|
153
152
|
|
|
154
|
-
// Google Play Billing Library
|
|
155
|
-
implementation 'com.android.billingclient:billing-ktx:8.0.0'
|
|
156
|
-
|
|
157
153
|
// Google Play Services
|
|
158
154
|
implementation 'com.google.android.gms:play-services-base:18.5.0'
|
|
159
155
|
|
|
160
156
|
// Kotlin coroutines
|
|
161
|
-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.
|
|
157
|
+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0'
|
|
158
|
+
|
|
159
|
+
// OpenIAP Google (v1.1.0)
|
|
160
|
+
implementation 'io.github.hyochan.openiap:openiap-google:1.1.0'
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
configurations.all {
|