-
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
Quick fix to support ANDROID_SDK_ROOT #656
Conversation
Codecov Report
@@ Coverage Diff @@
## master #656 +/- ##
==========================================
- Coverage 64.66% 64.61% -0.06%
==========================================
Files 18 18
Lines 1817 1820 +3
==========================================
+ Hits 1175 1176 +1
- Misses 642 644 +2
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #656 +/- ##
==========================================
- Coverage 64.66% 64.61% -0.06%
==========================================
Files 18 18
Lines 1817 1820 +3
==========================================
+ Hits 1175 1176 +1
- Misses 642 644 +2
Continue to review full report at Codecov.
|
|
||
if (!String(values[0]).startsWith('1.8.')) { | ||
throw new CordovaError( | ||
'Requirements check failed for JDK 8 (\'1.8.*\')! Detected version: ' + values[0] + '\n' + | ||
'Check your JAVA_HOME / ANDROID_HOME / PATH environment variables.' | ||
'Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.' |
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.
'Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.' | |
'Check your `ANDROID_SDK_ROOT` and `JAVA_HOME` PATH environment variables.' |
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 am not 100% convinced by this suggestion. It is possible that a developer could set a PATH environment variable that already includes the Android SDK bin directory.
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.
ah, then I misread the meaning.
'Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.' | |
'Check your `ANDROID_SDK_ROOT`, `JAVA_HOME` and `PATH` environment variables.' |
Is this WIP or should this be reviewed? Please decide. |
Co-Authored-By: brodybits <chris.brody@gmail.com>
Now tested, with one of the suggestions applied and my comment left on the other one. I would like to request a quick review, hope we can merge it soon. |
LGTM |
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.
Looks good in theory, we'll see if it also works with all the different installations out there.
This is a quick fix. Purpose is that upcoming major release of cordova-android should not depend on deprecated behavior as discussed in #617.
TODO:
NEEDS TO BE TESTEDnow tested on my own dev systemreviewFUTURE TODO: