Skip to content

chore: merge release into master #4481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Mar 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
215f454
fix: allow hmr + debugBrk in order to support useLegacyWorkflow:false…
DimitarTachev Mar 22, 2019
6c36359
fix: ensure running app only on LiveSync as its causing issues in debug
DimitarTachev Mar 22, 2019
1519b2e
Merge pull request #4465 from NativeScript/tachev/fix-debug-brk
Mar 22, 2019
90b593d
fix: update ns-dev-xcode to fix extension framework removal
KristianDD Mar 25, 2019
a68909a
chore: add wanrning for extensions beta support
KristianDD Mar 25, 2019
257e895
chore: fix comments
KristianDD Mar 25, 2019
97283d9
Merge pull request #4473 from NativeScript/kddimitrov/extensions-beta…
KristianDD Mar 25, 2019
b1fe851
Merge pull request #4471 from NativeScript/kddimitrov/update-nativesc…
rosen-vladimirov Mar 25, 2019
ef5cf65
chore: update Changelog for 5.3.0
rosen-vladimirov Mar 27, 2019
5dc2d9f
Merge pull request #4476 from NativeScript/vladimirov/changelog-530
rosen-vladimirov Mar 27, 2019
8ed7b5b
chore: set version to 5.3.1
rosen-vladimirov Mar 22, 2019
f0e77df
feat: add ability to pass schema and keys to preview app from public …
Fatme Mar 22, 2019
69442c9
test: add unit tests
Fatme Mar 22, 2019
43fda3b
fix: respect the schema only from nsconfig file
Fatme Mar 22, 2019
d50b5d4
fix: add support for android 'Q'
Fatme Mar 25, 2019
b720651
fix: livesync should stop when all devices are disconnected
rosen-vladimirov Mar 27, 2019
4971447
Merge pull request #4479 from NativeScript/release-patch
Mar 28, 2019
891381d
Merge branch 'release' into fatme/merge-release
Fatme Mar 28, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
NativeScript CLI Changelog
================

5.3.0 (2019, March 27)
==

### Implemented
* [Implemented #3965](https://github.com/NativeScript/nativescript-cli/issues/3965): [Beta] Support for iOS app extensions
* [Implemented #4389](https://github.com/NativeScript/nativescript-cli/issues/4389): Provide a way to use Hot Module Replacement (`--hmr`) by default for a project
* [Implemented #4392](https://github.com/NativeScript/nativescript-cli/issues/4392): Ability to run unit tests with `--bundle`
* [Implemented #4456](https://github.com/NativeScript/nativescript-cli/issues/4456): Official support for Hot Module Replacement (`--hmr`)

### Fixed
* [Fixed #4403](https://github.com/NativeScript/nativescript-cli/issues/4403): Exception in iOS app entry point not shown in terminal
* [Fixed #4440](https://github.com/NativeScript/nativescript-cli/issues/4440): `NativeScript can only run in Xcode version 6.0 or greater` error is shown on every iOS command
* [Fixed #4441](https://github.com/NativeScript/nativescript-cli/issues/4441): Nothing happens with app on device if you delete a file with bundle
* [Fixed #4458](https://github.com/NativeScript/nativescript-cli/issues/4458): Warnings for short imports are shown for browser code
* [Fixed #4459](https://github.com/NativeScript/nativescript-cli/pull/4459): API: Raise `debuggerAttached` only if app is restarted during debug


5.2.3 (2019, March 12)
==

Expand Down
4 changes: 0 additions & 4 deletions lib/commands/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ export class DebugPlatformCommand extends ValidatePlatformCommandBase implements
this.$errors.fail("--release flag is not applicable to this command");
}

if (this.$options.hmr && this.$options.debugBrk) {
this.$errors.fail("--debug-brk and --hmr flags cannot be combined");
}

const minSupportedWebpackVersion = this.$options.hmr ? LiveSyncCommandHelper.MIN_SUPPORTED_WEBPACK_VERSION_WITH_HMR : null;
this.$bundleValidatorHelper.validate(minSupportedWebpackVersion);

Expand Down
6 changes: 5 additions & 1 deletion lib/commands/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export class PreviewCommand implements ICommand {
env: this.$options.env
});

await this.$previewQrCodeService.printLiveSyncQrCode({ useHotModuleReload: this.$options.hmr, link: this.$options.link });
await this.$previewQrCodeService.printLiveSyncQrCode({
projectDir: this.$projectData.projectDir,
useHotModuleReload: this.$options.hmr,
link: this.$options.link
});
}

public async canExecute(args: string[]): Promise<boolean> {
Expand Down
3 changes: 2 additions & 1 deletion lib/common/declarations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,8 @@ declare const enum ErrorCodes {
KARMA_FAIL = 130,
UNHANDLED_REJECTION_FAILURE = 131,
DELETED_KILL_FILE = 132,
TESTS_INIT_REQUIRED = 133
TESTS_INIT_REQUIRED = 133,
ALL_DEVICES_DISCONNECTED = 134
}

interface IFutureDispatcher {
Expand Down
2 changes: 1 addition & 1 deletion lib/common/definitions/mobile.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ declare module Mobile {
}

interface IiOSDevice extends IDevice {
getDebugSocket(appId: string, projectName: string): Promise<any>;
getDebugSocket(appId: string, projectName: string, ensureAppStarted?: boolean): Promise<any>;
destroyDebugSocket(appId: string): Promise<void>;
openDeviceLogStream(options?: IiOSLogStreamOptions): Promise<void>;
destroyAllSockets(): Promise<void>;
Expand Down
7 changes: 6 additions & 1 deletion lib/common/mobile/android/android-device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,16 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
const adbStatusInfo = AndroidDevice.ADB_DEVICE_STATUS_INFO[this.status];
const type = await this.getType();

let version = details.release;
if (version && version.toLowerCase() === 'q') {
version = '10.0.0';
}

this.deviceInfo = {
identifier: this.identifier,
displayName: details.name,
model: details.model,
version: details.release,
version,
vendor: details.brand,
platform: this.$devicePlatformsConstants.Android,
status: adbStatusInfo ? adbStatusInfo.deviceStatus : this.status,
Expand Down
7 changes: 5 additions & 2 deletions lib/common/mobile/ios/ios-device-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ export abstract class IOSDeviceBase implements Mobile.IiOSDevice {
abstract openDeviceLogStream(options?: Mobile.IiOSLogStreamOptions): Promise<void>;

@performanceLog()
public async getDebugSocket(appId: string, projectName: string): Promise<net.Socket> {
public async getDebugSocket(appId: string, projectName: string, ensureAppStarted: boolean = false): Promise<net.Socket> {
return this.$lockService.executeActionWithLock(
async () => {
if (this.cachedSockets[appId]) {
return this.cachedSockets[appId];
}

await this.attachToDebuggerFoundEvent(appId, projectName);
await this.applicationManager.startApplication({ appId, projectName });
if (ensureAppStarted) {
await this.applicationManager.startApplication({ appId, projectName });
}

this.cachedSockets[appId] = await this.getDebugSocketCore(appId);

if (this.cachedSockets[appId]) {
Expand Down
11 changes: 11 additions & 0 deletions lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require("colors");
import { PreviewAppLiveSyncEvents } from "./services/livesync/playground/preview-app-constants";

export const APP_FOLDER_NAME = "app";
export const APP_RESOURCES_FOLDER_NAME = "App_Resources";
Expand Down Expand Up @@ -269,3 +270,13 @@ export class AndroidAppBundleMessages {
public static ANDROID_APP_BUNDLE_DOCS_MESSAGE = "What is Android App Bundle: https://docs.nativescript.org/tooling/publishing/android-app-bundle";
public static ANDROID_APP_BUNDLE_PUBLISH_DOCS_MESSAGE = "How to use Android App Bundle for publishing: https://docs.nativescript.org/tooling/publishing/publishing-android-apps#android-app-bundle";
}

export const LiveSyncEvents = {
liveSyncStopped: "liveSyncStopped",
// In case we name it error, EventEmitter expects instance of Error to be raised and will also raise uncaught exception in case there's no handler
liveSyncError: "liveSyncError",
previewAppLiveSyncError: PreviewAppLiveSyncEvents.PREVIEW_APP_LIVE_SYNC_ERROR,
liveSyncExecuted: "liveSyncExecuted",
liveSyncStarted: "liveSyncStarted",
liveSyncNotification: "notify"
};
Loading