Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 790e386

Browse files
authored
Merge branch 'master' into dependencies
2 parents 4e622ae + fc4e415 commit 790e386

16 files changed

+110
-49
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
<a name="0.24.1"></a>
2+
## [0.24.1](https://github.com/NativeScript/nativescript-dev-webpack/compare/0.24.0...0.24.1) (2019-06-06)
3+
4+
5+
### Bug Fixes
6+
7+
* move the type check to a child process in order to make it faster in bigger apps and unify the hmr and no-hmr experience. ([#926](https://github.com/NativeScript/nativescript-dev-webpack/issues/926)) ([1398179](https://github.com/NativeScript/nativescript-dev-webpack/commit/1398179))
8+
* stop generating .d.ts on TS compilation ([#919](https://github.com/NativeScript/nativescript-dev-webpack/issues/919)) ([ccbf8de](https://github.com/NativeScript/nativescript-dev-webpack/commit/ccbf8de))
9+
10+
11+
12+
<a name="0.24.0"></a>
13+
# [0.24.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/0.22.0...0.24.0) (2019-05-30)
14+
15+
16+
### Bug Fixes
17+
18+
* import the workaroundResolve funciton based on the Angular version (it was moved from compiler_host to utils in Angular 8) ([#904](https://github.com/NativeScript/nativescript-dev-webpack/pull/904)) ([56224a8](https://github.com/NativeScript/nativescript-dev-webpack/commit/56224a898b46fc8542f8b5928c52e9e4cb6022e2))
19+
20+
21+
### Features
22+
23+
* update deps to Angular 8.0.0 deps ([#904](https://github.com/NativeScript/nativescript-dev-webpack/pull/904)) ([d6afb74](https://github.com/NativeScript/nativescript-dev-webpack/commit/d6afb7436585d41c4188a2373d376f2b51bc541e))
24+
25+
26+
127
<a name="0.22.0"></a>
228
# [0.22.0](https://github.com/NativeScript/nativescript-dev-webpack/compare/0.21.0...0.22.0) (2019-05-15)
329

demo/AngularApp/app/activity.android.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import {setActivityCallbacks, AndroidActivityCallbacks} from "tns-core-modules/ui/frame";
1+
import { setActivityCallbacks, AndroidActivityCallbacks } from "tns-core-modules/ui/frame";
22

33
@JavaProxy("org.myApp.MainActivity")
4-
class Activity extends android.support.v7.app.AppCompatActivity {
4+
class Activity extends androidx.appcompat.app.AppCompatActivity {
55
public isNativeScriptActivity: boolean;
66
private _callbacks: AndroidActivityCallbacks;
77

88
protected onCreate(savedInstanceState: any): void { // android.os.Bundle
99
// Set isNativeScriptActivity in onCreate (as done in the original NativeScript activity code).
1010
// The JS constructor might not be called because the activity is created from Android.
1111
this.isNativeScriptActivity = true;
12-
12+
1313
if (!this._callbacks) {
1414
setActivityCallbacks(this);
1515
}

demo/AngularApp/app/application.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
declare const android: any;
2+
declare const androidx: any;

demo/AngularApp/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = env => {
6262
const entryPath = `.${sep}${entryModule}`;
6363
const entries = { bundle: entryPath, application: "./application.android" };
6464
if (platform === "ios") {
65-
entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules.js";
65+
entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules";
6666
};
6767

6868
const ngCompilerTransformers = [];

demo/JavaScriptApp/app/activity.android.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const frame = require("ui/frame");
22

3-
const superProto = android.support.v7.app.AppCompatActivity.prototype;
4-
android.support.v7.app.AppCompatActivity.extend("org.myApp.MainActivity", {
3+
const superProto = androidx.appcompat.app.AppCompatActivity.prototype;
4+
androidx.appcompat.app.AppCompatActivity.extend("org.myApp.MainActivity", {
55
onCreate: function(savedInstanceState) {
66
// Set isNativeScriptActivity in onCreate.
77
// The JS constructor might not be called because the activity is created from Android.

demo/JavaScriptApp/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = env => {
5656
const entryPath = `.${sep}${entryModule}.js`;
5757
const entries = { bundle: entryPath, application: "./application.android" };
5858
if (platform === "ios") {
59-
entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules.js";
59+
entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules";
6060
};
6161

6262
let sourceMapFilename = nsWebpack.getSourceMapFilename(hiddenSourceMap, __dirname, dist);

demo/TypeScriptApp/app/activity.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {setActivityCallbacks, AndroidActivityCallbacks} from "ui/frame";
22

33
@JavaProxy("org.myApp.MainActivity")
4-
class Activity extends android.support.v7.app.AppCompatActivity {
4+
class Activity extends androidx.appcompat.app.AppCompatActivity {
55
public isNativeScriptActivity: boolean;
66
private _callbacks: AndroidActivityCallbacks;
77
protected onCreate(savedInstanceState: any): void { // android.os.Bundle
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
declare const android: any;
2+
declare const androidx: any;

demo/TypeScriptApp/nsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"useLegacyWorkflow": false
3+
}

demo/TypeScriptApp/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = env => {
6060
const tsConfigPath = resolve(projectRoot, "tsconfig.tns.json");
6161

6262
if (platform === "ios") {
63-
entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules.js";
63+
entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules";
6464
};
6565

6666
let sourceMapFilename = nsWebpack.getSourceMapFilename(hiddenSourceMap, __dirname, dist);

0 commit comments

Comments
 (0)