@eohjsc/react-native-smart-city 0.6.2-rc6 → 0.6.2-rc8

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,11 +10,10 @@
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
- apply plugin: 'com.android.library'
14
- apply plugin: 'maven-publish'
13
+
15
14
 
16
15
  def DEFAULT_COMPILE_SDK_VERSION = 34
17
- def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3'
16
+ def DEFAULT_BUILD_TOOLS_VERSION = '30.0.2'
18
17
  def DEFAULT_MIN_SDK_VERSION = 24
19
18
  def DEFAULT_TARGET_SDK_VERSION = 34
20
19
 
@@ -22,9 +21,8 @@ def safeExtGet(prop, fallback) {
22
21
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
23
22
  }
24
23
 
25
- configurations {
26
- compileClasspath
27
- }
24
+ apply plugin: 'com.android.library'
25
+ apply plugin: 'maven-publish'
28
26
 
29
27
  buildscript {
30
28
  // The Android Gradle plugin is only required when opening the android folder stand-alone.
@@ -42,6 +40,9 @@ buildscript {
42
40
  }
43
41
  }
44
42
 
43
+ apply plugin: 'com.android.library'
44
+ apply plugin: 'maven-publish'
45
+
45
46
  android {
46
47
  compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
47
48
  buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
@@ -104,20 +105,6 @@ def configureReactNativePom(def pom) {
104
105
  }
105
106
  }
106
107
 
107
- publishing {
108
- publications {
109
- mavenJava(MavenPublication) {
110
- from components.java
111
- configureReactNativePom(pom)
112
- }
113
- }
114
- repositories {
115
- maven {
116
- url = uri("file://${projectDir}/../android/maven")
117
- }
118
- }
119
- }
120
-
121
108
  afterEvaluate { project ->
122
109
  // some Gradle build hooks ref:
123
110
  // https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
@@ -152,4 +139,13 @@ afterEvaluate { project ->
152
139
  archives androidSourcesJar
153
140
  archives androidJavadocJar
154
141
  }
142
+
143
+ task installArchives(type: Upload) {
144
+ configuration = configurations.archives
145
+ repositories.mavenDeployer {
146
+ // Deploy to react-native-event-bridge/maven, ready to publish to npm
147
+ repository url: "file://${projectDir}/../android/maven"
148
+ configureReactNativePom pom
149
+ }
150
+ }
155
151
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eohjsc/react-native-smart-city",
3
3
  "title": "React Native Smart Home",
4
- "version": "0.6.2-rc6",
4
+ "version": "0.6.2-rc8",
5
5
  "description": "TODO",
6
6
  "main": "index.js",
7
7
  "files": [