diff --git a/CHANGELOG.md b/CHANGELOG.md index 56bd54c5..6ba86021 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,29 @@ + +# [1.1.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.0.2...1.1.0) (2019-08-19) + + +### Bug Fixes + +* **hmr:** check for hot update should not create new file ([c9656a9](https://github.com/NativeScript/nativescript-dev-webpack/commit/c9656a9)) + + +### Features + +* update to angular 8.2 ([d13441a](https://github.com/NativeScript/nativescript-dev-webpack/commit/d13441a)) + + + + +## [1.0.3](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.0.2...1.0.3) (2019-08-05) + + +### Bug Fixes + +* crash with source-map instead of inline-source-map (https://github.com/NativeScript/nativescript-dev-webpack/issues/968) ([ff07d6c](https://github.com/NativeScript/nativescript-dev-webpack/commit/ff07d6c)) +* **update-ns-webpack:** skip the update of tsconfig.tns.json in… ([#1001](https://github.com/NativeScript/nativescript-dev-webpack/issues/1001)) ([2ed9850](https://github.com/NativeScript/nativescript-dev-webpack/commit/2ed9850)) + + + ## [1.0.2](https://github.com/NativeScript/nativescript-dev-webpack/compare/1.0.1...1.0.2) (2019-07-26) diff --git a/package.json b/package.json index 72185bda..64b8cff0 100644 --- a/package.json +++ b/package.json @@ -91,4 +91,4 @@ "tns-core-modules": "next", "typescript": "~3.5.3" } -} \ No newline at end of file +} diff --git a/plugins/NativeScriptSnapshotPlugin/options.json b/plugins/NativeScriptSnapshotPlugin/options.json index 513afd4e..f18a2cd9 100644 --- a/plugins/NativeScriptSnapshotPlugin/options.json +++ b/plugins/NativeScriptSnapshotPlugin/options.json @@ -28,14 +28,16 @@ "default": [ "arm", "arm64", - "ia32" + "ia32", + "ia64" ], "items": { "type": "string", "enum": [ "arm", "arm64", - "ia32" + "ia32", + "ia64" ] } }, diff --git a/snapshot/android/project-snapshot-generator.js b/snapshot/android/project-snapshot-generator.js index be5ef1f3..a208024f 100644 --- a/snapshot/android/project-snapshot-generator.js +++ b/snapshot/android/project-snapshot-generator.js @@ -237,9 +237,18 @@ ProjectSnapshotGenerator.prototype.generate = function (generationOptions) { throw new Error(noV8VersionFoundMessage); } + // NOTE: Order is important! Add new archs at the end of the array + const defaultTargetArchs = ["arm", "arm64", "ia32", "ia64"]; + const runtimeVersion = getAndroidRuntimeVersion(this.options.projectRoot); + if (runtimeVersion && semver.lt(semver.coerce(runtimeVersion), "6.0.2")) { + const indexOfIa64 = defaultTargetArchs.indexOf("ia64"); + // Before 6.0.2 version of Android runtime we supported only arm, arm64 and ia32. + defaultTargetArchs.splice(indexOfIa64, defaultTargetArchs.length - indexOfIa64); + } + const options = { snapshotToolsPath, - targetArchs: generationOptions.targetArchs || ["arm", "arm64", "ia32"], + targetArchs: generationOptions.targetArchs || defaultTargetArchs, v8Version: generationOptions.v8Version || v8Version, preprocessedInputFile: generationOptions.preprocessedInputFile, useLibs: generationOptions.useLibs || false, diff --git a/snapshot/android/snapshot-generator.js b/snapshot/android/snapshot-generator.js index 8c177809..4de65fa6 100644 --- a/snapshot/android/snapshot-generator.js +++ b/snapshot/android/snapshot-generator.js @@ -53,7 +53,7 @@ SnapshotGenerator.prototype.preprocessInputFiles = function (inputFiles, outputF // Example: // (function() { // some code here - // })() + // })() // // sourceMapUrl...... // ** when we join without `;` here, the next IIFE is assumed as a function call to the result of the first IIFE // (function() { @@ -101,7 +101,7 @@ SnapshotGenerator.prototype.convertToAndroidArchName = function (archName) { case "arm": return "armeabi-v7a"; case "arm64": return "arm64-v8a"; case "ia32": return "x86"; - case "x64": return "x64"; + case "ia64": return "x86_64"; default: return archName; } }