Skip to content

Commit 9762e7d

Browse files
authored
Merge pull request #1361 from NativeScript/trifonov/gradle-update
Update android gradle to 3.4.0 and gradle to 5.1.1
2 parents 0fd4727 + 3e463fa commit 9762e7d

File tree

9 files changed

+17
-16
lines changed

9 files changed

+17
-16
lines changed

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"**/*"
1111
],
1212
"gradle": {
13-
"version": "4.10.2",
14-
"android": "3.3.2"
13+
"version": "5.1.1",
14+
"android": "3.4.0"
1515
},
1616
"android_ndk_version": "19b"
1717
}

test-app/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ afterEvaluate { project ->
509509
}.artifacts.each {
510510
def jar = it.file;
511511
if (!jars.contains(jar)) {
512-
jars.push(jar)
512+
jars.add(jar)
513513
def destDir = md5(jar.path);
514514
def outputDir = new File(Paths.get(extractedDependenciesDir, destDir).normalize().toString())
515515

@@ -543,7 +543,7 @@ afterEvaluate { project ->
543543
// }
544544
}
545545
}
546-
allJars.push([file: jar, outputDir: outputDir])
546+
allJars.add([file: jar, outputDir: outputDir])
547547
}
548548
}
549549
}

test-app/build-tools/android-metadata-generator/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ buildscript {
1717
}
1818

1919
dependencies {
20-
classpath 'com.android.tools.build:gradle:3.3.2'
20+
classpath 'com.android.tools.build:gradle:3.4.0'
2121
}
2222
}
2323

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// empty file to avoid using settings.gradle file from test-app

test-app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.3.2'
10+
classpath 'com.android.tools.build:gradle:3.4.0'
1111
}
1212
}
1313

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Sep 27 11:34:03 EEST 2018
1+
#Tue Apr 30 12:10:15 EEST 2019
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

test-app/runtests.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ def getBuildArguments = { ->
2828
if (isWinOs) {
2929
arguments += ["cmd", "/c", "gradlew"]
3030
} else {
31-
arguments.push("./gradlew")
31+
arguments.add("./gradlew")
3232
}
33-
arguments.push(":app:installDebug")
33+
arguments.add(":app:installDebug")
3434
if (onlyX86) {
35-
arguments.push("-PonlyX86")
35+
arguments.add("-PonlyX86")
3636
}
3737
if (useCCache) {
38-
arguments.push("-PuseCCache")
38+
arguments.add("-PuseCCache")
3939
}
4040
return arguments
4141
}

test-app/runtime/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ android {
5454
externalNativeBuild {
5555
cmake {
5656
if (optimized) {
57-
arguments.push("-DOPTIMIZED_BUILD=true")
57+
arguments.add("-DOPTIMIZED_BUILD=true")
5858
}
5959

6060
if (optimizedWithInspector) {
61-
arguments.push("-DOPTIMIZED_WITH_INSPECTOR_BUILD=true")
61+
arguments.add("-DOPTIMIZED_WITH_INSPECTOR_BUILD=true")
6262
}
6363

6464
if (useCCache) {
65-
arguments.push("-DUSE_CCACHE=true")
65+
arguments.add("-DUSE_CCACHE=true")
6666
}
6767

6868
//https://developer.android.com/ndk/guides/cmake.html

0 commit comments

Comments
 (0)