Search Gradle plugins

by.bulba.android.environments

Android Environments plugin helps us to avoid manual declaration of build config fields in each of the build types or product flavors. It's no longer required to write buildConfigField for every single field.

https://github.com/IlyaPavlovskii/Android-Environments/blob/master/README.md

Sources: https://github.com/IlyaPavlovskii/Android-Environments

Version 0.9.0 (latest)

0.9.0

Created 23 July 2019.

Android Environments plugin helps us to avoid manual declaration of build config fields in each of the build types or product flavors. It's no longer required to write buildConfigField for every single field.

Using the plugins DSL:

plugins {
  id("by.bulba.android.environments") version "0.9.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("by.bulba.android.environments:by.bulba.android.environments:0.9.0")
  }
}

apply(plugin = "by.bulba.android.environments")

Using the plugins DSL:

plugins {
  id "by.bulba.android.environments" version "0.9.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "by.bulba.android.environments:by.bulba.android.environments:0.9.0"
  }
}

apply plugin: "by.bulba.android.environments"

Learn how to apply plugins to subprojects