File tree Expand file tree Collapse file tree
android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import com.android.build.gradle.AppPlugin
44import com.flyjingfish.android_aop_plugin.config.AndroidAopConfig
55import com.flyjingfish.android_aop_plugin.plugin.CompilePlugin
66import 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
79import org.gradle.api.Plugin
810import 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)
Original file line number Diff line number Diff 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 (){
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ junit-junit = "4.13.2"
2222androidx-test-ext-junit = " 1.2.1"
2323espresso-core = " 3.6.1"
2424test-rules = " 1.5.0"
25- flyjingfish_javassist_version = " 1.0.2 "
25+ flyjingfish_javassist_version = " 1.0.3 "
2626fasttransform_version = " 1.0.6"
2727kotlinx-metadata-jvm-version = " 0.9.0"
2828[libraries ]
You can’t perform that action at this time.
0 commit comments