Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't generate BuildConfig if it's ignored in Android settings #470

Merged
merged 1 commit into from
Mar 20, 2022

Conversation

RBusarow
Copy link
Member

fixes #453

@kodiakhq kodiakhq bot merged commit d7f1cb5 into main Mar 20, 2022
@kodiakhq kodiakhq bot deleted the skip_buildConfig_task branch March 20, 2022 22:57
}

@Test
fun `buildConfig task should not be required when disabled in android library module`() {
Copy link
Contributor

Choose a reason for hiding this comment

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

What if it is disabled via gradle.properties. Does this handle that automatically?

Copy link
Member Author

Choose a reason for hiding this comment

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

gradle.properties, -Pandroid.defaults.buildfeatures.buildconfig=false, and the dsl are all functionally the same. The dsl extensions all just delegate to project.properties.

Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't know. That's very neat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build speed optimization when BuildConfig is disabled
2 participants