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

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.
@@ -36,7 +36,7 @@ task downloadJniLibs {
36
36
  // - dir present, marker absent → Yalc/local dev (package includes JNI libs), skip
37
37
  // - dir present, marker present, version differs → re-download (public npm upgrade)
38
38
  // - dir present, marker present, version matches → already up to date, skip
39
- [jniLibs: jniLibsDir, jniLibsProving: jniLibsProvingDir].each { name, dir ->
39
+ [Zcam1Jni: jniLibsDir, Zcam1ProvingJni: jniLibsProvingDir].each { name, dir ->
40
40
  def zipName = "${name}.zip"
41
41
  def zipUrl = "${baseUrl}/${zipName}"
42
42
 
@@ -44,26 +44,26 @@ task downloadJniLibs {
44
44
  println "Downloading ${name} v${version}..."
45
45
  exec {
46
46
  commandLine "curl", "-fL", zipUrl, "-o", zipName
47
- workingDir "src/main"
47
+ workingDir ".."
48
48
  }
49
49
  exec {
50
50
  commandLine "unzip", "-q", zipName
51
- workingDir "src/main"
51
+ workingDir ".."
52
52
  }
53
- new File("${projectDir}/src/main/${zipName}").delete()
53
+ new File("${projectDir}/../${zipName}").delete()
54
54
  markerFile.text = version
55
55
  } else if (markerFile.exists() && markerFile.text.trim() != version) {
56
56
  println "Updating ${name} to v${version}..."
57
57
  dir.deleteDir()
58
58
  exec {
59
59
  commandLine "curl", "-fL", zipUrl, "-o", zipName
60
- workingDir "src/main"
60
+ workingDir ".."
61
61
  }
62
62
  exec {
63
63
  commandLine "unzip", "-q", zipName
64
- workingDir "src/main"
64
+ workingDir ".."
65
65
  }
66
- new File("${projectDir}/src/main/${zipName}").delete()
66
+ new File("${projectDir}/../${zipName}").delete()
67
67
  markerFile.text = version
68
68
  }
69
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@succinctlabs/react-native-zcam1",
3
- "version": "0.4.0-alpha.1",
3
+ "version": "0.4.0-alpha.2",
4
4
  "description": "ZCAM1 SDK",
5
5
  "main": "./lib/module/index.js",
6
6
  "codegenConfig": {