Skip to content

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

Merged
merged 1 commit into from
Nov 9, 2015

Conversation

rosen-vladimirov
Copy link
Contributor

  • 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).

@rosen-vladimirov rosen-vladimirov self-assigned this Nov 8, 2015
@rosen-vladimirov rosen-vladimirov added this to the 1.5.0 milestone Nov 8, 2015
@ns-bot
Copy link

ns-bot commented Nov 8, 2015

Test PASSed.

}).future<string>()();
}

private trySpawnAndroidHelp(androidPath: string): IFuture<boolean>{
Copy link

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.

Copy link
Contributor Author

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 😺

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/improve-doctor-command branch from 63e5852 to c7324b6 Compare November 8, 2015 22:24
@ns-bot
Copy link

ns-bot commented Nov 8, 2015

Test PASSed.

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/improve-doctor-command branch from c7324b6 to 5983804 Compare November 8, 2015 23:26
@ns-bot
Copy link

ns-bot commented Nov 8, 2015

Test FAILed.

@rosen-vladimirov
Copy link
Contributor Author

run ci

@ns-bot
Copy link

ns-bot commented Nov 8, 2015

Test FAILed.

@rosen-vladimirov
Copy link
Contributor Author

run ci

@ns-bot
Copy link

ns-bot commented Nov 9, 2015

Test PASSed.

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/improve-doctor-command branch from 5983804 to d568cfe Compare November 9, 2015 07:26
@ns-bot
Copy link

ns-bot commented Nov 9, 2015

Test PASSed.

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/improve-doctor-command branch from d568cfe to 5706e92 Compare November 9, 2015 08:08
@ns-bot
Copy link

ns-bot commented Nov 9, 2015

Test PASSed.

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/improve-doctor-command branch from 5706e92 to c9a612a Compare November 9, 2015 08:16
@ns-bot
Copy link

ns-bot commented Nov 9, 2015

Test PASSed.

}
} else {
hasProblemWithJavaVersion = true;
this.printMessage("Error executing command 'javac'. Make sure you have java installed and set JAVA_HOME environment variable.", additionalMessage);
Copy link
Contributor

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.

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/improve-doctor-command branch from c9a612a to 67dee5d Compare November 9, 2015 10:03
@ns-bot
Copy link

ns-bot commented Nov 9, 2015

Test PASSed.

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/improve-doctor-command branch from 67dee5d to aa33c33 Compare November 9, 2015 11:03
@ns-bot
Copy link

ns-bot commented Nov 9, 2015

Test PASSed.

@teobugslayer
Copy link
Contributor

👍

* 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).
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/improve-doctor-command branch from aa33c33 to d415621 Compare November 9, 2015 12:16
@ns-bot
Copy link

ns-bot commented Nov 9, 2015

Test PASSed.

rosen-vladimirov added a commit that referenced this pull request Nov 9, 2015
…command

Improve Getting-started for Android
@rosen-vladimirov rosen-vladimirov merged commit 7587f3a into master Nov 9, 2015
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/improve-doctor-command branch November 9, 2015 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants