Skip to content

Commit c43c4d0

Browse files
author
liabao
committed
[feat] 优化下代码 全局生效
1 parent f8e90ab commit c43c4d0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Plugin/plugin-dep/src/main/java/com/kronos/plugin/dep/KronosPlugin.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ class KronosPlugin : Plugin<Project> {
1212
) {
1313
it.group = "kronos"
1414
}
15+
project.allprojects {
16+
task.apply()
17+
}
1518
task.apply()
1619
}
1720

app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android-extensions'
33
apply plugin: 'kotlin-android'
4-
apply plugin: "dep-plugin"
54

65
android {
76
compileSdkVersion 28
@@ -37,5 +36,5 @@ dependencies {
3736
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
3837
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
3938
implementation 'com.github.leifzhang:QrCodeLibrary:0.0.1'
40-
// implementation dep.okhttp
39+
implementation dep.okhttp
4140
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ buildscript {
1616
}
1717
}
1818
plugins {
19-
id("dep-plugin") apply false
19+
id("dep-plugin")
2020
}
2121

2222

@@ -29,4 +29,4 @@ allprojects {
2929

3030
task clean(type: Delete) {
3131
delete rootProject.buildDir
32-
}
32+
}

0 commit comments

Comments
 (0)