build: upgrade Gradle and dependencies

Upgraded Gradle plugin to version 8.1.0 and updated the wrapper to use Gradle 8.0. Updated build settings to modern standards, including non-final resource IDs and non-transitive R class. Moved lintOptions block to the proper lint configuration block in build.gradle. Removed the redundant package attribute from the AndroidManifest.xml since it's now defined in the namespace block.

These updates address compatibility issues and take advantage of new features and performance improvements provided by the latest Gradle version.
This commit is contained in:
Kumi 2024-09-17 08:17:35 +02:00
parent ced80276c3
commit 4d3953dc7e
Signed by: kumi
GPG key ID: ECBCC9082395383F
5 changed files with 10 additions and 7 deletions

View file

@ -28,9 +28,6 @@ android {
}
}
}
lintOptions {
abortOnError false
}
buildFeatures {
dataBinding = true
}
@ -52,6 +49,10 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'org.shadowice.flocke.andotp'
lint {
abortOnError false
}
}
dependencies {

View file

@ -3,8 +3,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="GoogleAppIndexingWarning"
android:installLocation="auto"
package="org.shadowice.flocke.andotp">
android:installLocation="auto">
<uses-sdk tools:overrideLibrary="com.google.zxing.client.android" /> <!-- Needed to support SDK below 24, see build.gradle -->

View file

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

View file

@ -16,7 +16,10 @@
# 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
# org.gradle.parallel=true
android.defaults.buildfeatures.buildconfig=true
android.enableJetifier=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
# reuse task outputs from any previous build for

View file

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