-
-
Notifications
You must be signed in to change notification settings - Fork 197
Improve Getting-started for Android #1159
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
Conversation
Test PASSed. |
}).future<string>()(); | ||
} | ||
|
||
private trySpawnAndroidHelp(androidPath: string): IFuture<boolean>{ |
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.
Isn't it better to name this method trySetAndroidPath
? It is unclear when reading getPathToAndroidExecutable
that trySpawnAndroidHelp
actually sets the path to the executable.
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.
yes, I've changed the logic to set the path in this method, but I forgot to rename it 😺
63e5852
to
c7324b6
Compare
Test PASSed. |
c7324b6
to
5983804
Compare
Test FAILed. |
run ci |
Test FAILed. |
run ci |
Test PASSed. |
5983804
to
d568cfe
Compare
Test PASSed. |
d568cfe
to
5706e92
Compare
Test PASSed. |
5706e92
to
c9a612a
Compare
Test PASSed. |
} | ||
} else { | ||
hasProblemWithJavaVersion = true; | ||
this.printMessage("Error executing command 'javac'. Make sure you have java installed and set JAVA_HOME environment variable.", additionalMessage); |
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.
It is not enough to install java (the JRE). you need to install JDK. This should be reflected in the message.
c9a612a
to
67dee5d
Compare
Test PASSed. |
67dee5d
to
aa33c33
Compare
Test PASSed. |
👍 |
* Remove requirement to have `<android-sdk>/tools` and `<android-sdk>/platform-tools` directories to your PATH - use them based on ANDROID_HOME variable. * Based on the above point - replace all calls to `android` directly with correct path to the `android` executable. * Remove requirement for JAVA added in your PATH - validate it by using JAVA_HOME. * Improve error messages when ANDROID_HOME is not set - for example warning about missing compile SDK will inform you in case ANDROID_HOME is not set. * Improve ANDROID_HOME checks - validate that directories like "extras", "tools", "platform-tools" exist (at least on of them). * Validate JAVA version in doctor command. * Sometimes `build-tools` directories are not called with version(`22.0.1`), but have the name: `build-tools-22.0.1` - make sure we will be able to use such dirs * Skip cocoapods warnings on Linux and Windows (for `tns doctor` command).
aa33c33
to
d415621
Compare
Test PASSed. |
…command Improve Getting-started for Android
<android-sdk>/tools
and<android-sdk>/platform-tools
directories to your PATH - use them based on ANDROID_HOME variable.android
directly with correct path to theandroid
executable.build-tools
directories are not called with version(22.0.1
), but have the name:build-tools-22.0.1
- make sure we will be able to use such dirstns doctor
command).