Skip to content

Commit

Permalink
chore(AGP) : update AGP 8.2.0 and Android studio 2023.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ZCShou committed Dec 17, 2023
1 parent fae542c commit ed392d7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
15 changes: 8 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ android {
keyPassword 'GoGoGo'
}
}
ndkVersion '25.2.9519653'
buildToolsVersion '33.0.2'
compileSdkVersion 32
ndkVersion '26.1.10909125'
compileSdk 32
buildToolsVersion = '34.0.0'
defaultConfig {
applicationId "com.zcshou.gogogo"
minSdkVersion 27
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 32
versionCode 1102
versionName '1.11.2' // https://semver.org/lang/zh-CN/
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resConfigs 'zh', 'zh-rCN', 'en', 'en-rUS'
ndk {
//noinspection ChromeOsAbiSupport
abiFilters "arm64-v8a"
}
signingConfig signingConfigs.release
}
buildTypes {
release {
zipAlignEnabled true

// Enables code shrinking, obfuscation, and optimization for only
// your project's release build type.
minifyEnabled true
Expand All @@ -49,6 +49,7 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

signingConfig signingConfigs.release
multiDexEnabled true
}
debug {
signingConfig signingConfigs.debug
Expand Down Expand Up @@ -84,8 +85,8 @@ android {
// }

// 指定输出的可执行程序的名字
applicationVariants.all { variant ->
variant.outputs.all { output ->
applicationVariants.configureEach { variant ->
variant.outputs.configureEach { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
def fileName
Expand Down
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:8.0.1'
classpath 'com.android.tools.build:gradle:8.2.0'

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

gradle.projectsEvaluated {
tasks.withType(JavaCompile) { // 用于显示过时 API 的详细信息
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
tasks.withType(JavaCompile).tap {
configureEach { // 用于显示过时 API 的详细信息
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
}

task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
android.defaults.buildfeatures.buildconfig=true
android.enableJetifier=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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-8.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip

0 comments on commit ed392d7

Please sign in to comment.