From 03dca0c4edaa75a95346bb5569b07e342257f291 Mon Sep 17 00:00:00 2001 From: pelya Date: Thu, 31 Dec 2020 23:03:29 +0200 Subject: [PATCH] SDL: updated Gradle project files to use Android SDK 30 --- project/AndroidManifestTemplate.xml | 2 +- project/app/build-template.gradle | 20 ++++++++++++------- project/build.gradle | 5 ++--- project/gradle.properties | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 4 ++-- 5 files changed, 19 insertions(+), 14 deletions(-) diff --git a/project/AndroidManifestTemplate.xml b/project/AndroidManifestTemplate.xml index d305f4440..488e42fd5 100644 --- a/project/AndroidManifestTemplate.xml +++ b/project/AndroidManifestTemplate.xml @@ -43,7 +43,7 @@ - + diff --git a/project/app/build-template.gradle b/project/app/build-template.gradle index cc9e820a9..e4499eb1c 100644 --- a/project/app/build-template.gradle +++ b/project/app/build-template.gradle @@ -1,13 +1,15 @@ -apply plugin: 'com.android.application' +plugins { + id 'com.android.application' +} android { - compileSdkVersion 29 - buildToolsVersion "30.0.0" + compileSdkVersion 30 + buildToolsVersion "30.0.3" defaultConfig { applicationId "net.olofson.ballfield" - minSdkVersion 16 // Must match version numbers in project/AndroidManifestTemplate.xml - targetSdkVersion 29 + minSdkVersion 16 + targetSdkVersion 30 } buildTypes { @@ -16,11 +18,15 @@ android { proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), '../proguard-local.cfg', '../proguard.cfg' } } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } - dependencies { compile 'com.google.android.gms:play-services-games:19.0.0' } // ==GOOGLEPLAYGAMESERVICES== + dependencies { compile 'com.google.android.gms:play-services-games:21.0.0' } // ==GOOGLEPLAYGAMESERVICES== dependencies { compile 'com.google.android.gms:play-services-drive:17.0.0' } // ==GOOGLEPLAYGAMESERVICES== } dependencies { - implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.appcompat:appcompat:1.2.0' } diff --git a/project/build.gradle b/project/build.gradle index 4758c963b..4d24be2c6 100644 --- a/project/build.gradle +++ b/project/build.gradle @@ -1,12 +1,11 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. - buildscript { repositories { google() jcenter() } dependencies { - classpath "com.android.tools.build:gradle:4.0.0" + classpath "com.android.tools.build:gradle:4.1.1" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -22,4 +21,4 @@ allprojects { task clean(type: Delete) { delete rootProject.buildDir -} +} \ No newline at end of file diff --git a/project/gradle.properties b/project/gradle.properties index c52ac9b79..52f5917cb 100644 --- a/project/gradle.properties +++ b/project/gradle.properties @@ -6,7 +6,7 @@ # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects diff --git a/project/gradle/wrapper/gradle-wrapper.properties b/project/gradle/wrapper/gradle-wrapper.properties index fa0e18631..7374117da 100644 --- a/project/gradle/wrapper/gradle-wrapper.properties +++ b/project/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Tue Jul 07 20:59:38 EEST 2020 +#Thu Dec 31 22:38:03 EET 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip