From 292b0df6c4397750881fbe9b40700aa7bb86f9fa Mon Sep 17 00:00:00 2001 From: Jatin Shridhar Date: Fri, 15 Dec 2023 01:02:39 +0530 Subject: [PATCH 1/2] update readme to add `buildConfig true` which is required for BuildConfig generation --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index e7060f3..c000290 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,16 @@ Groovy: plugins { id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' } + +buildFeatures { + buildConfig true // make sure this is set +} ``` Kotlin: ```groovy plugins { + buildConfig(true) id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin") } ``` From c85f825b0938bf6c034c93c3dd556db53e1dc1e4 Mon Sep 17 00:00:00 2001 From: Jatin Shridhar Date: Fri, 15 Dec 2023 23:09:03 +0530 Subject: [PATCH 2/2] move buildConfig to buildFeatures --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c000290..bbf95c3 100644 --- a/README.md +++ b/README.md @@ -54,9 +54,12 @@ buildFeatures { Kotlin: ```groovy plugins { - buildConfig(true) id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin") } + +buildFeatures { + buildConfig(true) // make sure this is set +} ``` 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.