Browse Source

Android - upgrade Gradle, Android plugin and other deps.

Yao Wei Tjong 姚伟忠 5 years ago
parent
commit
cc975dbccd

+ 2 - 2
android/launcher-app/build.gradle.kts

@@ -100,8 +100,8 @@ dependencies {
     implementation(project(":android:urho3d-lib"))
     implementation(project(":android:urho3d-lib"))
     implementation(kotlin("stdlib-jdk8", embeddedKotlinVersion))
     implementation(kotlin("stdlib-jdk8", embeddedKotlinVersion))
     testImplementation("junit:junit:4.13")
     testImplementation("junit:junit:4.13")
-    androidTestImplementation("androidx.test:runner:1.2.0")
-    androidTestImplementation("androidx.test.espresso:espresso-core:3.2.0")
+    androidTestImplementation("androidx.test:runner:1.3.0")
+    androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
 }
 }
 
 
 // Ensure IDE "gradle sync" evaluate the urho3d-lib module first
 // Ensure IDE "gradle sync" evaluate the urho3d-lib module first

+ 2 - 2
android/urho3d-lib/build.gradle.kts

@@ -118,8 +118,8 @@ dependencies {
     implementation(kotlin("stdlib-jdk8", embeddedKotlinVersion))
     implementation(kotlin("stdlib-jdk8", embeddedKotlinVersion))
     implementation("com.getkeepsafe.relinker:relinker:1.4.1")
     implementation("com.getkeepsafe.relinker:relinker:1.4.1")
     testImplementation("junit:junit:4.13")
     testImplementation("junit:junit:4.13")
-    androidTestImplementation("androidx.test:runner:1.2.0")
-    androidTestImplementation("androidx.test.espresso:espresso-core:3.2.0")
+    androidTestImplementation("androidx.test:runner:1.3.0")
+    androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
 }
 }
 
 
 lateinit var docABI: String
 lateinit var docABI: String

+ 1 - 1
buildSrc/src/main/kotlin/UrhoCommon.kt

@@ -25,7 +25,7 @@ import org.gradle.plugin.use.PluginDependencySpec
 import java.io.File
 import java.io.File
 
 
 const val ndkSideBySideVersion = "21.3.6528147"
 const val ndkSideBySideVersion = "21.3.6528147"
-const val cmakeVersion = "3.17.3"
+const val cmakeVersion = "3.17.3+"
 
 
 /**
 /**
  * Apply Urho3D custom plugin for the given platform.
  * Apply Urho3D custom plugin for the given platform.

BIN
gradle/wrapper/gradle-wrapper.jar


+ 1 - 1
gradle/wrapper/gradle-wrapper.properties

@@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
 zipStorePath=wrapper/dists

+ 2 - 0
gradlew

@@ -82,6 +82,7 @@ esac
 
 
 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
 CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
 
 
+
 # Determine the Java command to use to start the JVM.
 # Determine the Java command to use to start the JVM.
 if [ -n "$JAVA_HOME" ] ; then
 if [ -n "$JAVA_HOME" ] ; then
     if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
     if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -129,6 +130,7 @@ fi
 if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
 if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
     APP_HOME=`cygpath --path --mixed "$APP_HOME"`
     APP_HOME=`cygpath --path --mixed "$APP_HOME"`
     CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
     CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+    
     JAVACMD=`cygpath --unix "$JAVACMD"`
     JAVACMD=`cygpath --unix "$JAVACMD"`
 
 
     # We build the pattern for arguments to be converted via cygpath
     # We build the pattern for arguments to be converted via cygpath

+ 4 - 0
gradlew.bat

@@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
 set APP_BASE_NAME=%~n0
 set APP_BASE_NAME=%~n0
 set APP_HOME=%DIRNAME%
 set APP_HOME=%DIRNAME%
 
 
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
 @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
 @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
 set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
 set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
 
 
@@ -81,6 +84,7 @@ set CMD_LINE_ARGS=%*
 
 
 set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
 set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
 
 
+
 @rem Execute Gradle
 @rem Execute Gradle
 "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
 "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
 
 

+ 1 - 1
settings.gradle.kts

@@ -25,7 +25,7 @@ pluginManagement {
         eachPlugin {
         eachPlugin {
             when {
             when {
                 requested.id.id.startsWith("com.android.") ->
                 requested.id.id.startsWith("com.android.") ->
-                    useModule("com.android.tools.build:gradle:4.0.0")
+                    useModule("com.android.tools.build:gradle:4.0.1")
                 requested.id.id.startsWith("org.jetbrains.kotlin.") ->
                 requested.id.id.startsWith("org.jetbrains.kotlin.") ->
                     useVersion(embeddedKotlinVersion)
                     useVersion(embeddedKotlinVersion)
                 requested.id.id == "com.jfrog.bintray" ->
                 requested.id.id == "com.jfrog.bintray" ->