google / secrets-gradle-plugin

A Gradle plugin for providing your secrets to your Android project.
Apache License 2.0
1.13k stars 99 forks source link

Not compatible with `android.enableBuildConfigAsBytecode` Gradle Property #75

Open childofthehorn opened 7 months ago

childofthehorn commented 7 months ago

Problem: If the android.enableBuildConfigAsBytecode=true flag is set in the gradle.properties file, no secrets or extensions will be added to the BuildConfig.

The flag being enabled or disabled does not affect the ability of anything to compile or affect the standard BuildConfig flags. This package will only work if that feature is disabled.

This incompatibility is problematic because

  1. it significantly affects compile-time
  2. the advice given here would cause this to fail and there aren't any logs or other indicators that this is the issue.