react-native-scanbot-barcode-scanner-sdk 3.2.0-beta5 → 3.2.0
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/Libraries.txt +1 -1
- package/android/build.gradle +26 -111
- package/package.json +1 -1
package/Libraries.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Open Source libraries used in the Scanbot Barcode SDK for React Native version 3.
|
|
1
|
+
Open Source libraries used in the Scanbot Barcode SDK for React Native version 3.2.0
|
|
2
2
|
|
|
3
3
|
------------------------------------------------------------------------------------------------------------------------
|
|
4
4
|
|
package/android/build.gradle
CHANGED
|
@@ -1,76 +1,66 @@
|
|
|
1
1
|
// android/build.gradle
|
|
2
2
|
|
|
3
|
-
// based on:
|
|
4
|
-
//
|
|
5
|
-
// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle
|
|
6
|
-
// original location:
|
|
7
|
-
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/build.gradle
|
|
8
|
-
//
|
|
9
|
-
// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/app/build.gradle
|
|
10
|
-
// original location:
|
|
11
|
-
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle
|
|
12
|
-
|
|
13
3
|
def DEFAULT_COMPILE_SDK_VERSION = 29
|
|
14
|
-
def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3'
|
|
15
4
|
def DEFAULT_MIN_SDK_VERSION = 21
|
|
16
5
|
def DEFAULT_TARGET_SDK_VERSION = 29
|
|
17
6
|
|
|
18
7
|
def sdkVersion = '3.2.1'
|
|
19
8
|
|
|
20
|
-
def safeExtGet(prop, fallback) {
|
|
21
|
-
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
apply plugin: 'com.android.library'
|
|
25
|
-
apply plugin: 'maven'
|
|
26
|
-
|
|
27
9
|
buildscript {
|
|
28
|
-
// The Android Gradle plugin is only required when opening the android folder stand-alone.
|
|
29
|
-
// This avoids unnecessary downloads and potential conflicts when the library is included as a
|
|
30
|
-
// module dependency in an application project.
|
|
31
|
-
// ref: https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependencies
|
|
32
10
|
if (project == rootProject) {
|
|
33
11
|
repositories {
|
|
34
12
|
google()
|
|
13
|
+
mavenCentral()
|
|
35
14
|
jcenter()
|
|
36
15
|
}
|
|
37
16
|
dependencies {
|
|
38
|
-
classpath 'com.android.tools.build:gradle:3.
|
|
17
|
+
classpath 'com.android.tools.build:gradle:3.5.3'
|
|
39
18
|
}
|
|
40
19
|
}
|
|
41
20
|
}
|
|
42
21
|
|
|
43
22
|
apply plugin: 'com.android.library'
|
|
44
|
-
|
|
23
|
+
|
|
24
|
+
def safeExtGet(prop, fallback) {
|
|
25
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
26
|
+
}
|
|
45
27
|
|
|
46
28
|
android {
|
|
47
|
-
compileSdkVersion safeExtGet('
|
|
48
|
-
buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
|
|
29
|
+
compileSdkVersion safeExtGet('ScanbotBarcodeScannerSdk_compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
|
|
49
30
|
defaultConfig {
|
|
50
|
-
minSdkVersion safeExtGet('
|
|
51
|
-
targetSdkVersion safeExtGet('
|
|
31
|
+
minSdkVersion safeExtGet('ScanbotBarcodeScannerSdk_minSdkVersion', DEFAULT_MIN_SDK_VERSION)
|
|
32
|
+
targetSdkVersion safeExtGet('ScanbotBarcodeScannerSdk_targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
|
|
52
33
|
versionCode 1
|
|
53
34
|
versionName "1.0"
|
|
54
35
|
}
|
|
36
|
+
|
|
37
|
+
buildTypes {
|
|
38
|
+
release {
|
|
39
|
+
minifyEnabled false
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
55
43
|
lintOptions {
|
|
56
|
-
|
|
44
|
+
disable 'GradleCompatible'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
compileOptions {
|
|
48
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
49
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
57
50
|
}
|
|
58
51
|
}
|
|
59
52
|
|
|
60
53
|
repositories {
|
|
61
|
-
// ref: https://www.baeldung.com/maven-local-repository
|
|
62
54
|
mavenLocal()
|
|
63
55
|
maven {
|
|
64
56
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
65
|
-
url
|
|
66
|
-
}
|
|
67
|
-
maven {
|
|
68
|
-
// Android JSC is installed from npm
|
|
69
|
-
url "$rootDir/../node_modules/jsc-android/dist"
|
|
57
|
+
url("$rootDir/../node_modules/react-native/android")
|
|
70
58
|
}
|
|
71
59
|
google()
|
|
60
|
+
mavenCentral()
|
|
72
61
|
jcenter()
|
|
73
62
|
|
|
63
|
+
// Scanbot SDK Maven Repositories (NEXUS)
|
|
74
64
|
maven {
|
|
75
65
|
url 'https://nexus.scanbot.io/nexus/content/repositories/releases/'
|
|
76
66
|
}
|
|
@@ -90,81 +80,6 @@ dependencies {
|
|
|
90
80
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
|
|
91
81
|
implementation 'com.google.android.material:material:1.0.0'
|
|
92
82
|
|
|
93
|
-
// implementation project(':scanbot-barcode-scanner-sdk')
|
|
94
|
-
// implementation project(':scanbot-barcode-scanner-sdk-ui')
|
|
95
83
|
implementation "io.scanbot:scanbot-barcode-scanner-sdk:$sdkVersion"
|
|
96
84
|
implementation "io.scanbot:scanbot-barcode-scanner-sdk-ui:$sdkVersion"
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
def configureReactNativePom(def pom) {
|
|
100
|
-
def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text)
|
|
101
|
-
|
|
102
|
-
pom.project {
|
|
103
|
-
name packageJson.title
|
|
104
|
-
artifactId packageJson.name
|
|
105
|
-
version = packageJson.version
|
|
106
|
-
group = "com.reactlibrary"
|
|
107
|
-
description packageJson.description
|
|
108
|
-
//url packageJson.repository.baseUrl
|
|
109
|
-
|
|
110
|
-
licenses {
|
|
111
|
-
license {
|
|
112
|
-
name packageJson.license
|
|
113
|
-
//url packageJson.repository.baseUrl + '/blob/master/' + packageJson.licenseFilename
|
|
114
|
-
distribution 'repo'
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
developers {
|
|
119
|
-
developer {
|
|
120
|
-
id packageJson.author
|
|
121
|
-
name packageJson.author
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
afterEvaluate { project ->
|
|
128
|
-
// some Gradle build hooks ref:
|
|
129
|
-
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
|
|
130
|
-
task androidJavadoc(type: Javadoc) {
|
|
131
|
-
source = android.sourceSets.main.java.srcDirs
|
|
132
|
-
classpath += files(android.bootClasspath)
|
|
133
|
-
classpath += files(project.getConfigurations().getByName('compile').asList())
|
|
134
|
-
include '**/*.java'
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
138
|
-
classifier = 'javadoc'
|
|
139
|
-
from androidJavadoc.destinationDir
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
task androidSourcesJar(type: Jar) {
|
|
143
|
-
classifier = 'sources'
|
|
144
|
-
from android.sourceSets.main.java.srcDirs
|
|
145
|
-
include '**/*.java'
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
android.libraryVariants.all { variant ->
|
|
149
|
-
def name = variant.name.capitalize()
|
|
150
|
-
def javaCompileTask = variant.javaCompileProvider.get()
|
|
151
|
-
|
|
152
|
-
task "jar${name}"(type: Jar, dependsOn: javaCompileTask) {
|
|
153
|
-
from javaCompileTask.destinationDir
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
artifacts {
|
|
158
|
-
archives androidSourcesJar
|
|
159
|
-
archives androidJavadocJar
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
task installArchives(type: Upload) {
|
|
163
|
-
configuration = configurations.archives
|
|
164
|
-
repositories.mavenDeployer {
|
|
165
|
-
// Deploy to react-native-event-bridge/maven, ready to publish to npm
|
|
166
|
-
repository url: "file://${projectDir}/../android/maven"
|
|
167
|
-
configureReactNativePom pom
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
85
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-scanbot-barcode-scanner-sdk",
|
|
3
3
|
"title": "Scanbot Barcode Scanner SDK for React Native",
|
|
4
|
-
"version": "3.2.0
|
|
4
|
+
"version": "3.2.0",
|
|
5
5
|
"description": "Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|