Search Gradle plugins

Version 1.3.0 (latest)

Created 23 August 2021.

Android gradle plugin to use .env file in your Android app

Using the plugins DSL:

plugins {
  id "earth.levi.dotenv-android" version "1.3.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "earth.levi:dotenv:1.3.0"
  }
}

apply plugin: "earth.levi.dotenv-android"

Using the plugins DSL:

plugins {
  id("earth.levi.dotenv-android") version "1.3.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("earth.levi:dotenv:1.3.0")
  }
}

apply(plugin = "earth.levi.dotenv-android")

Learn how to apply plugins to subprojects