-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CB-14038 (android): fix false positive detecting project type #437
Conversation
Codecov Report
@@ Coverage Diff @@
## master #437 +/- ##
==========================================
+ Coverage 44.02% 44.16% +0.14%
==========================================
Files 17 17
Lines 1715 1698 -17
Branches 319 314 -5
==========================================
- Hits 755 750 -5
+ Misses 960 948 -12
Continue to review full report at Codecov.
|
It's probably safe to delete GradleBuilder.js since it should never run now that the isAndroidStudio is always true. Other than that, this looks fine. |
Yeah, but if I remove the file I should also remove the tests related to the builder, and as it's always true I can remove all the checks, but wanted to keep it simple as a fast fix and do the major refactor in the future |
Wouldn't it make more sense to delete Then remove the if statement from here:
and only set the www directory once to the AndroidStudio path. Then move all the assignments in this if statement:
to the lines above so they are the defaults. |
ZOMG we're dogshedding! |
As I said, my idea was to just add a quick simple fix to avoid the false positives just by setting I think that kind of refactor can wait for a future release |
@jcesarmobile Is there any WIP for the aforementioned refactor? Losing some dead weight would definitely be good. Furthermore, before I discovered this PR by accident, I already thought about starting to DRY the two very similar Builders, not knowing that removal of one of them is due. BTW: GradleBuilder is used by the Java unit test runner. Just to create a Gradle wrapper, so the dependency could be easily removed. |
No, there is no work about it because the idea was to do a patch or minor release with this changes to unblock people with plugin problems, and the refactor was supposed to be done for next major release. But right now it's not clear to me if we are going to do a patch, minor or major release. Anyway, the refactor is not a breaking change, so it can be done at any time. |
Thanks for your answer. |
Platforms affected
Android
What does this PR do?
Make the Android Studio check return true
Removed old android project structure tests and files
What testing has been done on this change?
Checklist