From 59a38be215cf1ff9b2a7e87de623f9c6d1673e09 Mon Sep 17 00:00:00 2001 From: Patrick Martin Date: Wed, 1 Jun 2022 16:44:41 -0600 Subject: [PATCH] Updated the Android build files The Android Gradle Plugin has been updated from 3.4.0 to 7.2.1 -- https://developer.android.com/studio/releases/gradle-plugin#7-2-0 jcenter() has been updated to mavenCentral() -- https://developer.android.com/studio/build/jcenter-migration The gradle wrapper has been upgraded to 7.3.3 (required for the Android Gradle Plugin) -- https://developer.android.com/studio/releases/gradle-plugin#updating-gradle The default ABI has been changed from armeabi-v7a to arm64-v8a since it's mandatory for new games -- https://developer.android.com/games/optimize/64-bit --- templates/cpp-template-default/proj.android/build.gradle | 6 +++--- .../cpp-template-default/proj.android/gradle.properties | 2 +- .../proj.android/gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/cpp-template-default/proj.android/build.gradle b/templates/cpp-template-default/proj.android/build.gradle index 63697d83ac6c..1a05895fa8f7 100644 --- a/templates/cpp-template-default/proj.android/build.gradle +++ b/templates/cpp-template-default/proj.android/build.gradle @@ -3,11 +3,11 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:3.4.0' + classpath 'com.android.tools.build:gradle:7.2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -17,7 +17,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/templates/cpp-template-default/proj.android/gradle.properties b/templates/cpp-template-default/proj.android/gradle.properties index ebbe92060677..bb1bdd6f6614 100644 --- a/templates/cpp-template-default/proj.android/gradle.properties +++ b/templates/cpp-template-default/proj.android/gradle.properties @@ -31,7 +31,7 @@ PROP_TARGET_SDK_VERSION=28 # Available architextures (armeabi-v7a | arm64-v8a | x86) # To build for multiple architexture, use the `:` between them # Example - PROP_APP_ABI=armeabi-v7a:arm64-v8a:x86 -PROP_APP_ABI=armeabi-v7a +PROP_APP_ABI=arm64-v8a # uncomment it and fill in sign information for release mode #RELEASE_STORE_FILE=file path of keystore diff --git a/templates/cpp-template-default/proj.android/gradle/wrapper/gradle-wrapper.properties b/templates/cpp-template-default/proj.android/gradle/wrapper/gradle-wrapper.properties index 8e341b7af5a7..3d0d20b7a9a2 100644 --- a/templates/cpp-template-default/proj.android/gradle/wrapper/gradle-wrapper.properties +++ b/templates/cpp-template-default/proj.android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip