-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support activity partially qualified class names #3
Support activity partially qualified class names #3
Conversation
Thanks so much for your contribution @IslamSalah ! |
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.
Thank you @IslamSalah once again for your contribution!
Your idea is great and its implementation is really well done!
I just added a few nitpicky comments.
Please review them and let me know what you think!
Cheers :)
src/main/kotlin/com/gaelmarhic/quadrant/helpers/ActivityFilteringHelper.kt
Outdated
Show resolved
Hide resolved
@@ -56,6 +59,24 @@ class ActivityFilteringHelper( | |||
) | |||
} | |||
|
|||
private fun List<ParsedManifest>.generateFullyQualifiedClassNames(): List<ParsedManifest> { |
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.
Could we go with another name for this function? It does not "generate" a fully qualified class name all the time since some Activities are already declared that way. Could we have something like "formatClassNames" or similar?
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.
Also, I know I am a bit of a maniac, but could you put your 2 new functions above the "filterClassNames" one? To make the file more readable I tried to order the functions by order of appearance :)
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 does not "generate" a fully qualified class name all the time since some Activities are already declared that way
IMO it's fine, similar to List#clear which doesn't clear the list if it's already cleared but its output is always a cleared list
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.
Fair enough!
src/main/kotlin/com/gaelmarhic/quadrant/helpers/ActivityFilteringHelper.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/gaelmarhic/quadrant/helpers/ActivityFilteringHelper.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/gaelmarhic/quadrant/helpers/ActivityFilteringHelper.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/com/gaelmarhic/quadrant/helpers/ActivityFilteringHelper.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.
LGTM!
Thank you for the review, should we expect a new release soon? |
Just released version 1.5 including this change: |
Overview:
This plugin adds a tangible benefit for multi-module navigation. With relaxing some constrains it can be even easier to use. Especially for big-sized teams where applying constrains can add some friction. Currently the plugin fails the build with guiding error on breaking the FQCN constraint. On relaxing this constrains, things go smoother and siliently pass
CC @gaelmarhic
Type of change:
Feature
What's the purpose of this PR?
Extend the plugin capability to handle both partially & fully qualified class names for manifest files defined activities
What's the impact of this PR?
N.B commit by commit review can be helpful