You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,18 @@
1
1
NativeScript CLI Changelog
2
2
================
3
3
4
+
1.7.1 (2016, March 30)
5
+
==
6
+
7
+
### New
8
+
*[Implemented #1634](https://github.com/NativeScript/nativescript-cli/issues/1634): Replace plugin variables in all .xml files of android's plugin code.
9
+
10
+
### Fixed
11
+
*[Fixed #1610](https://github.com/NativeScript/nativescript-cli/issues/1610): `tns plugin add <plugin>` has issues with postinstall scripts.
12
+
*[Fixed #1610](https://github.com/NativeScript/nativescript-cli/issues/1612): Unable to execute unit tests on iOS Simulator in some cases.
> Both scripts require that you have **.NET 4.0 or later** installed on your system. You can download .NET 4.6.1 from this [link](http://go.microsoft.com/fwlink/?LinkId=671729).
83
+
84
+
85
+
### Manual Setup
86
+
72
87
* Windows 7 SP1 or later
73
88
* The latest Node.js [0.10.x](https://nodejs.org/dist/latest-v0.10.x/), [0.12.x](https://nodejs.org/dist/latest-v0.12.x/), [4.x](https://nodejs.org/dist/latest-v4.x/) or [5.x](https://nodejs.org/dist/latest-v5.x/) stable official release
* The latest Node.js [0.10.x](https://nodejs.org/dist/latest-v0.10.x/), [0.12.x](https://nodejs.org/dist/latest-v0.12.x/), [4.x](https://nodejs.org/dist/latest-v4.x/) or [5.x](https://nodejs.org/dist/latest-v5.x/) stable official release
130
153
* For iOS development
@@ -325,7 +348,7 @@ MyApp/
325
348
```
326
349
327
350
* The `app` directory is the **development space for your application**. You should modify all common and platform-specific code within this directory. When you run `prepare <Platform>`, the NativeScript CLI copies relevant content to the platform-specific folders for each target platform.
328
-
* The `platforms` directory is created empty. When you add a target platform to your project, the NativeScript CLI creates a new subdirectory with the platform name. The subdirectory contains the ready-to-build resources of your app. When you run `prepare <Platform>`, the NativeScript CLI copies relevant content from the `app` directory to the platform-specific subdirectory for each target platform.<br/>In the `platforms` directory, you can safely modify configuration files such as `AndroidManifest.xml` and `Info.plist`.
351
+
* The `platforms` directory is created empty. When you add a target platform to your project, the NativeScript CLI creates a new subdirectory with the platform name. The subdirectory contains the ready-to-build resources of your app. When you run `prepare <Platform>`, the NativeScript CLI copies relevant content from the `app` directory to the platform-specific subdirectory for each target platform.
329
352
330
353
[Back to Top][1]
331
354
@@ -398,9 +421,13 @@ You can develop shared functionality or design in common files. To indicate that
398
421
399
422
### Development in `platforms`
400
423
401
-
In `platforms`, you can safely modify files which are part of the native project structure and do not have a corresponding source located in the `app` directory in the root. For example, `AndroidManifest.xml` and `Info.plist`.
424
+
> **IMPORTANT:** Avoid editing files located in the `platforms` subdirectory because the NativeScript CLI overrides such files during the `prepare <Platform>` using the contents of the `app` directory.
425
+
426
+
### Modifying Configuration Files
402
427
403
-
**Do not modify files and resources that have a corresponding file in the `app` directory in the root**, such as application scripts, icons, and splash screens. The NativeScript CLI overrides such files during the `prepare <Platform>` operation with the content from `app`.
428
+
The NativeScript CLI respects any platform configuration files placed inside `app/App_Resources`. Those files are respectively `app/App_Resources/AndroidManifest.xml` for Android and `app/App_Resources/Info.plist` for iOS.
429
+
430
+
Additionaly, you can modify `app/App_Resources/build.xcconfig` and `app/App_Resources/app.gradle` for adding/removing additional build properties for iOS and Android, respectively.
404
431
405
432
[Back to Top][1]
406
433
@@ -417,8 +444,6 @@ tns prepare ios
417
444
418
445
Keep in mind that `prepare` overrides changes made to the platform-specific subdirectory in `platforms`. For more information, see [Development in platforms](#development-in-platforms).
419
446
420
-
> **IMPORTANT:** Always run `prepare <Platform>` before running `build <Platform>`, `deploy <Platform>`, or `emulate <Platform>`. This ensures that the NativeScript CLI will build an application package with your latest code and resources.
421
-
422
447
[Back to Top][1]
423
448
424
449
## Build Your Project
@@ -434,7 +459,9 @@ The NativeScript CLI calls the SDK for the selected target platform and uses it
434
459
435
460
When you build for Android, the NativeScript CLI saves the application package as an `APK` in `platforms`→`android`→`bin`.
436
461
437
-
When you build for iOS, if the `--device` flag is not set, the NativeScript CLI builds your project for the native emulator and saves the application package as an `APP` in `platforms`→`ios`→`build`→`emulator`. If the `--device` flag is set, the NativeScript CLI builds your project for device and saves the application package as an `IPA` in `platforms`→`ios`→`build`→`device`.
462
+
When you build for iOS, the NativeScript CLI will either build for a device, if there's a device attached, or for the native emulator if there are no devices attached. To trigger a native emulator build when a device is attached, set the `--emulator` flag.
463
+
464
+
The native emulator build is saved as an `APP` in `platforms`→`ios`→`build`→`emulator`. The device build is saved as an `IPA` in `platforms`→`ios`→`build`→`device`.
438
465
439
466
> **IMPORTANT:** To build your app for an iOS device, you must configure a valid certificate and provisioning profile pair, and have that pair present on your system for code signing your application package. For more information, see [iOS Code Signing - A Complete Walkthrough](http://seventhsoulmountain.blogspot.com/2013/09/ios-code-sign-in-complete-walkthrough.html).
install("Java SE Development Kit","Installing the Java SE Development Kit... This might take some time, please, be patient. (You will be prompted for your password)",'brew cask install java',false,false)
85
-
execute('echo "export JAVA_HOME=$(/usr/libexec/java_home)" >> ~/.profile',"Unable to set JAVA_HOME")
execute("echo y | #{android_executable} update sdk --filter platform-tools --all --no-ui","There seem to be some problems with the Android configuration")
118
+
execute("echo y | #{android_executable} update sdk --filter tools --all --no-ui","There seem to be some problems with the Android configuration")
119
+
execute("echo y | #{android_executable} update sdk --filter android-23 --all --no-ui","There seem to be some problems with the Android configuration")
120
+
execute("echo y | #{android_executable} update sdk --filter build-tools-23.0.2 --all --no-ui","There seem to be some problems with the Android configuration")
121
+
execute("echo y | #{android_executable} update sdk --filter extra-android-m2repository --all --no-ui","There seem to be some problems with the Android configuration")
99
122
100
123
puts"The ANDROID_HOME and JAVA_HOME environment variables have been added to your .profile. Restart the terminal to use them."
0 commit comments