Skip to content

Commit 0f83229

Browse files
Merge pull request #938 from NativeScript/vladimirov/merge-post-1.3.0
Merge post 1.3.0 release in master
2 parents 75f1e10 + 643302e commit 0f83229

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ NativeScript CLI Changelog
44
1.3.0 (2015, September 16)
55
==
66

7+
### Breaking
8+
9+
`library add` command is deprecated and will be removed completely in one of our next releases (currently scheduled for 1.5).
10+
You cannot create NativeScript plugins with Android native code using Eclipse projects. You need to import your Eclipse project into Android Studio, convert it to Gradle build and consume the produced AAR file.
11+
You cannot use Apache Ant to create new projects for Android but you can continue build your existing Ant-based projects. Starting with NativeScript 1.3, Android builds require Gradle. Run `tns doctor` on the command line to learn more.
12+
Building NativeScript projects for Android requires Android SDK 22, Android SDK Build-tools 22, Android Support Repository and ANDROID_HOME environment variable set. Run `android` to configure Android SDK.
13+
714
### New
815
* [Implemented #390](https://github.com/NativeScript/nativescript-cli/issues/390): Support tns_modules from npm.
916
* [Implemented #686](https://github.com/NativeScript/nativescript-cli/issues/686): Support building of XCode workspaces.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -617,3 +617,6 @@ This software is licensed under the Apache 2.0 license, quoted <a href="LICENSE"
617617
[Gradle 2.3]: https://gradle.org/gradle-download/
618618
[Android SDK 21]: http://developer.android.com/sdk/index.html
619619
[Genymotion]: https://www.genymotion.com/#!/
620+
[CocoaPods 0.38.2]: https://guides.cocoapods.org/using/getting-started.html#getting-started
621+
[Android SDK Build-tools 22.0.0]: http://developer.android.com/sdk/index.html
622+
[Android Support Repository]: http://developer.android.com/sdk/index.html

docs/man_pages/index.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ Command | Description
2424
[platform list](project/configuration/platform.html) | Lists all platforms that the project currently targets.
2525
[platform&nbsp;remove&nbsp;`<Platform>`](project/configuration/platform-remove.html) | Removes the selected platform from the platforms that the project currently targets. This operation deletes all platform-specific files and subdirectories from your project.
2626
[platform update `<Platform>`](project/configuration/platform-update.html) | Updates the NativeScript runtime for the specified platform.
27-
[library add `<Platform>`](lib-management/library-add.html) | Adds a locally stored native library to the current project.
2827
[prepare `<Platform>`](project/configuration/prepare.html) | Copies relevant content from the app directory to the subdirectory for the selected target platform to let you build the project.
2928
[build `<Platform>`](project/testing/build.html) | Builds the project for the selected target platform and produces an application package or an emulator package.
3029
[deploy `<Platform>`](project/testing/deploy.html) | Deploys the project to a connected physical or virtual device.
3130
[emulate `<Platform>`](project/testing/emulate.html) | Deploys the project in the native emulator for the selected target platform.
3231
[run `<Platform>`](project/testing/run.html) | Runs your project on a connected device or in the native emulator, if configured.
33-
[debug `<Platform>`](project/testing/debug.html) | Debugs your project on a connected device.
32+
[debug `<Platform>`](project/testing/debug.html) | Debugs your project on a connected device.
3433
[install](project/configuration/install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
3534
[plugin](lib-management/plugin.html) | Lets you manage the plugins for your project.
3635
[livesync](project/testing/livesync.html) | Synchronizes the latest changes in your project to devices.
@@ -41,7 +40,7 @@ Command | Description
4140
[device](device/device.html) | Lists all recognized connected physical or virtual devices.
4241
[device log](device/device-log.html) | Opens the log stream for the selected device.
4342
[device run](device/device-run.html) | Runs the selected application on a connected device.
44-
[device list-applications](device/device-list-applications.html) | Lists the installed applications on all connected devices.
43+
[device list-applications](device/device-list-applications.html) | Lists the installed applications on all connected devices.
4544

4645
## Global Options
4746
Option | Description

lib/android-tools-info.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as semver from "semver";
66

77
export class AndroidToolsInfo implements IAndroidToolsInfo {
88
private static ANDROID_TARGET_PREFIX = "android";
9-
private static SUPPORTED_TARGETS = ["android-17", "android-18", "android-19", "android-21", "android-22"];
9+
private static SUPPORTED_TARGETS = ["android-17", "android-18", "android-19", "android-21", "android-22", "android-23"];
1010
private static MIN_REQUIRED_COMPILE_TARGET = 21;
1111
private static REQUIRED_BUILD_TOOLS_RANGE_PREFIX = ">=22";
1212
private static VERSION_REGEX = /^(\d+\.){2}\d+$/;

lib/services/android-project-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
141141
shell.sed('-i', /__TITLE_ACTIVITY__/, this.$projectData.projectName, stringsFilePath);
142142

143143
let gradleSettingsFilePath = path.join(this.platformData.projectRoot, "settings.gradle");
144-
shell.sed('-i', /__PROJECT_NAME__/, this.$projectData.projectName, gradleSettingsFilePath);
144+
shell.sed('-i', /__PROJECT_NAME__/, this.$projectData.projectId.split(".")[2], gradleSettingsFilePath);
145145
shell.sed('-i', /__APILEVEL__/, this.$options.sdk || this.$androidToolsInfo.getToolsInfo().wait().compileSdkVersion.toString(), manifestPath);
146146
}).future<void>()();
147147
}

0 commit comments

Comments
 (0)