Search Gradle plugins

com.banner.versions.ribbonizer

USAGE in app build.gradle: DefaultRibbonFilter defines debug, qa and release: ribbonizer { __builder { ApplicationVariant variant, File iconFile -> ____return defaultRibbonFilter(variant, iconFile) __} } For other buildTypes use: 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/

Version 1.2.5 (latest)

Created 09 October 2018.

USAGE in app build.gradle:

DefaultRibbonFilter defines debug, qa and release:

ribbonizer {
__builder { ApplicationVariant variant, File iconFile ->
____return defaultRibbonFilter(variant, iconFile)
__}
}


For other buildTypes use:

ribbonizer {
__builder { ApplicationVariant variant, File iconFile ->
____if (variant.buildType.name == "buildtype") {
______return customColorRibbonFilter(variant, iconFile, "#backgroundColor")
______// or
______return customColorRibbonFilter(variant, iconFile, "#backgroundColor", "#fontColor")
____}
__}
}

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects