Skip to content

Commit 619687c

Browse files
Optimize multiplatform plugin compatibility
1 parent 6cbb233 commit 619687c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/src/main/groovy/com/kezong/fataar/FatAarPlugin.groovy

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ class FatAarPlugin implements Plugin<Project> {
3636
project.extensions.create(FatAarExtension.NAME, FatAarExtension)
3737
createConfigurations()
3838
registerTransform()
39-
project.afterEvaluate {
40-
project.afterEvaluate {
41-
doAfterEvaluate()
42-
}
39+
project.gradle.projectsEvaluated {
40+
checkKotlinMultiPlatformPlugin()
41+
doProjectsEvaluated()
4342
}
4443
}
4544

@@ -49,7 +48,7 @@ class FatAarPlugin implements Plugin<Project> {
4948
project.android.registerTransform(transform)
5049
}
5150

52-
private void doAfterEvaluate() {
51+
private void doProjectsEvaluated() {
5352
embedConfigurations.each {
5453
if (project.fataar.transitive) {
5554
it.transitive = true

0 commit comments

Comments
 (0)