-
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
#552: (android) check for build-extras.gradle in the app-parent directory #553
Conversation
This would be a breaking change right now, so I guess it would be nicer to just check both locations? |
|
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 concur with @janpio that we should check both locations.
Alternative is to just update the documentation (apache/cordova-docs#905).
Co-authored-by: David Boho <[email protected]> Co-authored-by: Christopher J. Brody <[email protected]>
I just pushed an update to support both locations, didn't test it yet. |
Ok I can update the pull request. Wich file should win in the case both files existing? Should the apply exclusively or in sequence if both files existing? |
Codecov Report
@@ Coverage Diff @@
## master #553 +/- ##
=======================================
Coverage 61.98% 61.98%
=======================================
Files 17 17
Lines 1978 1978
Branches 369 369
=======================================
Hits 1226 1226
Misses 752 752 Continue to review full report at Codecov.
|
Good question. I thought we should run both files, didn't think about the ordering. I would personally like to see the old location deprecated at some point. If my commit doesn't help then feel free to remove it with a force push. I am still not a real Gradle expert. And we should update the documentation as well. If I follow your link and click the edit button it takes me to the following file: https://github.com/apache/cordova-docs/blob/master/www/docs/en/dev/guide/platforms/android/index.md @janpio can you think of anything else? |
I think your commit is just fine. This was my prefered order and method. I hope the old location will stay. It was luck that I found this bug before shipping our alpha build to public. Otherwise ~2000 people local settings and database get lost. |
Thanks @DavidWiesner, would like to get review from one more member before merging. If someone else does a merge, I recommend a squash merge but please be sure to give @DavidWiesner credit in the commit. I hope we can do this today. |
…t directory (apache#553) as documented in https://cordova.apache.org/docs/en/latest/guide/platforms/android/?#extending-buildgradle and deal with multiple build-extras.gradle locations Co-authored-by: David Boho <[email protected]> Co-authored-by: Christopher J. Brody <[email protected]>
…t directory (apache#553) as documented in https://cordova.apache.org/docs/en/latest/guide/platforms/android/?#extending-buildgradle and deal with multiple build-extras.gradle locations Co-authored-by: David Boho <[email protected]> Co-authored-by: Christopher J. Brody <[email protected]>
…t directory (apache#553) as documented in https://cordova.apache.org/docs/en/latest/guide/platforms/android/?#extending-buildgradle and deal with multiple build-extras.gradle locations Co-authored-by: David Boho <[email protected]> Co-authored-by: Christopher J. Brody <[email protected]>
…t directory (apache#553) as documented in https://cordova.apache.org/docs/en/latest/guide/platforms/android/?#extending-buildgradle and deal with multiple build-extras.gradle locations Co-authored-by: David Boho <[email protected]> Co-authored-by: Christopher J. Brody <[email protected]>
Platforms affected
What does this PR do?
platforms/android/
platforms/android/
andplatforms/android/app/
What testing has been done on this change?
Checklist