@scrumble-nl/react-native-honeywell-scanner 1.1.8 → 1.1.10

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.
@@ -10,8 +10,18 @@
10
10
  // original location:
11
11
  // - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle
12
12
 
13
+ def DEFAULT_COMPILE_SDK_VERSION = 30
14
+ def DEFAULT_BUILD_TOOLS_VERSION = "30.0.2"
15
+ def DEFAULT_MIN_SDK_VERSION = 21
16
+ def DEFAULT_TARGET_SDK_VERSION = 30
17
+ def DEFAULT_NDK_VERSION = "21.4.7075529"
18
+
19
+ def safeExtGet(prop, fallback) {
20
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
21
+ }
22
+
13
23
  apply plugin: 'com.android.library'
14
- apply plugin: 'maven-publish'
24
+ apply plugin: 'maven'
15
25
 
16
26
  buildscript {
17
27
  // The Android Gradle plugin is only required when opening the android folder stand-alone.
@@ -30,15 +40,15 @@ buildscript {
30
40
  }
31
41
 
32
42
  apply plugin: 'com.android.library'
33
- apply plugin: 'maven-publish'
43
+ apply plugin: 'maven'
34
44
 
35
45
  android {
36
- ndkVersion "21.4.7075529"
37
- compileSdkVersion 30
38
- buildToolsVersion "30.0.2"
46
+ ndkVersion safeExtGet('ndkVersion', DEFAULT_NDK_VERSION)
47
+ compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
48
+ buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
39
49
  defaultConfig {
40
- minSdkVersion 21
41
- targetSdkVersion 30
50
+ minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION)
51
+ targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
42
52
  versionCode 1
43
53
  versionName "1.0"
44
54
  }
@@ -60,8 +70,6 @@ repositories {
60
70
  }
61
71
  google()
62
72
  jcenter()
63
- maven { url 'https://jitpack.io' }
64
- maven { url 'https://maven.google.com' }
65
73
  }
66
74
 
67
75
  dependencies {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scrumble-nl/react-native-honeywell-scanner",
3
3
  "title": "React Native Honeywell Scanner",
4
- "version": "1.1.8",
4
+ "version": "1.1.10",
5
5
  "description": "Bridge to use the Honeywell scanner",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",