Skip to content

update readme to add buildConfig true which is required for BuildConfig generation - #72

Closed
jatins wants to merge 2 commits into
google:mainfrom
jatins:patch-1
Closed

jatins wants to merge 2 commits into
google:mainfrom
jatins:patch-1

Conversation

@jatins

@jatins jatins commented Dec 14, 2023

Copy link
Copy Markdown

No description provided.

Comment thread README.md
}

buildFeatures {
buildConfig(true) // make sure this is set

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
buildConfig(true) // make sure this is set
buildConfig = true // make sure this is set

This is more idiomatic to Kotlin

@dkhawk

dkhawk commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Thank you @jatins for pointing this out! We have incorporated buildFeatures { buildConfig = true } into the updated README.md (along with guarding variant.buildConfigFields when buildConfig is disabled) in #108.

@dkhawk dkhawk closed this Oct 23, 2026
dkhawk added a commit that referenced this pull request Oct 23, 2026
- Use pluginManager.withPlugin across com.android.application, com.android.library, com.android.test, and com.android.dynamic-feature (#62, #91)
- Support unitTest and androidTest manifest placeholder injection across AGP 8.0-8.2 (HasUnitTest/HasAndroidTest) and AGP 8.3+/9.x (nestedComponents) (#41, #89, #96, #104)
- Guard variant.buildConfigFields behind isBuildConfigEnabled so projects with buildFeatures.buildConfig=false emit zero warnings (#87)
- Fix empty string ("") and backslash escaping in addParenthesisIfNeeded (#72, #81, #99)
- Add 5-level property precedence with combined <variantName>.properties and module-local file fallback (#59)
- Use Gradle Provider API (providers.fileContents) for Configuration Cache and Isolated Projects compatibility
- Set kotlin.stdlib.default.dependency=false and compileOnly(libs.kotlin.stdlib) for zero runtime dependency leakage
- Configure MavenPublication POM metadata (#28)
- Add 3-tier automated test suite: 12 unit tests (SecretsPluginTest), 6 real-AGP Gradle TestKit functional tests (SecretsPluginFunctionalTest), and sample-app integration test (SecretsInjectionTest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants