-
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-14201: (android) Removes Gradle property in-line command arguments… #465
Conversation
I created this PR to replace the previous PR #459. As discusses in #459, it does feel better to remove the Gradle command line argument usage in-favor of the The user can instead change the values in gradle.properties. Please let me know what you think of this over the other PR. Also, this PR is linked to a new ticket, https://issues.apache.org/jira/browse/CB-14201, as the previous ticket only focused on |
Codecov Report
@@ Coverage Diff @@
## master #465 +/- ##
==========================================
+ Coverage 61.64% 61.87% +0.22%
==========================================
Files 16 17 +1
Lines 1945 1975 +30
Branches 363 366 +3
==========================================
+ Hits 1199 1222 +23
- Misses 746 753 +7
Continue to review full report at Codecov.
|
Nice. Did I get this right: |
Partial, Yes, The hardcoded defaults were removed so they can now be overridden by the user from the Additional Note: Overridden defaults are accepted, not reverted, but the user will see an info message emitted with the Cordova's recommended value. Yes, the old defaults are used for creating the file. Since the first step for a new project is The parser can read other non-default properties but is only used for the original defaults. As for supplying a lot of other configs, it was already possible by creating this file manually since Gradle naturally detects and uses the properties file. This PR main goal was removing the three hardcoded command-line arguments so it won't be locked in. Here are also some additional use cases: Use Case 2: Existing projects with existing And lastly, possible drawbacks, but not serious: 2. (Possibly a Very Small Edge Case) For existing projects, with no |
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 feel that these changes are OK.
Even recently, I needed to be able to stop the daemon but because it was hardcoded it was not simple.
@dpogue Do you have any opinions on this? I would like to merge this in if there is nothing holding this up.
… for gradle.properties
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.
👍 from me
@erisu I understand that with this PR, the setting can now be changed in the gradle.properties file created as part of the cordova build process. And to change the default values, the user needs to create their own custom gradle.properties. It is not clear to me where to put my custom gradle.properties file (in my source directory) so that the build process will pick up the file and overwrite the default file. |
Platforms affected
Android
What does this PR do?
This PR removes the Gradle properties in-line command arguments in favor of setting the gradle.properties file.
This PR will give users more flexibility to override defaults that Cordova defines.
What testing has been done on this change?
Checklist