Browse Source

Upgrade to AGP 8.0

Miku AuahDark 2 years ago
parent
commit
569df256e3
3 changed files with 9 additions and 5 deletions
  1. 1 1
      build.gradle
  2. 7 3
      gradle.properties
  3. 1 1
      gradle/wrapper/gradle-wrapper.properties

+ 1 - 1
build.gradle

@@ -18,7 +18,7 @@ buildscript {
         mavenCentral()
         mavenCentral()
     }
     }
     dependencies {
     dependencies {
-        classpath 'com.android.tools.build:gradle:7.4.2'
+        classpath 'com.android.tools.build:gradle:8.0.0'
 
 
         // NOTE: Do not place your application dependencies here; they belong
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
         // in the individual module build.gradle files

+ 7 - 3
gradle.properties

@@ -1,6 +1,3 @@
-android.enableJetifier=true
-android.useAndroidX=true
-
 # To set the application display name, only define either `app.name` or `app.name_byte_array`.
 # To set the application display name, only define either `app.name` or `app.name_byte_array`.
 # For a rule of thumb:
 # For a rule of thumb:
 # * Use `app.name` if your app name doesn't contain any non-ANSI characters.
 # * Use `app.name` if your app name doesn't contain any non-ANSI characters.
@@ -13,3 +10,10 @@ app.application_id=org.love2d.android
 app.orientation=landscape
 app.orientation=landscape
 app.version_code=30
 app.version_code=30
 app.version_name=11.4
 app.version_name=11.4
+
+# No need to modify anything past this line!
+android.enableJetifier=true
+android.useAndroidX=true
+android.defaults.buildfeatures.buildconfig=true
+android.nonTransitiveRClass=false
+android.nonFinalResIds=false

+ 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-7.5.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
 zipStorePath=wrapper/dists