Skip to content

Commit ed392d7

Browse files
committed
chore(AGP) : update AGP 8.2.0 and Android studio 2023.1.1
1 parent fae542c commit ed392d7

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

app/build.gradle

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ android {
1515
keyPassword 'GoGoGo'
1616
}
1717
}
18-
ndkVersion '25.2.9519653'
19-
buildToolsVersion '33.0.2'
20-
compileSdkVersion 32
18+
ndkVersion '26.1.10909125'
19+
compileSdk 32
20+
buildToolsVersion = '34.0.0'
2121
defaultConfig {
2222
applicationId "com.zcshou.gogogo"
2323
minSdkVersion 27
24+
//noinspection ExpiredTargetSdkVersion
2425
targetSdkVersion 32
2526
versionCode 1102
2627
versionName '1.11.2' // https://semver.org/lang/zh-CN/
2728
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2829
resConfigs 'zh', 'zh-rCN', 'en', 'en-rUS'
2930
ndk {
31+
//noinspection ChromeOsAbiSupport
3032
abiFilters "arm64-v8a"
3133
}
3234
signingConfig signingConfigs.release
3335
}
3436
buildTypes {
3537
release {
36-
zipAlignEnabled true
37-
3838
// Enables code shrinking, obfuscation, and optimization for only
3939
// your project's release build type.
4040
minifyEnabled true
@@ -49,6 +49,7 @@ android {
4949
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
5050

5151
signingConfig signingConfigs.release
52+
multiDexEnabled true
5253
}
5354
debug {
5455
signingConfig signingConfigs.debug
@@ -84,8 +85,8 @@ android {
8485
// }
8586

8687
// 指定输出的可执行程序的名字
87-
applicationVariants.all { variant ->
88-
variant.outputs.all { output ->
88+
applicationVariants.configureEach { variant ->
89+
variant.outputs.configureEach { output ->
8990
def outputFile = output.outputFile
9091
if (outputFile != null && outputFile.name.endsWith('.apk')) {
9192
def fileName

build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88

99
dependencies {
10-
classpath 'com.android.tools.build:gradle:8.0.1'
10+
classpath 'com.android.tools.build:gradle:8.2.0'
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files
@@ -21,12 +21,14 @@ allprojects {
2121
}
2222

2323
gradle.projectsEvaluated {
24-
tasks.withType(JavaCompile) { // 用于显示过时 API 的详细信息
25-
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
24+
tasks.withType(JavaCompile).tap {
25+
configureEach { // 用于显示过时 API 的详细信息
26+
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
27+
}
2628
}
2729
}
2830
}
2931

30-
task clean(type: Delete) {
32+
tasks.register('clean', Delete) {
3133
delete rootProject.buildDir
3234
}

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# http://www.gradle.org/docs/current/userguide/build_environment.html
77
# Specifies the JVM arguments used for the daemon process.
88
# The setting is particularly useful for tweaking memory settings.
9-
android.defaults.buildfeatures.buildconfig=true
109
android.enableJetifier=true
1110
android.nonFinalResIds=false
1211
android.nonTransitiveRClass=false

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip

0 commit comments

Comments
 (0)