From e45bd4a0c1df8d4be52ad6705031a63f11208ce5 Mon Sep 17 00:00:00 2001 From: Yamin Mahdi Date: Thu, 23 Jan 2025 17:16:17 +0600 Subject: [PATCH] Update README.md - add Version Catalog Installation This commit updates the README.md file to include instructions for installing the Secrets Gradle Plugin using the Version Catalog. The changes ensure that users can easily integrate the plugin into their projects using the Version Catalog method. --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index e7060f3..cfd27af 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,13 @@ buildscript { } ``` +Version Catalog: +```groovy/kotlin +plugins { + alias(libs.plugins.secrets) apply false +} +``` + 2. In your app-level `build.gradle` file: Groovy: @@ -54,6 +61,22 @@ plugins { } ``` +Version Catalog: +```groovy/kotlin +plugins { + alias(libs.plugins.secrets) apply false +} +``` + +3. (Optional) In your `gradle/libs.versions.toml` file: (If using Version Catalog) + +```TOML +[versions] +secrets = "2.0.1" +[plugins] +secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "secrets" } +``` + This plugin also supports library module type (`com.android.library`). Just install the plugin in your library-level `build.gradle` file and keys will be visible inside that module as well. ### Snapshot Releases