Search Gradle plugins

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

Version 1.0.3 (latest)

Created 07 August 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 "android.environments" version "1.0.3"
}

Using legacy plugin application:

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

apply plugin: "android.environments"

Using the plugins DSL:

plugins {
  id("android.environments") version "1.0.3"
}

Using legacy plugin application:

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

apply(plugin = "android.environments")

Learn how to apply plugins to subprojects