react-native-iap 14.7.16 → 14.7.17

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.
@@ -204,3 +204,20 @@ dependencies {
204
204
  configurations.all {
205
205
  exclude group: 'com.facebook.react', module: 'react-native-safe-area-context'
206
206
  }
207
+
208
+ // Ensure our CMake tasks run after react-native-nitro-modules' CMake tasks
209
+ // to prevent race condition where libNitroModules.so is not yet built.
210
+ // See: https://github.com/hyochan/react-native-iap/issues/3163
211
+ afterEvaluate {
212
+ def nitroProject = rootProject.findProject(':react-native-nitro-modules')
213
+ if (nitroProject) {
214
+ tasks.configureEach { task ->
215
+ if (task.name.startsWith('buildCMake')) {
216
+ def nitroTask = nitroProject.tasks.findByName(task.name)
217
+ if (nitroTask) {
218
+ task.dependsOn(nitroTask)
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-iap",
3
- "version": "14.7.16",
3
+ "version": "14.7.17",
4
4
  "description": "React Native In-App Purchases module for iOS and Android using Nitro",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",