Skip to content

Commit 2be7448

Browse files
committed
1、 [issue 5]修复,解决多个Transform插件编译错误; 2、 demo工程中更新AGP8.1示例; 3、 更新README
1 parent 6d91726 commit 2be7448

File tree

6 files changed

+31
-14
lines changed

6 files changed

+31
-14
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010

1111
## 更新说明
1212

13+
2025/03/24,更新
14+
15+
- 说明:[issue 5](https://github.com/JailedBird/ArouterGradlePlugin/issues/5) 修复,解决多个Transform插件编译错误,并在demo工程中更新AGP8.1示例;
16+
- 根因:宿主工程中低版本AGP存在bug,导致多个issue5中的多插件输出目录相同,产生写入冲突;
17+
- 解决:宿主工程升级到AGP8.1+, 多个transform的产物生成目录会根据taskName自动区分,完成修复;
18+
- 特别说明:仅需更新宿主工程AGP,无需更新此插件;
19+
20+
21+
1322
最新版本1.0.2, 修复和优化
1423

1524
- debug阶段支持禁用插桩

app/build.gradle.kts

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ android.sourceSets.all {
2222
android {
2323
namespace = "cn.jailedbird.arouter.ksp"
2424
compileSdk = 33
25-
25+
buildFeatures {
26+
buildConfig = true
27+
}
2628
defaultConfig {
2729
applicationId = "cn.jailedbird.arouter.ksp"
2830
minSdk = 21
@@ -61,11 +63,11 @@ android {
6163
}
6264
}
6365
compileOptions {
64-
sourceCompatibility = JavaVersion.VERSION_1_8
65-
targetCompatibility = JavaVersion.VERSION_1_8
66+
sourceCompatibility = JavaVersion.VERSION_17
67+
targetCompatibility = JavaVersion.VERSION_17
6668
}
6769
kotlinOptions {
68-
jvmTarget = "1.8"
70+
jvmTarget = "17"
6971
}
7072
}
7173

arouter-gradle-plugin/build.gradle.kts

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ repositories {
1616
group = "io.github.JailedBird"
1717
version = "1.0.2"
1818

19-
pluginBundle {
20-
vcsUrl = "https://github.com/JailedBird/ArouterGradlePlugin"
21-
website = "https://github.com/JailedBird/ArouterGradlePlugin/blob/main/README_EN.md"
22-
tags = listOf("Arouter", "AGP7", "Arouter plugin", "AGP8", "Transform", "Auto Register")
23-
}
19+
//pluginBundle {
20+
// vcsUrl = "https://github.com/JailedBird/ArouterGradlePlugin"
21+
// website = "https://github.com/JailedBird/ArouterGradlePlugin/blob/main/README_EN.md"
22+
// tags = listOf("Arouter", "AGP7", "Arouter plugin", "AGP8", "Transform", "Auto Register")
23+
//}
24+
2425
gradlePlugin {
2526

2627
plugins {

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
id ("com.android.application") version "7.4.0" apply false
4-
id ("com.android.library") version "7.4.0" apply false
3+
id ("com.android.application") version "8.1.0" apply false
4+
id ("com.android.library") version "8.1.0" apply false
55
id ("org.jetbrains.kotlin.android") version "1.8.20" apply false
66
id ("org.jetbrains.kotlin.jvm") version "1.8.20" apply false
77
id ("com.google.devtools.ksp") version "1.8.20-1.0.10" apply false
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Mar 08 17:59:32 CST 2023
1+
#Fri Dec 09 11:32:42 CST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
6-
zipStoreBase=GRADLE_USER_HOME
6+
zipStoreBase=GRADLE_USER_HOME

settings.gradle.kts

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
pluginManagement {
44
repositories {
5+
maven(url = "https://maven.aliyun.com/repository/central")
6+
maven(url = "https://maven.aliyun.com/repository/public")
7+
maven(url = "https://maven.aliyun.com/repository/gradle-plugin")
58
google()
69
mavenCentral()
710
gradlePluginPortal()
@@ -11,6 +14,8 @@ pluginManagement {
1114
dependencyResolutionManagement {
1215
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1316
repositories {
17+
maven(url = "https://maven.aliyun.com/repository/central")
18+
maven(url = "https://maven.aliyun.com/repository/public")
1419
google()
1520
mavenCentral()
1621
maven(url = "https://jitpack.io")

0 commit comments

Comments
 (0)