upgrade gradle 7.4.2 -> 8.0.1 (#259)
* upgraded gradle 7.4.2 -> 8.0.1 * updated github workflow * removed RenderScript * excluded 'kotlin-stdlib-jdk8' to prevent 'duplicate class' errors * updated memory limits
This commit is contained in:
parent
adeae333b2
commit
b3fde40aa2
4 changed files with 38 additions and 8 deletions
20
build.gradle
20
build.gradle
|
|
@ -4,16 +4,22 @@ buildscript {
|
|||
google()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.4.2'
|
||||
classpath 'com.android.tools.build:gradle:8.0.1'
|
||||
}
|
||||
}
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
configurations.all {
|
||||
// fixes 'duplicate class error', when using these combine: androidx.core:1.10.1, androidx.preference:1.2.0 and androidx.room:2.5.1
|
||||
// see: https://stackoverflow.com/questions/75274720/a-failure-occurred-while-executing-appcheckdebugduplicateclasses/75315276#75315276
|
||||
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "androidx.core:core:1.9.0"
|
||||
implementation 'androidx.core:core:1.10.1'
|
||||
implementation 'androidx.preference:preference:1.2.0'
|
||||
implementation "androidx.room:room-runtime:2.5.1"
|
||||
annotationProcessor "androidx.room:room-compiler:2.5.1"
|
||||
implementation 'androidx.room:room-runtime:2.5.1'
|
||||
annotationProcessor 'androidx.room:room-compiler:2.5.1'
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
|
@ -213,7 +219,6 @@ android {
|
|||
java.srcDirs = ['src']
|
||||
resources.srcDirs = ['src']
|
||||
aidl.srcDirs = ['src']
|
||||
renderscript.srcDirs = ['src']
|
||||
res.srcDirs = ['res']
|
||||
assets.srcDirs = ['assets']
|
||||
}
|
||||
|
|
@ -255,7 +260,6 @@ android {
|
|||
|
||||
debuggable false
|
||||
jniDebuggable false
|
||||
renderscriptDebuggable false
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
|
|
@ -263,6 +267,10 @@ android {
|
|||
// signingConfig android.signingConfigs.release
|
||||
}
|
||||
}
|
||||
buildFeatures {
|
||||
renderScript false
|
||||
aidl true
|
||||
}
|
||||
|
||||
applicationVariants.all { variant ->
|
||||
tasks["merge${variant.name.capitalize()}Assets"].dependsOn(validateDictionaries)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue