Skip to content

Commit 39011db

Browse files
committed
启用多 buildType 图标插件
1 parent 8bdb2c0 commit 39011db

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

app/build.gradle

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'com.android.application'
33
id 'org.jetbrains.kotlin.android'
44
id 'android.aop'
5-
// id 'com.starter.easylauncher'
5+
id 'com.starter.easylauncher'
66
}
77

88
apply from : '../common.gradle'
@@ -147,25 +147,25 @@ android {
147147
}
148148

149149
// 应用启动图标配置
150-
//easylauncher {
151-
// buildTypes {
152-
// preview {
153-
// filters = [
154-
// customRibbon(label: "preview", position: "topRight",
155-
// ribbonColor: "#b65656", labelColor: "#FFFFFF")
156-
// ]
157-
// }
158-
// debug {
159-
// filters = [
160-
// customRibbon(label: "debug", position: "topRight",
161-
// ribbonColor: "#b65656", labelColor: "#FFFFFF")
162-
// ]
163-
// }
164-
// release {
165-
// enable false
166-
// }
167-
// }
168-
//}
150+
easylauncher {
151+
buildTypes {
152+
preview {
153+
filters = [
154+
customRibbon(label: "preview", position: "topRight",
155+
ribbonColor: "#b65656", labelColor: "#FFFFFF")
156+
]
157+
}
158+
debug {
159+
filters = [
160+
customRibbon(label: "debug", position: "topRight",
161+
ribbonColor: "#b65656", labelColor: "#FFFFFF")
162+
]
163+
}
164+
release {
165+
enable false
166+
}
167+
}
168+
}
169169

170170
// 添加构建依赖项:https://developer.android.google.cn/studio/build/dependencies
171171
// api 与 implementation 的区别:https://www.jianshu.com/p/8962d6ba936e

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
// AOP 插件:https://github.com/FlyJingFish/AndroidAOP
77
id 'io.github.flyjingfish.androidaop' version '2.7.4' apply false
88
// 多 buildType 图标插件:https://github.com/usefulness/easylauncher-gradle-plugin
9-
// id 'com.starter.easylauncher' version '6.1.0' apply false
9+
id 'com.starter.easylauncher' version '6.4.1' apply false
1010
}
1111

1212
// 导入配置文件

0 commit comments

Comments
 (0)