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
Fix an issue that Android Instrumentation Test fails #895
Merged
Raibaz
merged 12 commits into
mockk:master
from
kubode:kubode/fix_android_fails_dispatcher
Aug 29, 2022
Merged
Changes from 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f9a22af
Fix an issue that Android Instrumentation Test fails
kubode f770509
Fix Android Instrumentation Test failure due to `dispatcher.jar` cont…
kubode d9bb509
Fix Android Instrumentation Test not working
kubode 47f470e
Merge branch 'kubode/fix_android_test' into kubode/fix_android_fails_…
kubode 2e186ea
Migrate to AndroidX Test suite
kubode e364606
Merge branch 'master' into kubode/fix_android_fails_dispatcher
kubode b64549f
Fix a merge conflict
kubode eedb520
Reverts `android-application.gradle.kts`
kubode c18440f
Merge branch 'master' into kubode/fix_android_fails_dispatcher
kubode 244b334
Re-apply android-application plugin to android-dispatcher
kubode 3275c3b
Remove wrong Jar task import
kubode afcfc2d
Merge branch 'master' into kubode/fix_android_fails_dispatcher
kubode File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
50 changes: 0 additions & 50 deletions
50
buildSrc/src/main/kotlin/buildsrc/convention/android-application.gradle.kts
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed
android-application.gradle.kts
since it is not used except forandroid-dispatcher
module.Instead, I moved the contents of
android-application.gradle.kts
to thisbuild.gradle.kts
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's intentional that build config that is shareable is defined in buildSrc, even if it's only used in one place. It helps keep the build logic organised and consistent. It makes it easier to compare and contrast the Android Library config to the Android Application config, and easier to see if there's any special treatment that's needed in the subprojects. So I think this should be reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, I think it is better to remove
android-application.gradle.kts
.:mockk-agent-android-dispatcher
module is a very specific Android Application module that only extracts the final DEX file, and the build configuration is completely independent and non-reusable.If we were to add an Android sample application module in the future and try to reuse the configuration with
:mockk-agent-android-dispatcher
module, it would add an unnecessary dependency to:mockk-agent-android-dispatcher
module and cause the same problems that encountered in this PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think the dependency on
:mockk-agent-android-dispatcher
should be removed from the buildSrc scriptedit: I read your comment too quickly and my response doesn't make sense! I'll have another look