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
Treat app and library modules the same in Fulladle #262
Treat app and library modules the same in Fulladle #262
Conversation
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.
Thanks so much for the changes. Apologies for my delay in reviewing it. I wanted to make sure i sat down and reviewed it thoroughly.
fladle-plugin/src/main/java/com/osacky/flank/gradle/FulladlePlugin.kt
Outdated
Show resolved
Hide resolved
fladle-plugin/src/main/java/com/osacky/flank/gradle/FulladlePlugin.kt
Outdated
Show resolved
Hide resolved
...le-plugin/src/test/java/com/osacky/flank/gradle/integration/FulladlePluginIntegrationTest.kt
Outdated
Show resolved
Hide resolved
...le-plugin/src/test/java/com/osacky/flank/gradle/integration/FulladlePluginIntegrationTest.kt
Show resolved
Hide resolved
fladle-plugin/src/main/java/com/osacky/flank/gradle/FulladlePlugin.kt
Outdated
Show resolved
Hide resolved
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.
Look good aside from what appears to me like duplicated code. Once that is addressed I will merge.
Please add some documentation either in this PR or in a follow up. Especially what the expected behavior is that you explained to me in slack.
Please also add this to the release notes in this PR or in a follow up.
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.
Just two comments on the docs.
Buildscan url for run 1053338057 |
This PR merges the methods used to configure app and library modules in Fulladle plugin.
One major problem it solves is handling library modules as root-level app/test APKs (in case there are no app modules, or all app modules are disabled).
Root-level flank app/test apks are both required, and since libraries don't produce app APKs, we first try to set app modules as root level APKs. If none of the app modules are enabled (or if they have no tests), we then try to set libraries as the root-level app. Libraries need to explicitly set
debugApk
in theirfulladleModuleConfig
block for the APK to be consumed.