react-native-roxit-code-scanner 1.0.4 → 1.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.
@@ -1,13 +1,13 @@
1
- buildscript {
2
- repositories {
3
- google()
4
- mavenCentral()
5
- }
6
-
7
- dependencies {
8
- classpath 'com.android.tools.build:gradle:3.5.3'
9
- }
10
- }
1
+ //buildscript {
2
+ // repositories {
3
+ // google()
4
+ // mavenCentral()
5
+ // }
6
+ //
7
+ // dependencies {
8
+ // classpath 'com.android.tools.build:gradle:3.5.3'
9
+ // }
10
+ //}
11
11
 
12
12
  def isNewArchitectureEnabled() {
13
13
  return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
@@ -52,75 +52,75 @@ android {
52
52
 
53
53
  }
54
54
 
55
- repositories {
56
- mavenCentral()
57
- google()
58
-
59
- def found = false
60
- def defaultDir = null
61
- def androidSourcesName = 'React Native sources'
62
-
63
- if (rootProject.ext.has('reactNativeAndroidRoot')) {
64
- defaultDir = rootProject.ext.get('reactNativeAndroidRoot')
65
- } else {
66
- defaultDir = new File(
67
- projectDir,
68
- '/../../../node_modules/react-native/android'
69
- )
70
- }
71
-
72
- if (defaultDir.exists()) {
73
- maven {
74
- url defaultDir.toString()
75
- name androidSourcesName
76
- }
77
-
78
- logger.info(":${project.name}:reactNativeAndroidRoot ${defaultDir.canonicalPath}")
79
- found = true
80
- } else {
81
- def parentDir = rootProject.projectDir
82
-
83
- 1.upto(5, {
84
- if (found) return true
85
- parentDir = parentDir.parentFile
86
-
87
- def androidSourcesDir = new File(
88
- parentDir,
89
- 'node_modules/react-native'
90
- )
91
-
92
- def androidPrebuiltBinaryDir = new File(
93
- parentDir,
94
- 'node_modules/react-native/android'
95
- )
96
-
97
- if (androidPrebuiltBinaryDir.exists()) {
98
- maven {
99
- url androidPrebuiltBinaryDir.toString()
100
- name androidSourcesName
101
- }
102
-
103
- logger.info(":${project.name}:reactNativeAndroidRoot ${androidPrebuiltBinaryDir.canonicalPath}")
104
- found = true
105
- } else if (androidSourcesDir.exists()) {
106
- maven {
107
- url androidSourcesDir.toString()
108
- name androidSourcesName
109
- }
110
-
111
- logger.info(":${project.name}:reactNativeAndroidRoot ${androidSourcesDir.canonicalPath}")
112
- found = true
113
- }
114
- })
115
- }
116
-
117
- if (!found) {
118
- throw new GradleException(
119
- "${project.name}: unable to locate React Native android sources. " +
120
- "Ensure you have you installed React Native as a dependency in your project and try again."
121
- )
122
- }
123
- }
55
+ //repositories {
56
+ // mavenCentral()
57
+ // google()
58
+ //
59
+ // def found = false
60
+ // def defaultDir = null
61
+ // def androidSourcesName = 'React Native sources'
62
+ //
63
+ // if (rootProject.ext.has('reactNativeAndroidRoot')) {
64
+ // defaultDir = rootProject.ext.get('reactNativeAndroidRoot')
65
+ // } else {
66
+ // defaultDir = new File(
67
+ // projectDir,
68
+ // '/../../../node_modules/react-native/android'
69
+ // )
70
+ // }
71
+ //
72
+ // if (defaultDir.exists()) {
73
+ // maven {
74
+ // url defaultDir.toString()
75
+ // name androidSourcesName
76
+ // }
77
+ //
78
+ // logger.info(":${project.name}:reactNativeAndroidRoot ${defaultDir.canonicalPath}")
79
+ // found = true
80
+ // } else {
81
+ // def parentDir = rootProject.projectDir
82
+ //
83
+ // 1.upto(5, {
84
+ // if (found) return true
85
+ // parentDir = parentDir.parentFile
86
+ //
87
+ // def androidSourcesDir = new File(
88
+ // parentDir,
89
+ // 'node_modules/react-native'
90
+ // )
91
+ //
92
+ // def androidPrebuiltBinaryDir = new File(
93
+ // parentDir,
94
+ // 'node_modules/react-native/android'
95
+ // )
96
+ //
97
+ // if (androidPrebuiltBinaryDir.exists()) {
98
+ // maven {
99
+ // url androidPrebuiltBinaryDir.toString()
100
+ // name androidSourcesName
101
+ // }
102
+ //
103
+ // logger.info(":${project.name}:reactNativeAndroidRoot ${androidPrebuiltBinaryDir.canonicalPath}")
104
+ // found = true
105
+ // } else if (androidSourcesDir.exists()) {
106
+ // maven {
107
+ // url androidSourcesDir.toString()
108
+ // name androidSourcesName
109
+ // }
110
+ //
111
+ // logger.info(":${project.name}:reactNativeAndroidRoot ${androidSourcesDir.canonicalPath}")
112
+ // found = true
113
+ // }
114
+ // })
115
+ // }
116
+ //
117
+ // if (!found) {
118
+ // throw new GradleException(
119
+ // "${project.name}: unable to locate React Native android sources. " +
120
+ // "Ensure you have you installed React Native as a dependency in your project and try again."
121
+ // )
122
+ // }
123
+ //}
124
124
 
125
125
 
126
126
  dependencies {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-roxit-code-scanner",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Broadcast code scanner receiver",
5
5
  "main": "index.js",
6
6
  "scripts": {