Skip to content

fix: platform update/clean commands may fail with Java 10 #3626

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 5 commits into from
May 28, 2018

Conversation

rosen-vladimirov
Copy link
Contributor

Add logic to validate environment based on the specified runtime version. This is required for the cases where the runtime version is not specified in the project's package.json but we need to verify if a runtime version can be used
For tns platform update <platform> command validate the runtime version that will be installed based on the passed argument. This has two cases:

  1. In case version is specified: tns platform update [email protected] - we'll get the 4.0.1 version and validate if it can be used with currently installed Java compiler version.
  2. In case version is not specified: tns platform update android - we'll not validate the java version here as we know we'll install at least 4.1.0 runtime, which is compatible with all Java versions

For tns platform clean <platform> command we need to validate the current platform immediately as the command removes it and adds the same version after that.

Depends on: NativeScript/nativescript-doctor#37 and telerik/mobile-cli-lib#1096

Add logic to validate environment based on the specified runtime version. This is required for the cases where the runtime version is not specified in the project's package.json but we need to verify if a runtime version can be used
For `tns platform update <platform>` command validate the runtime version that will be installed based on the passed argument. This has two cases:
1. In case version is specified: `tns platform update [email protected]` - we'll get the 4.0.1 version and validate if it can be used with currently installed Java compiler version.
2. In case version is not specified: `tns platform update android` - we'll not validate the java version here as we know we'll install at least 4.1.0 runtime, which is compatible with all Java versions

For `tns platform clean <platform>` command we need to validate the current platform immediately as the command removes it and adds the same version after that.
@rosen-vladimirov rosen-vladimirov added this to the 4.1.0 milestone May 28, 2018
@rosen-vladimirov rosen-vladimirov self-assigned this May 28, 2018
Copy link
Contributor

@Mitko-Kerezov Mitko-Kerezov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔨

@rosen-vladimirov
Copy link
Contributor Author

run ci

1 similar comment
@Natalia-Hristova
Copy link

run ci

@rosen-vladimirov rosen-vladimirov merged commit 2faf235 into release May 28, 2018
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-platform-commands branch May 28, 2018 16:56
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.

3 participants