Skip to content

Commit 5fffcbe

Browse files
committed
升级javassist
1 parent 6f167a3 commit 5fffcbe

5 files changed

Lines changed: 24 additions & 25 deletions

File tree

android-aop-extra/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
plugins {
2+
id 'com.android.library'
3+
id 'org.jetbrains.kotlin.android'
4+
id 'com.google.devtools.ksp'
5+
}
6+
apply from: "$rootDir/gradle/android_base.gradle"
7+
apply from: "$rootDir/gradle/android_publish.gradle"
8+
android {
9+
namespace 'com.flyjingfish.android_aop_extra'
10+
}
11+
12+
dependencies {
13+
implementation project(path: ':android-aop-annotation')
14+
implementation project(path: ':android-aop-core')
15+
ksp project(':android-aop-apt')
16+
}

android-aop-extra/build.gradle.kts

Lines changed: 0 additions & 23 deletions
This file was deleted.

android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/AndroidAopPlugin.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import com.android.build.gradle.AppPlugin
44
import com.flyjingfish.android_aop_plugin.config.AndroidAopConfig
55
import com.flyjingfish.android_aop_plugin.plugin.CompilePlugin
66
import com.flyjingfish.android_aop_plugin.plugin.TransformPlugin
7+
import com.flyjingfish.android_aop_plugin.utils.ClassPoolUtils
8+
import com.flyjingfish.android_aop_plugin.utils.RuntimeProject
79
import org.gradle.api.Plugin
810
import org.gradle.api.Project
911

@@ -13,6 +15,7 @@ class AndroidAopPlugin : Plugin<Project> {
1315
if (project.rootProject == project){
1416
deepSetDebugMode(project.rootProject)
1517
}
18+
ClassPoolUtils.setRootProjectPath(RuntimeProject.get(project))
1619
CleanWithCachePlugin().apply(project)
1720
CompilePlugin(false).apply(project)
1821
TransformPlugin.apply(project)

android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/utils/ClassPoolUtils.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,12 @@ object ClassPoolUtils {
7171
}
7272

7373
fun release(project: RuntimeProject){
74+
classPool = null
75+
}
76+
77+
fun setRootProjectPath(project: RuntimeProject){
7478
val projectPath = project.rootProjectBuildDir.absolutePath.replace("/build".adapterOSPath(),"")
7579
JarUtils.INSTANCE.setRootProjectPath(projectPath)
76-
classPool = null
7780
}
7881

7982
fun clear(){

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ junit-junit = "4.13.2"
2222
androidx-test-ext-junit = "1.2.1"
2323
espresso-core = "3.6.1"
2424
test-rules = "1.5.0"
25-
flyjingfish_javassist_version = "1.0.2"
25+
flyjingfish_javassist_version = "1.0.3"
2626
fasttransform_version = "1.0.6"
2727
kotlinx-metadata-jvm-version = "0.9.0"
2828
[libraries]

0 commit comments

Comments
 (0)