Releases: NativeScript/nativescript-cli
Releases · NativeScript/nativescript-cli
v5.0.0
Breaking
- Existing applications that are using older Android runtime (not 5.0.0 one), but are built with CLI 5.0.0, may experience some changes - until now CLI was always passing parameter to gradle
-PsupportVersion=26.0.0-alpha1. As CLI no longer passes this version, the default one from build.gradle will be used (for example 27.0.1). Check this issue for more information. In case you want to use the old version in your application, add the following in yourapp.gradle:
project.ext.supportVersion = "26.0.0-alpha1"
- CLI will not allow building for iOS with Xcode 8 or below. Check this issue for more information.
- CLI no longer support macOS Sierra and below. In case you are using such OS, CLI will print error message on each command. It will not stop you, but certain features will not work and we will not investigate them.
tns debug ios --inspectorwill not work on macOS Sierra and below. - You will not be able to build applications for Android without installing Android SDK 28. You can install Android SDK 28 and build tools 28 by executing the following commands:
$ANDROID_HOME/tools/bin/sdkmanager "build-tools;28.0.1"
$ANDROID_HOME/tools/bin/sdkmanager "platforms;android-28"
tns createcommand is interactive now. In case you are using it in CI environment where the shell is marked as TTY (Travis for example), the CI will hang as it will wait for selection. You can get back the old behavior by passing--js:tns create <name> --js. In case the terminal is not interactive, CLI will use the old behavior. More information is available in this issue.
New
- Implemented #1945: Add
tns plugin createcommand. - Implemented #3040: Ability to have different app identifiers for iOS and Android.
- Implemented #3813: Ability to preview NativeScript apps without any local setup -
tns previewcommand. - Implemented #3829: Interactive
tns create. - Implemented #3843: Make new Android livesync reuse socket connection.
- Implemented #3866: Read registry from npm config instead of hard-wiring to registry.npmjs.org.
- Implemented #3875: Add hot module replacement option (
--hmr) fortns run [<platform>]command - it will not to restart the app on js/ts changes. - Implemented #3886: Drop support for macOS Sierra and below.
- Implemented #3887: CLI should not allow execution of iOS commands with Xcode 8 and below.
- Implemented #3923: Remove requirement for Android Support Repository local installation.
- Implemented #3991: Require Android SDK 28 for compilation.
- Implemented #4036: Ability to run with bundle option on multiple platforms -
tns run --bundlecommand.
Fixed
- Fixed #3549: Podfile generation broken on livesync
- Fixed #3686: Pod install fails with non-error message for fresh installations
- Fixed #3878: Prompter for mail on postinstall is very obligatory
- Fixed #3910:
tns platform add iosshould not be executed on non-macOS - Fixed #3912: Build fails with Xcode 10 with error could not find included file
../plugins-debug.xcconfigin search paths - Fixed #3920: iOS apps will not start with Xcode 10
- Fixed #3932: Plugins' platforms directory should not exist in tns_modules
- Fixed #3934: Unable to create project from scoped package
- Fixed #3937: The app cannot be recovered with livesync after an unhandled exception on iOS
- Fixed #3957: Always have to run plugin tests twice on iOS - Failed to load Info.plist from bundle at path
- Fixed #3984: Files are not deleted from platforms folder on
tns runcommand - Fixed #3986:
tns debug ioscommand fails in some cases on iOS Simulator - Fixed #4007: Application built in release has TypeScript files
- Fixed #4010:
node_modulesare prepared twice on initial run
v4.2.4
Fixed
- Fixed #3832: Unable to work with devices with numeric identifiers
- Fixed #3881: Replace forum references with stack overflow.
- Fixed #3883: CLI installs the app on every change
- Fixed #3893: [API] Errors are raised when emulator lost/found event is raised.
- Fixed #3893: [API] Android emulator image display names are not correct.
- Fixed #3894:
Socket Error: Error: write ECONNABORTEDis raised when trying to run on Android
v4.2.3
Fixed
- Fixed #3840: Unable to reconnect to iOS Simulator when debugging
- Fixed #3824:
tns createcommand not using proxy set withtns proxy set
v3.4.4
Fixed
- Fixed #3830: Add support for building projects with Xcode 10 beta versions
v4.2.2
4.2.2 (2018, August 16)
Fixed
- Fixed #3818: Unable to start application on Android device with a custom activity containing capital letters
- Fixed #3820: A command help is shown on native build error
- Fixed #3821: [Sporadic] Unable to start iOS debugger from VSCode extension
v4.2.1
v4.2.1
Fixed
- Fixed #3763: Duplicated entries in
tns runlog while livesyncing - Fixed #3802: Unable to use templates without
App_Resources - Fixed #3803:
tns run ioscommand fails if tns-ios version is a tag - Fixed #3805:
tns run androidfails in case you do not have Android emulator images
v4.2.0
New
- Implemented #3023:
tns device --available-devicesto list all emulator images - Implemented #3717: Speed up device detection
- Implemented #3718: Install the Android project dependencies only when needed
- Implemented #3719: Build plugins with the same gradle versions as the runtime
- Implemented #3735: Speed up adding native platform
- Implemented #3750: Add hook for
checkForChanges - Implemented #3733: [API] Expose API for listing and starting emulators and simulators when using CLI as library.
- Implemented #3797: Use sockets to LiveSync changes on Android
- Implemented #3798: Allow templates to be full application - full support
Fixed
- Fixed #2485: EACCES (Permission denied) when livesync Angular projects on Samsung devices
- Fixed #2547:
tns-androidremains inside dependencies whentns build/run androidfails - Fixed #3132: Xcode 9: Requires Provisioning Profile Error
- Fixed #3602: Livesync does not work on Android P
- Fixed #3610: Livesync ignores aar file changes inside a plugin
- Fixed #3672:
tns run/debug ios --syncAllFileswith cocoapods has issues - Fixed #3707: CLI generates aar files on changes in
app/(livesync with webpack) - Fixed #3710: CLI regenerates ALL aar files on changes in
node_modules - Fixed #3723: iOS build for device fails with Xcode 10 beta versions
- Fixed #3729: File references inside .pbxproject are incorrect when there's space in project path
- Fixed #3741: Platforms folder need to be removed after a bitcode error
- Fixed #3744: During all gradle operations "Gradle build" message is printed
- Fixed #3751: Problem building nativescript-google-maps-sdk on Android
- Fixed #3752: Increase the default timeout for debug command from 5 to 10 seconds
- Fixed #3768: Skip preparation of plugins native files in case they are not changed
- Fixed #3794: Update lodash to fix a security vulnerability.
v4.1.2
Fixed
- Fixed #2283: On adding test frameworks their peerDependencies are not installed
- Fixed #3689:
tns test <platform>throws exception
v4.1.1
Fixed
- Fixed #3625:
tns run ios --device fakeIdstart random emulator - Fixed #3633: iOS Debugging: Close frontend socket unconditionally
- Fixed #3644:
tns run ios --justlaunchdo not exit on real iOS devices - Fixed #3658: Don't rebuild application for android when something is changed in App_Resources/iOS
- Fixed #3660: A deprecation warning is shown when
tns debug ioscommand is executed with node v10 - Fixed #3662: Fix project creation when template v2 is used
- Fixed #3666: Unable to generate icons when the Contents.json is not generated by Xcode
- Fixed #3675: File connections to iOS device work for a single app only
- Fixed #3677: docs: Add alias to plugin add/install
- Fixed #3682: Use google as default repo when building plugins
v4.1.0
4.1.0 (2018, May 31)
New
- Implemented #3321: Work simultaneously with multiple iOS Simulators
- Implemented #3404: Start LiveSync watcher earlier during run
- Implemented #3570: Add deprecation message for macOS versions under High Sierra
- Implemented #3581: Drop support for Node.js 4.x.x
- Implemented #3582: Deprecate support for Node.js 6.x.x
- Implemented #3605: Support Java 10
- Implemented #3636: Allow templates to be full applications - BETA support
- Implemented #3650: Enable using source code in iOS part of plugins
Fixed
- Fixed #1398: CLI detects iOS devices connected over Wi-fi and fails to work with them
- Fixed #2831:
tns debug android --startreleases the terminal session - Fixed #3580: API: isValidNativeScriptProject returns incorrect result
- Fixed #3593: Tracking for used Debug tools is not correct
- Fixed #3629:
tns debug android --startdoes not print application console.logs