# google/secrets-gradle-plugin

A Gradle plugin for providing your secrets to your Android project.

Repository: https://github.com/google/secrets-gradle-plugin
Canonical: https://ross.abutalabs.com/products/secrets-gradle-plugin
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: android, kotlin, gradle-plugin, groovy
Last push: 2024-08-27T16:49:11+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2045, "days_push": 736, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1282, forks 123 (observed 2026-08-28T04:04:13.974205+00:00)

## What it is
A Gradle plugin by Google that injects secrets from a properties file (like local.properties) not checked into version control into BuildConfig fields and the Android manifest. It helps keep API keys out of source control in Android projects.

## Use cases
- hide api keys from version control in an android app
- inject secrets into buildconfig at build time
- read keys from local.properties in gradle
- keep maps api key out of git
- share secrets across android library modules

## When to choose
- you build Android apps with Gradle and need to keep API keys out of git
- you want secrets exposed as BuildConfig variables or manifest placeholders

## When to avoid
- you need secrets truly protected in the shipped APK - keys in BuildConfig are still recoverable by decompiling
- your project is not an Android Gradle project

## Facets
- artifact type: plugin
- maturity: stable
- function: secrets-management, build-tool, security
- domain: android-tools, developer-tools, security
- platform: jvm
- tags: gradle-plugin, android, buildconfig, api-keys, local-properties, gradle

## Member repositories
- google/secrets-gradle-plugin (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:13.974205+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:57:42.365749+00:00, confidence not recorded.
  - readme: https://github.com/google/secrets-gradle-plugin (fetched 2026-08-28T04:04:13.974205+00:00, sha ed4050df8e80)
- Data as of 2026-08-30T08:39:29.467469+00:00.
