Skip to content

Commit 7ec5134

Browse files
committed
升级gradle版本
1 parent 24268ab commit 7ec5134

8 files changed

Lines changed: 37 additions & 42 deletions

File tree

app/build.gradle

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ androidAopConfig {
2626
}
2727
android {
2828
namespace 'com.flyjingfish.androidaop'
29-
compileSdk 33
29+
compileSdk 34
3030
defaultConfig {
3131
applicationId "com.flyjingfish.androidaop"
32-
targetSdk 33
32+
targetSdk 34
3333
versionCode 1
3434
versionName "1.0"
3535
multiDexEnabled true
@@ -76,21 +76,13 @@ android {
7676

7777
}
7878
}
79-
80-
8179
packagingOptions {
82-
exclude 'META-INF/kotlinx_coroutines_core.version'
83-
exclude 'META-INF/DEPENDENCIES'
84-
exclude 'META-INF/NOTICE'
85-
exclude 'META-INF/LICENSE'
86-
exclude 'META-INF/LICENSE.txt'
87-
exclude 'META-INF/NOTICE.txt'
88-
exclude 'license/README.dom.txt'
89-
exclude 'license/LICENSE.dom-documentation.txt'
90-
exclude 'license/NOTICE'
91-
exclude 'license/LICENSE.dom-software.txt'
92-
exclude 'license/LICENSE'
80+
resources {
81+
excludes += ['META-INF/kotlinx_coroutines_core.version', 'META-INF/DEPENDENCIES', 'META-INF/NOTICE', 'META-INF/LICENSE', 'META-INF/LICENSE.txt', 'META-INF/NOTICE.txt', 'license/README.dom.txt', 'license/LICENSE.dom-documentation.txt', 'license/NOTICE', 'license/LICENSE.dom-software.txt', 'license/LICENSE']
82+
}
9383
}
84+
85+
9486
dynamicFeatures = [':dynamicfeature']
9587

9688
}

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ buildscript {
77
}
88
}
99
plugins {
10-
id 'com.android.application' version '8.2.2' apply false
11-
id 'com.android.library' version '8.2.2' apply false
12-
id 'org.jetbrains.kotlin.android' version '1.9.23' apply false
10+
id 'com.android.application' version '9.1.1' apply false
11+
id 'com.android.library' version '9.1.1' apply false
12+
id 'org.jetbrains.kotlin.android' version '2.2.10' apply false
1313
id 'org.jetbrains.kotlin.jvm' version '1.9.23' apply false
1414
//https://github.com/vanniktech/gradle-maven-publish-plugin
1515
id "com.vanniktech.maven.publish" version "0.33.0" apply false
16-
id 'com.google.devtools.ksp' version '1.9.23-1.0.20' apply false
16+
id 'com.google.devtools.ksp' version '2.3.2' apply false
1717
id 'io.github.flyjingfish.easyregister' version '1.1.0' apply false
1818
id 'com.gradle.plugin-publish' version '1.2.1' apply false
1919
alias(libs.plugins.android.dynamic.feature) apply false
@@ -23,7 +23,7 @@ plugins {
2323
apply plugin: "android.aop"
2424
//apply plugin: "android.aop.clean"
2525
ext {
26-
sdkVersion = 31
26+
sdkVersion = 34
2727
minSdkVersion = 21
2828
}
2929

gradle.properties

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ SonatypeTestCode = 1702
4747
TestType = -1
4848
publishGradle = 0
4949

50-
androidAop.debugMode = true
50+
androidAop.debugMode = false
5151
androidAop.debugMode.variantOnlyDebug = true
5252
androidAop.reflectInvokeMethod = false
5353
androidAop.reflectInvokeMethod.variantOnlyDebug = false
@@ -70,4 +70,14 @@ ksp.incremental.intermodule=true
7070

7171
mavenCentralPublishing=true
7272

73-
signAllPublications=true
73+
signAllPublications=true
74+
android.defaults.buildfeatures.resvalues=true
75+
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
76+
android.enableAppCompileTimeRClass=false
77+
android.usesSdkInManifest.disallowed=false
78+
android.uniquePackageNames=false
79+
android.dependency.useConstraints=true
80+
android.r8.strictFullModeForKeepRules=false
81+
android.r8.optimizedResourceShrinking=false
82+
android.builtInKotlin=false
83+
android.newDsl=false

gradle/android_base.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ android {
33

44
defaultConfig {
55
minSdk rootProject.ext.minSdkVersion
6-
targetSdk rootProject.ext.sdkVersion
76
}
87
compileOptions {
98
sourceCompatibility JavaVersion.VERSION_11

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ test-rules = "1.5.0"
2525
flyjingfish_javassist_version = "1.0.3"
2626
fasttransform_version = "1.0.8"
2727
kotlinx-metadata-jvm-version = "0.9.0"
28-
agp = "8.2.2"
29-
kotlinVersion = "1.9.23"
28+
agp = "9.1.1"
29+
kotlinVersion = "2.2.10"
3030
[libraries]
3131
kotlinpoet-ksp = { group = "com.squareup", name = "kotlinpoet-ksp", version.ref = "kotlinpoet_version" }
3232
kotlinpoet = { group = "com.squareup", name = "kotlinpoet", version.ref = "kotlinpoet_version" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Mon Aug 01 17:29:10 CST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-all.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

test-app/build.gradle

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ android {
6262
signingConfig signingConfigs.release
6363
}
6464
}
65+
packagingOptions {
66+
resources {
67+
excludes += ['META-INF/kotlinx_coroutines_core.version', 'META-INF/DEPENDENCIES', 'META-INF/NOTICE', 'META-INF/LICENSE', 'META-INF/LICENSE.txt', 'META-INF/NOTICE.txt', 'license/README.dom.txt', 'license/LICENSE.dom-documentation.txt', 'license/NOTICE', 'license/LICENSE.dom-software.txt', 'license/LICENSE']
68+
}
69+
}
6570

6671
buildTypes {
6772
debug {
@@ -81,20 +86,6 @@ android {
8186
}
8287

8388

84-
packagingOptions {
85-
exclude 'META-INF/kotlinx_coroutines_core.version'
86-
exclude 'META-INF/DEPENDENCIES'
87-
exclude 'META-INF/NOTICE'
88-
exclude 'META-INF/LICENSE'
89-
exclude 'META-INF/LICENSE.txt'
90-
exclude 'META-INF/NOTICE.txt'
91-
exclude 'license/README.dom.txt'
92-
exclude 'license/LICENSE.dom-documentation.txt'
93-
exclude 'license/NOTICE'
94-
exclude 'license/LICENSE.dom-software.txt'
95-
exclude 'license/LICENSE'
96-
}
97-
9889
}
9990

10091
dependencies {

test-lib/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ apply from: "$rootDir/gradle/android_base.gradle"
99
android {
1010
namespace 'com.flyjingfish.test_lib'
1111
compileSdk 33
12-
defaultConfig {
12+
lint {
1313
targetSdk 33
1414
}
15-
// kotlin {
15+
testOptions {
16+
targetSdk 33
17+
}
18+
// kotlin {
1619
// sourceSets {
1720
// // 让IDE识别KSP生成的代码
1821
// main.kotlin.srcDirs += 'build/generated/ksp'

0 commit comments

Comments
 (0)