Skip to content

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 android@4.0.1 - 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 android@4.0.1` - 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.

4 participants