@succinctlabs/react-native-zcam1 0.4.0-alpha.2 → 0.4.0-alpha.3

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.
@@ -74,6 +74,23 @@ afterEvaluate {
74
74
  preBuild.dependsOn downloadJniLibs
75
75
  }
76
76
 
77
+ // With --configure-on-demand (used by Expo), the app's CMake configuration task can start
78
+ // before the library's generateCodegenArtifactsFromSchema task is registered, breaking the
79
+ // dependency chain that the React Native Gradle Plugin is supposed to set up automatically.
80
+ // This explicitly wires the dependency after all projects are evaluated.
81
+ if (isNewArchitectureEnabled()) {
82
+ gradle.projectsEvaluated {
83
+ def codegenTask = tasks.findByName('generateCodegenArtifactsFromSchema')
84
+ if (codegenTask) {
85
+ rootProject.subprojects { subproject ->
86
+ subproject.tasks.matching { it.name.startsWith('configureCMake') }.configureEach { cmakeTask ->
87
+ cmakeTask.dependsOn(codegenTask)
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+
77
94
  def reactNativeArchitectures() {
78
95
  def value = rootProject.getProperties().get("reactNativeArchitectures")
79
96
  return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@succinctlabs/react-native-zcam1",
3
- "version": "0.4.0-alpha.2",
3
+ "version": "0.4.0-alpha.3",
4
4
  "description": "ZCAM1 SDK",
5
5
  "main": "./lib/module/index.js",
6
6
  "codegenConfig": {