@captureid/capacitor-cidprint 5.0.4 → 5.0.5

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.
File without changes
@@ -1,2 +1,2 @@
1
- #Thu Aug 19 22:52:09 CEST 2021
2
- gradle.version=5.6.4
1
+ #Sun Nov 26 15:43:37 CET 2023
2
+ gradle.version=8.0.2
@@ -64,14 +64,27 @@ dependencies {
64
64
  implementation 'app.captureid:supportv1:1.0.1'
65
65
  }
66
66
 
67
+ def findNodesFolder(String searchpath, String pattern) {
68
+ def result = []
69
+ def f = file(searchpath)
70
+ f.&eachDir { File path -> if ( path.name ==~ pattern ) {
71
+ result << path
72
+ }}
73
+ if(result == []) result = findNodeFolder(searchpath + "/..", pattern)
74
+ return result as String[]
75
+ }
76
+
67
77
  tasks.configure {
68
78
  doFirst {
69
79
  project
70
80
  .parent
71
81
  .allprojects ({
72
82
  getRepositories()
73
- .mavenLocal({mavenRepository ->
74
- mavenRepository.setUrl("$rootDir/../node_modules/@captureid/capacitor-cidprint/android")
83
+ .mavenLocal({mavenRepository -> {
84
+ def nodesDir = findNodesFolder("$rootDir", 'node_modules').getAt(0)
85
+ mavenRepository.setUrl("$nodesDir/@captureid/capacitor-cidprint/android")
86
+ // mavenRepository.setUrl("$rootDir/../node_modules/@captureid/capacitor-cidprint/android")
87
+ }
75
88
  })
76
89
  })
77
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/capacitor-cidprint",
3
- "version": "5.0.4",
3
+ "version": "5.0.5",
4
4
  "description": "CaptureID Printer Plugin",
5
5
  "main": "dist/plugin.js",
6
6
  "module": "dist/esm/index.js",