Skip to content

Cherry-pick commits for 3.4.1 release #3310

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 4 commits into from
Jan 9, 2018

Conversation

rosen-vladimirov
Copy link
Contributor

No description provided.

Rob Lauer and others added 4 commits January 9, 2018 09:03
* Add check for JAVA 9

Currently Gradle cannot work with JAVA 9, so detect if it has been used and break the build for Android. Also the check will print warning when `tns doctor` is called.
Also update submodule, where the following change is applied:

Fix detection of Javac version

The command `javac -version` prints result to stderr when JAVA 8 is used and to stdout when JAVA 9 is used. Current check in CLI uses the stderr output, so when JAVA 9 is installed it fails to detect the correct version.
In order to support both JAVA 8 and JAVA 9, capture both stdout and stderr and get the version from there.
Also remove unneeded check for Java version - we care about JAVA Compiler, which is included in JDK.

* Handle case when Javac version is a single number (9 for example)

In some cases javac version is a single number, for example 9. In this case our validation fails to detect the correct version and to check if we support this version.
In order to resolve this issue, use the `appendZeroesToVersion` method in order to make the versin semver valid.
Change the return type of `validateJavacVersion` method - it does not require to return a Promise.
Add unit tests for `validateJavacVersion` method.
* release notes 3.4.0

* add implemented item

* remove a fixed issue from changelog
@rosen-vladimirov rosen-vladimirov self-assigned this Jan 9, 2018
@rosen-vladimirov rosen-vladimirov changed the base branch from master to release January 9, 2018 07:07
@miroslavaivanova
Copy link
Contributor

run ci

@rosen-vladimirov rosen-vladimirov merged commit 970e800 into release Jan 9, 2018
@rosen-vladimirov rosen-vladimirov deleted the merge-master-to-release branch January 9, 2018 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants