- Replaced
.tnsproject
withpackage.json
to let you use npm and work with custom plugins in your project.
The first time you run any NativeScript command on an existing project, your.tnsproject
file will be automatically transformed into apackage.json
file describing your project configuration and data. After this, make sure to commit and push your changes if you are using version control.
After the transformation is complete, you can install and use custom NativeScript plugins inside your project.
- Implemented #510: You can work with custom NativeScript plugins in your project. You can add a plugin from an npm package, a local folder, a URL or a
.tar.gz
file. For more information, run$ tns help plugin
- Implemented #362: You can use npm as package manager for your NativeScript projects.
- Updated #358: Multiple improvements and bug fixes for iOS debugging.
- Fixed #446: Autocompletion might continue to work after disabling becauce
tns autocomplete disable
does not update.profile
files. - Fixed #391: The default 9-patch image for Android projects is malformed and causes error messages in the build log.
- Fixed #324: When you run commands for the
ios
platform, the NativeScript CLI might showUnable to find adb in PATH. Default one from %s resources will be used. the following unrelated adb warning:Unable to find adb in PATH. Default one from %s resources will be used.
- Fixed #309: You cannot open the device log for streaming with the
tns device log
command.
- Fixed #498: On some Linux and OS X systems, when the USER or SUDO_USER environment variables are missing, you cannot run NativeScript CLI commands. The following error appears when you attempt to run
nativescript
ortns
commands:TypeError: Arguments to path.join must be strings
.
- Fixed #459: You cannot add a third-party iOS native library to your project, if the path to the library contains spaces.
- Fixed #458: If you have installed Xcode 6.2 or earlier on your system, you cannot debug in the iOS Simulator.
- Fixed #413: If your project name contains a hyphen, the NativeScript CLI sets your application identifier inconsistently across the project.
- Implemented #447:
tns run ios
,tns run android
andtns emulate android
print the output of the running application in the console. - Implemented #441: Improved command-line completion.
- Implemented #416: Improved installation.
- Implemented #358: Improved
tns debug ios
.
- Fixed #446:
tns autocomplete disable
might not disable command-line completion properly. - Fixed #445: For some commands, HTML help is shown instead of the console help.
- Fixed #444: When you attempt to install the
nativescript
npm module usingsudo
, errors might be shown. - Fixed #443: When you attempt to configure command-line completion during installation,
ENOENT
error might be shown. - Fixed #442: The console does not show links properly.
- Fixed #394: On OS X or Linux systems, the NativeScript CLI does not resolve symlinks and you cannot build your apps.
- Fixed #391: The Android splash screen image in the template is malformed and causes errors in the build log.
- Fixed #324: If the Android SDK is not properly configured, when you run
tns build ios
,run ios
,tns deploy ios
ortns emulate ios
, the NativeScript CLI prints an irrelevant adb-related warning. - Fixed #309: You cannot open the device log for streaming with
tns device log
. - Fixed #276: On bash consoles, command-line completion does not work.
- Introduced new project structure. To migrate to the new structure, complete the following steps.
- Manually move all files and folders from the inner
app
folder one level up inside the outerapp
folder. - Remove the now empty inner
app
folder. - Verify that your project structure reflects the structure described here.
- Manually move all files and folders from the inner
- Implemented #388: Improved the
--log trace
global option. - Implemented #387: Improved installation.
- Implemented #350: Improved command-line completion.
- Implemented #175: You can run your app in Android virtual devices, created from the Google APIs images from the Android SDK.
- Implemented #88, #291: Introduced context-aware console help which you can access by running
tns <Command> -h
and extended HTML help which you access by runningtns help <Command>
.
- Fixed #380: When you run
tns build android
,tns run android
,tns deploy android
ortns emulate android
, the NativeScript CLI builds your project twice. - Fixed #371: On Android 5.x devices, NativeScript apps load very slowly on first run.
- Fixed #260: On bash consoles, the
open
command might stop working. - Fixed #257: On bash consoles, you cannot pass arguments with spaces, even if escaped.
- Fixed #251: On OS X systems, the command validation might not work properly.
- Fixed #248: On OS X systems, the
tns deploy
command might not release the console. - Fixed #169: The native Xcode project is created with an incorrect name.
- Fixed #348:
tns platform add ios
downloads the latest experimental version of the ios runtime instead of the latest stable version.
- Fixed #312:
tns platform add ios
does not preserve your app ID, if not default.
- Implemented #305, #322: You can quickly add or update your platform runtime to a specific version by running
tns platform update platform@version
For example:tns platform update [email protected]
The NativeScript team will publish experimental support for the latest versions of iOS and Android.
To list all available versions for android, run $ npm view tns-android versions
To list only experimental versions for android, run $ npm view tns-android dist-tags To list all available versions for ios, run $ npm view tns-ios versions
To list only experimental versions for ios, run $ npm view tns-ios dist-tags - Implemented #302: You can configure proxy settings for the NativeScript CLI.
- Fixed #299: You cannot build the default
Hello World
app for Android on OS X systems. - Fixed #297: You cannot install the NativeScript CLI.