Releases: NativeScript/nativescript-cli
Releases · NativeScript/nativescript-cli
v5.2.0
5.2.0 (2018, February 13)
Implemented
- Implemented #3807: Enable app Podfile
- Implemented #4243: CLI command steps profiling and performance analytics
- Implemented #4305: Add official support for Node.js 11
- Implemented #4313: Track how many users used {N} CLI and Playground
- Implemented #4323: Skip CLI's postinstall in case it is not installed globally
- Implemented #4325: Angular apps should work with HMR out of the box
- Implemented #4343: Support Objective-C code in App Resources for iOS applications
Fixed
- Fixed #3122:
tns debug ios --debug-brk
fails the majority of the time - Fixed #3161:
tns test
command fails to find a running iOS simulator - Fixed #4232: Unit testing for freshly created angular project is broken on Android emulator
- Fixed #4253: LiveSync stops working in Preview app when make change in scss file
- Fixed #4255: Uninstalling NativeScript should also remove its extensions
- Fixed #4283:
tns run android
fails with private npm registry - Fixed #4300: Strange logs after project built for Android
- Fixed #4311: [iOS] Build with nativescript-plugin-firebase requires legacy build system
- Fixed #4324: High CPU utilization during
tns run
- Fixed #4327:
tns devices --availableDevices
prompts to install Xcode command line tools - Fixed #4347:
tns resources generate splashes <path to image>
fails for newly created project
v5.1.1
Merge pull request #4294 from NativeScript/vladimirov/fix-ios-sim-sto…
v5.1.0
5.1.0 (2018, December 12)
Implemented
- Implemented #2737: Make it possible
tns
to use Yarn as the package manager - Implemented #2992: Do not restart application when changing
.xml
,.html
or.css
file when debugging - Implemented #4068: Android application bundle initial support (build .aab files)
- Implemented #4152: Analytics: Get information for what has been tracked in Google Analytics
- Implemented #4200: Analytics: Add analytics for code-sharing projects usage
- Implemented #4201: Analytics: Track project property on every analytics hit
- Implemented #4211: Analytics: Track command options in analytics
Fixed
- Fixed #4075:
tns preview
- app is refreshed on ios devices when changing android specific files - Fixed #4141: Don't prepare the project on
tns preview
command - Fixed #4178: Broken files pattern in karma config
- Fixed #4198: The NativeScript Inspector is not closed on
Ctrl + C
- Fixed #4049:
tns
commands Removing Newline Added bynpm
frompackage.json
v5.0.3
5.0.3 (2018, December 4)
Fixed
- Fixed #4186: Fix stuck http requests/responses
- Fixed #4189: API: Fix "Cannot read property 'removeListener' of undefined" error on second stop of livesync to preview app
v5.0.2
5.0.2 (2018, November 29)
Implemented
- Implemented #4167: API: Expose previewAppLiveSyncError event when some error is thrown while livesyncing to preview app
Fixed
- Fixed #3962: If command 'tns plugin create .. ' failed , directory with plugin repository name must be deleted
- Fixed #4053: Update Nativescript cli setup scripts to use android sdk 28
- Fixed #4077: Platform add with framework path and custom version breaks run with "--bundle"
- Fixed #4129: tns preview doesn't sync changes when download 2 Playground projects
- Fixed #4135: Too many TypeScript "Watching for file changes" messages in console during build
- Fixed #4158: API: reset devices list when stopLiveSync method is called
- Fixed #4161: API: raise deviceLost event after timeout of 5 seconds
v5.0.1
5.0.1 (2018, November 14)
Implemented
- Implemented #4083: API: Add public API for deviceFound and deviceLost for preview devices
- Implemented #4087: API: Expose public method for getting the qr code of playground app
- Implemented #4093: API: Expose public api for starting the livesync operation to preview app
Fixed
- Fixed #2670: Command line
tns run android --clean
rebuilds - Fixed #4043:
tns preview
fails when local plugin is referenced with tag inpackage.json
- Fixed #4046:
tns debug ios
does not work with bigger projects on slower devices - Fixed #4055: API: Remove persisted emulator's data on deviceLost event
- Fixed #4056: API:
TypeError: Invalid Version: null
is thrown when emulator is stopped immediately after start - Fixed #4071: Unable to run
tns test <platform>
- Fixed #4073: Error is thrown when Node.js 11 is used
- Fixed #4076: Cannot connect to device socket when run debug with justlaunch
- Fixed #4079: API: Reset errors when fallback to list avds from director
- Fixed #4090:
tns preview
andtns platform add ...
issue - Fixed #4096: NativeScript v4 is not using the v4 of the app templates during project creation
- Fixed #4100: Apply
before-plugins.gradle
file in the pluginbuild.gradle
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 --inspector
will 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 create
command 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 create
command. - Implemented #3040: Ability to have different app identifiers for iOS and Android.
- Implemented #3813: Ability to preview NativeScript apps without any local setup -
tns preview
command. - 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 --bundle
command.
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 ios
should not be executed on non-macOS - Fixed #3912: Build fails with Xcode 10 with error could not find included file
../plugins-debug.xcconfig
in 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 run
command - Fixed #3986:
tns debug ios
command fails in some cases on iOS Simulator - Fixed #4007: Application built in release has TypeScript files
- Fixed #4010:
node_modules
are 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 ECONNABORTED
is raised when trying to run on Android
v4.2.3
Fixed
- Fixed #3840: Unable to reconnect to iOS Simulator when debugging
- Fixed #3824:
tns create
command not using proxy set withtns proxy set
v3.4.4
Fixed
- Fixed #3830: Add support for building projects with Xcode 10 beta versions