com.banner.versions.ribbonizer
所有者: mubaloo
在app build.gradle中的用法:DefaultRibbonFilter定义了调试、qa和发布:ribbonizer { __builder { ApplicationVariant variant, File iconFile -> ____return defaultRibbonFilter(variant, iconFile) __} } 对于其他buildTypes使用:ribbonizer { __builder { ApplicationVariant variant, File iconFile -> ____if (variant.buildType.name == "buildtype") { ______return customColorRibbonFilter(variant, iconFile, "#backgroundColor") ______// or ______return customColorRibbonFilter(variant, iconFile, "#backgroundColor", "#fontColor") ____} __} }
来源: https://github.com/username/repo
版本 1.2.5(最新版本)
1.2.5
创建于2018年10月9日。
随着JCenter成为永久重定向到Maven Central,此插件版本将无法解析(因为它仅使用在JCenter中找到的依赖项)。有关详细信息,请参阅以下博客文章:https://blog.gradle.org.cn/portal-jcenter-impact 在app build.gradle中的用法:DefaultRibbonFilter定义了调试、qa和发布:ribbonizer { __builder { ApplicationVariant variant, File iconFile -> ____return defaultRibbonFilter(variant, iconFile) __} } 对于其他buildTypes使用:ribbonizer { __builder { ApplicationVariant variant, File iconFile -> ____if (variant.buildType.name == "buildtype") { ______return customColorRibbonFilter(variant, iconFile, "#backgroundColor") ______// or ______return customColorRibbonFilter(variant, iconFile, "#backgroundColor", "#fontColor") ____} __} }