You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/04/11 02:33:11 UTC

[GitHub] [cordova-android] breautek opened a new pull request #948: Feature: JVM Args flag

breautek opened a new pull request #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948
 
 
   <!--
   Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines:
   
   http://cordova.apache.org/contribute/contribute_guidelines.html
   
   Thanks!
   -->
   
   ### Platforms affected
   Android
   
   
   ### Motivation and Context
   <!-- Why is this change required? What problem does it solve? -->
   <!-- If it fixes an open issue, please link to the issue here. -->
   Provides a `--jvmargs` flag to pass through JVM args to gradle. This is mostly useful for changing the `-Xmx` flag, allowing the JVM to use more memory on larger projects.
   
   There was no feature request made, but it does closes https://github.com/apache/cordova-android/pull/945 ; a PR that changes the default memory size to 4096m.
   
   I believe this is a better alternative as I believe it is better to keep the `-Xmx` as low as possible and for most users, our default value of 2048m is probably fine, but allows the flexibility for users to change the value based on their own unique needs. Additionally, this accepts any [JVM args](https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory), so not necessary limited to `-Xmx` flag.
   
   The flag works on `prepare`, `build`, and `run` cordova commands. Example is given below:
   
   `cordova prepare android -- --jvmargs='-Xmx4g'`
   
   Do note the double set of dashes. Value memory size units are `k`, `m`, and `g` and is case-insensitive. This matches what JVM supports.
   
   
   ### Description
   <!-- Describe your changes in detail -->
   This PR looks at the option vargs in `prepare` and sets the appropriate key for `GradlePropertiesParser` for jvm args.
   
   Some changes were made to the `Api` class, which was required to get unit tests configured properly. (The entire `prepare` function was not unit tested at all). Unit tests changes are made in a separate commit.
   
   Lastly, there is an informational log that was printed to the console if the user changes the `-Xmx` option to something other than the cordova default. I've changed this to only produce that log if the numerical size value is smaller than the cordova default. Code was added to parse the byte value for comparison. Unit tests were also added. This particular part is made in a separate commit from the jvmargs flag implementation.
   
   This PR should be accompanied by a `cordova-docs` PR (which is currently not done)
   
   ### Testing
   <!-- Please describe in detail how you tested your changes. -->
   `npm test` was ran with all existing and new tests passing.
   I have also manually tested these changes in a dummy project, ensuring that the `gradle.properties` file produced expected results both with and without the flag.
   
   
   ### Checklist
   
   - [x] I've run the tests to see all new and existing tests pass
   - [x] I added automated test coverage as appropriate for this change
   - [x] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`)
   - [x] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
   - [] I've updated the documentation if necessary
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] codecov-io edited a comment on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-612303146
 
 
   # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=h1) Report
   > Merging [#948](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/566262c9239e13f9dbd15235622b3aa8c95e04ed&el=desc) will **increase** coverage by `1.86%`.
   > The diff coverage is `100.00%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/948/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master     #948      +/-   ##
   ==========================================
   + Coverage   65.53%   67.40%   +1.86%     
   ==========================================
     Files          21       21              
     Lines        1828     1856      +28     
   ==========================================
   + Hits         1198     1251      +53     
   + Misses        630      605      -25     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [bin/templates/cordova/Api.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL0FwaS5qcw==) | `50.00% <100.00%> (+3.16%)` | :arrow_up: |
   | [...lates/cordova/lib/config/GradlePropertiesParser.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jb25maWcvR3JhZGxlUHJvcGVydGllc1BhcnNlci5qcw==) | `86.27% <100.00%> (+9.60%)` | :arrow_up: |
   | [bin/templates/cordova/lib/prepare.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9wcmVwYXJlLmpz) | `43.54% <100.00%> (+9.00%)` | :arrow_up: |
   | [bin/templates/cordova/lib/check\_reqs.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jaGVja19yZXFzLmpz) | `51.69% <0.00%> (-0.49%)` | :arrow_down: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=footer). Last update [566262c...dcf408d](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] codecov-io edited a comment on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-612303146
 
 
   # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=h1) Report
   > Merging [#948](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/6402e7b75504bcfb9e52e0f3df4abe07c4cfef58&el=desc) will **increase** coverage by `1.86%`.
   > The diff coverage is `100.00%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/948/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master     #948      +/-   ##
   ==========================================
   + Coverage   65.53%   67.40%   +1.86%     
   ==========================================
     Files          21       21              
     Lines        1828     1856      +28     
   ==========================================
   + Hits         1198     1251      +53     
   + Misses        630      605      -25     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [bin/templates/cordova/Api.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL0FwaS5qcw==) | `50.00% <100.00%> (+3.16%)` | :arrow_up: |
   | [...lates/cordova/lib/config/GradlePropertiesParser.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jb25maWcvR3JhZGxlUHJvcGVydGllc1BhcnNlci5qcw==) | `86.27% <100.00%> (+9.60%)` | :arrow_up: |
   | [bin/templates/cordova/lib/prepare.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9wcmVwYXJlLmpz) | `43.54% <100.00%> (+9.00%)` | :arrow_up: |
   | [bin/templates/cordova/lib/check\_reqs.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jaGVja19yZXFzLmpz) | `51.69% <0.00%> (-0.49%)` | :arrow_down: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=footer). Last update [6402e7b...3285cbc](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] codecov-io edited a comment on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-612303146
 
 
   # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=h1) Report
   > Merging [#948](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/6402e7b75504bcfb9e52e0f3df4abe07c4cfef58&el=desc) will **increase** coverage by `1.92%`.
   > The diff coverage is `100.00%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/948/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master     #948      +/-   ##
   ==========================================
   + Coverage   65.53%   67.45%   +1.92%     
   ==========================================
     Files          21       21              
     Lines        1828     1856      +28     
   ==========================================
   + Hits         1198     1252      +54     
   + Misses        630      604      -26     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [bin/templates/cordova/Api.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL0FwaS5qcw==) | `50.00% <100.00%> (+3.16%)` | :arrow_up: |
   | [...lates/cordova/lib/config/GradlePropertiesParser.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jb25maWcvR3JhZGxlUHJvcGVydGllc1BhcnNlci5qcw==) | `86.27% <100.00%> (+9.60%)` | :arrow_up: |
   | [bin/templates/cordova/lib/prepare.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9wcmVwYXJlLmpz) | `43.54% <100.00%> (+9.00%)` | :arrow_up: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=footer). Last update [6402e7b...3285cbc](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] timbru31 commented on a change in pull request #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
timbru31 commented on a change in pull request #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#discussion_r408352472
 
 

 ##########
 File path: bin/templates/cordova/lib/config/GradlePropertiesParser.js
 ##########
 @@ -103,6 +110,34 @@ class GradlePropertiesParser {
         });
     }
 
+    _isJVMMemoryLessThanRecommended (memoryValue, recommendedMemoryValue) {
+        const UNIT = 2;
+        const SIZE = 1;
+        const regex = /-Xmx+([0-9]+)+([mMgGkK])/;
+
+        const recommendedCapture = regex.exec(recommendedMemoryValue);
+        const recommendedBase = this._getBaseJVMSize(recommendedCapture[SIZE], recommendedCapture[UNIT]);
+        const memoryCapture = regex.exec(memoryValue);
+        const memoryBase = this._getBaseJVMSize(memoryCapture[SIZE], memoryCapture[UNIT]);
+
+        return memoryBase < recommendedBase;
+    }
+
+    _getBaseJVMSize (size, unit) {
+        const KILOBYTE = 1024;
+        const MEGABYTE = 1048576;
+        const GIGABYTE = 1073741824;
+
+        switch (unit.toLowerCase()) {
+        case 'k': return size * KILOBYTE;
+        case 'm': return size * MEGABYTE;
+        case 'g': return size * GIGABYTE;
+        }
+
+        events.emit('warn', '[Gradle Properties] Unknown memory size unit (' + unit + ')');
 
 Review comment:
   I'd prefer a template string instead.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] codecov-io edited a comment on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-612303146
 
 
   # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=h1) Report
   > Merging [#948](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/6402e7b75504bcfb9e52e0f3df4abe07c4cfef58&el=desc) will **increase** coverage by `1.92%`.
   > The diff coverage is `100.00%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/948/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master     #948      +/-   ##
   ==========================================
   + Coverage   65.53%   67.45%   +1.92%     
   ==========================================
     Files          21       21              
     Lines        1828     1856      +28     
   ==========================================
   + Hits         1198     1252      +54     
   + Misses        630      604      -26     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [bin/templates/cordova/Api.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL0FwaS5qcw==) | `50.00% <100.00%> (+3.16%)` | :arrow_up: |
   | [...lates/cordova/lib/config/GradlePropertiesParser.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jb25maWcvR3JhZGxlUHJvcGVydGllc1BhcnNlci5qcw==) | `86.27% <100.00%> (+9.60%)` | :arrow_up: |
   | [bin/templates/cordova/lib/prepare.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9wcmVwYXJlLmpz) | `43.54% <100.00%> (+9.00%)` | :arrow_up: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=footer). Last update [6402e7b...3285cbc](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] codecov-io edited a comment on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-612303146
 
 
   # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=h1) Report
   > Merging [#948](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/6402e7b75504bcfb9e52e0f3df4abe07c4cfef58&el=desc) will **increase** coverage by `1.86%`.
   > The diff coverage is `100.00%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/948/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master     #948      +/-   ##
   ==========================================
   + Coverage   65.53%   67.40%   +1.86%     
   ==========================================
     Files          21       21              
     Lines        1828     1856      +28     
   ==========================================
   + Hits         1198     1251      +53     
   + Misses        630      605      -25     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [bin/templates/cordova/Api.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL0FwaS5qcw==) | `50.00% <100.00%> (+3.16%)` | :arrow_up: |
   | [...lates/cordova/lib/config/GradlePropertiesParser.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jb25maWcvR3JhZGxlUHJvcGVydGllc1BhcnNlci5qcw==) | `86.27% <100.00%> (+9.60%)` | :arrow_up: |
   | [bin/templates/cordova/lib/prepare.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9wcmVwYXJlLmpz) | `43.54% <100.00%> (+9.00%)` | :arrow_up: |
   | [bin/templates/cordova/lib/check\_reqs.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jaGVja19yZXFzLmpz) | `51.69% <0.00%> (-0.49%)` | :arrow_down: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=footer). Last update [6402e7b...bc03ef4](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-613013151
 
 
   After looking at http://localhost:3000/docs/en/dev/guide/platforms/android/index.html#setting-gradle-properties
   
   I'm wondering if I should rename the `jvmargs` flag to `cdvJvmArgs` to keep things consistent with the other flags we expose.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] breautek merged pull request #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
breautek merged pull request #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] breautek commented on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-613727767
 
 
   Hi @timbru31 
   
   > Should we move the KILOBYTE, MEGABYTE and GIGABYTE constants to something more global
   
   We can, and will likely be more appropriate. Where would you suggest? Something like this I would think would be best suited in `cordova-common` in my opinion, but if that's the route we take, I'd prefer to add it to `cordova-common` and eventually refactor `cordova-android` to use it instead of waiting for a `cordova-common` release (unless if we can get that quick enough...)
   
   > The recommendedCapture and recommendedBase are (or at least should) be the same, too - can we move this to something more global, too?
   
   This uses a regex that specifically parses the jvm arg `-Xmx` flag, so I'm not sure how useful it would be in a global setting. `_getBaseJVMSize` could be something that moved to something more global (with a function rename of course) as it's responsible for converting a memory value to bytes. (e.g. 1k to 1024 bytes).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] breautek removed a comment on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
breautek removed a comment on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-613013151
 
 
   After looking at http://localhost:3000/docs/en/dev/guide/platforms/android/index.html#setting-gradle-properties
   
   I'm wondering if I should rename the `jvmargs` flag to `cdvJvmArgs` to keep things consistent with the other flags we expose.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] codecov-io edited a comment on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-612303146
 
 
   # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=h1) Report
   > Merging [#948](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/6402e7b75504bcfb9e52e0f3df4abe07c4cfef58&el=desc) will **increase** coverage by `1.92%`.
   > The diff coverage is `100.00%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/948/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master     #948      +/-   ##
   ==========================================
   + Coverage   65.53%   67.45%   +1.92%     
   ==========================================
     Files          21       21              
     Lines        1828     1856      +28     
   ==========================================
   + Hits         1198     1252      +54     
   + Misses        630      604      -26     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [bin/templates/cordova/Api.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL0FwaS5qcw==) | `50.00% <100.00%> (+3.16%)` | :arrow_up: |
   | [...lates/cordova/lib/config/GradlePropertiesParser.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jb25maWcvR3JhZGxlUHJvcGVydGllc1BhcnNlci5qcw==) | `86.27% <100.00%> (+9.60%)` | :arrow_up: |
   | [bin/templates/cordova/lib/prepare.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9wcmVwYXJlLmpz) | `43.54% <100.00%> (+9.00%)` | :arrow_up: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=footer). Last update [6402e7b...bc03ef4](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] codecov-io commented on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
codecov-io commented on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-612303146
 
 
   # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=h1) Report
   > Merging [#948](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/6402e7b75504bcfb9e52e0f3df4abe07c4cfef58&el=desc) will **increase** coverage by `1.86%`.
   > The diff coverage is `100.00%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/948/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master     #948      +/-   ##
   ==========================================
   + Coverage   65.53%   67.40%   +1.86%     
   ==========================================
     Files          21       21              
     Lines        1828     1856      +28     
   ==========================================
   + Hits         1198     1251      +53     
   + Misses        630      605      -25     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [bin/templates/cordova/Api.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL0FwaS5qcw==) | `50.00% <100.00%> (+3.16%)` | :arrow_up: |
   | [...lates/cordova/lib/config/GradlePropertiesParser.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jb25maWcvR3JhZGxlUHJvcGVydGllc1BhcnNlci5qcw==) | `86.27% <100.00%> (+9.60%)` | :arrow_up: |
   | [bin/templates/cordova/lib/prepare.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9wcmVwYXJlLmpz) | `43.54% <100.00%> (+9.00%)` | :arrow_up: |
   | [bin/templates/cordova/lib/check\_reqs.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jaGVja19yZXFzLmpz) | `51.69% <0.00%> (-0.49%)` | :arrow_down: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=footer). Last update [6402e7b...3285cbc](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] codecov-io edited a comment on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-612303146
 
 
   # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=h1) Report
   > Merging [#948](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/6402e7b75504bcfb9e52e0f3df4abe07c4cfef58&el=desc) will **increase** coverage by `1.86%`.
   > The diff coverage is `100.00%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/948/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master     #948      +/-   ##
   ==========================================
   + Coverage   65.53%   67.40%   +1.86%     
   ==========================================
     Files          21       21              
     Lines        1828     1856      +28     
   ==========================================
   + Hits         1198     1251      +53     
   + Misses        630      605      -25     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [bin/templates/cordova/Api.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL0FwaS5qcw==) | `50.00% <100.00%> (+3.16%)` | :arrow_up: |
   | [...lates/cordova/lib/config/GradlePropertiesParser.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jb25maWcvR3JhZGxlUHJvcGVydGllc1BhcnNlci5qcw==) | `86.27% <100.00%> (+9.60%)` | :arrow_up: |
   | [bin/templates/cordova/lib/prepare.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9wcmVwYXJlLmpz) | `43.54% <100.00%> (+9.00%)` | :arrow_up: |
   | [bin/templates/cordova/lib/check\_reqs.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jaGVja19yZXFzLmpz) | `51.69% <0.00%> (-0.49%)` | :arrow_down: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=footer). Last update [6402e7b...3285cbc](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] codecov-io edited a comment on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-612303146
 
 
   # [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=h1) Report
   > Merging [#948](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=desc) into [master](https://codecov.io/gh/apache/cordova-android/commit/6402e7b75504bcfb9e52e0f3df4abe07c4cfef58&el=desc) will **increase** coverage by `1.92%`.
   > The diff coverage is `100.00%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/cordova-android/pull/948/graphs/tree.svg?width=650&height=150&src=pr&token=q14nMf6C5a)](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master     #948      +/-   ##
   ==========================================
   + Coverage   65.53%   67.45%   +1.92%     
   ==========================================
     Files          21       21              
     Lines        1828     1856      +28     
   ==========================================
   + Hits         1198     1252      +54     
   + Misses        630      604      -26     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=tree) | Coverage Δ | |
   |---|---|---|
   | [bin/templates/cordova/Api.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL0FwaS5qcw==) | `50.00% <100.00%> (+3.16%)` | :arrow_up: |
   | [...lates/cordova/lib/config/GradlePropertiesParser.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9jb25maWcvR3JhZGxlUHJvcGVydGllc1BhcnNlci5qcw==) | `86.27% <100.00%> (+9.60%)` | :arrow_up: |
   | [bin/templates/cordova/lib/prepare.js](https://codecov.io/gh/apache/cordova-android/pull/948/diff?src=pr&el=tree#diff-YmluL3RlbXBsYXRlcy9jb3Jkb3ZhL2xpYi9wcmVwYXJlLmpz) | `43.54% <100.00%> (+9.00%)` | :arrow_up: |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=footer). Last update [6402e7b...bc03ef4](https://codecov.io/gh/apache/cordova-android/pull/948?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-android] timbru31 commented on issue #948: Feature: JVM Args flag

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #948: Feature: JVM Args flag
URL: https://github.com/apache/cordova-android/pull/948#issuecomment-614521612
 
 
   > We can, and will likely be more appropriate. Where would you suggest? Something like this I would think would be best suited in `cordova-common` in my opinion, but if that's the route we take, I'd prefer to add it to `cordova-common` and eventually refactor `cordova-android` to use it instead of waiting for a `cordova-common` release (unless if we can get that quick enough...)
   
   +1
   
   > The recommendedCapture and recommendedBase are (or at least should) be the same, too - can we move this to something more global, too?
   
   Convinced :)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org