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.
- package/android/build.gradle +17 -0
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -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