@dariyd/react-native-document-scanner 2.0.15 → 2.0.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.
@@ -109,7 +109,8 @@ afterEvaluate { project ->
109
109
 
110
110
  task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
111
111
  archiveClassifier.set('javadoc')
112
- from androidJavadoc.destinationDir
112
+ def javadocOut = androidJavadoc.hasProperty('destinationDirectory') ? androidJavadoc.destinationDirectory : androidJavadoc.destinationDir
113
+ from javadocOut
113
114
  }
114
115
 
115
116
  task androidSourcesJar(type: Jar) {
@@ -123,7 +124,8 @@ afterEvaluate { project ->
123
124
  def javaCompileTask = variant.javaCompileProvider.get()
124
125
 
125
126
  task "jar${name}"(type: Jar, dependsOn: javaCompileTask) {
126
- from javaCompileTask.destinationDir
127
+ def classesOut = javaCompileTask.hasProperty('destinationDirectory') ? javaCompileTask.destinationDirectory : javaCompileTask.destinationDir
128
+ from classesOut
127
129
  }
128
130
  }
129
131
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dariyd/react-native-document-scanner",
3
3
  "title": "React Native Document Scanner",
4
- "version": "2.0.15",
4
+ "version": "2.0.17",
5
5
  "description": "React Native document scanner using VisionKit (iOS) and ML Kit (Android) with support for both old and new architecture",
6
6
  "main": "index.js",
7
7
  "types": "index.d.ts",