搜索Gradle插件

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/

来源: 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") ____} __} }

使用插件DSL

plugins {
  id("com.banner.versions.ribbonizer") version "1.2.5"
}

使用旧插件应用程序

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.ribbonizer-gradle:plugin:1.2.5")
  }
}

apply(plugin = "com.banner.versions.ribbonizer")

使用插件DSL

plugins {
  id "com.banner.versions.ribbonizer" version "1.2.5"
}

使用旧插件应用程序

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.ribbonizer-gradle:plugin:1.2.5"
  }
}

apply plugin: "com.banner.versions.ribbonizer"

学习如何将插件应用于子项目