Repository navigation
Android: Generate test_config.properties - #6841
Merged
lihaoyi merged 3 commits intoFeb 18, 2026
Merged
Conversation
vaslabs
reviewed
Feb 17, 2026
| * [[https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/dsl/UnitTestOptions#getIsIncludeAndroidResources()]] | ||
| */ | ||
| def androidGeneratedTestConfigSources: T[Seq[PathRef]] = Task { | ||
| val properties: Map[String, String] = Map( |
Contributor
There was a problem hiding this comment.
we can make this into a separate task so we have more flexibility debugging/fixing issues in the future and allow for easier workarounds
Contributor
|
does it also fix the tests in #6833 ? (maybe need to add include android resources as true there too) ah yeah it does, you mentioned it, sorry I thought it might have issues with mocked default values but maybe it's not hitting it |
vaslabs
approved these changes
Feb 17, 2026
Contributor
|
amazing work, nice one @souvlakias |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6620
This adds to the support for the
isIncludeAndroidResourcesthat was introduced in #6638, by generating thecom/android/tools/test_config.propertiesfile as described here (agp docs).This also makes roboelectric unit tests work (Ref: jetcaster.wear and the koin example)