Skip to content

Commit 7578217

Browse files
committed
update to TNS 4.0
1 parent 86247bc commit 7578217

16 files changed

+18481
-151
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ demo/lib
5757
demo-ng/platforms
5858
demo-ng/lib
5959
!webpack.*.js
60-
report
60+
report
61+
.tmp_backup

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ android:
44
components:
55
- tools
66
- platform-tools
7-
- build-tools-25.0.2
7+
- build-tools-26.0.2
88
- android-23
99
- android-25
1010
- extra-android-m2repository
@@ -38,7 +38,7 @@ matrix:
3838
language: android
3939
os: linux
4040
env:
41-
- Android="25"
41+
- Android="26"
4242
jdk: oraclejdk8
4343
before_install: nvm install 6.10.3
4444
script: "grunt ci:build:android"
@@ -58,7 +58,7 @@ matrix:
5858
language: android
5959
os: linux
6060
env:
61-
- Android="25"
61+
- Android="26"
6262
- Platform="Android"
6363
jdk: oraclejdk8
6464
before_install: nvm install 6.10.3

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -108,31 +108,6 @@ export class AppComponent {
108108
}
109109
```
110110

111-
## Working with Webpack+Uglify
112-
In case you are uing webpack and also are minifying/uglifying your code, there are some specific names that should be excluded from the uglification for the widget to work properly. The MaskedTextField widget exports those and you need to add them to the mangle exclude option of the uglifyjs plugin in the `webpack.common.js` file:
113-
```js
114-
var maskedTextFieldMangleExcludes = require("nativescript-masked-text-field/uglify-mangle-excludes").default;
115-
//......
116-
module.exports = function (platform, destinationApp) {
117-
//......
118-
if (process.env.npm_config_uglify) {
119-
plugins.push(new webpack.LoaderOptionsPlugin({
120-
minimize: true
121-
}));
122-
123-
//Work around an Android issue by setting compress = false
124-
var compress = platform !== "android";
125-
plugins.push(new webpack.optimize.UglifyJsPlugin({
126-
mangle: {
127-
except: nsWebpack.uglifyMangleExcludes.concat(maskedTextFieldMangleExcludes),
128-
},
129-
compress: compress,
130-
}));
131-
}
132-
//......
133-
}
134-
```
135-
136111
## Demos
137112
This repository includes both Angular and plain NativeScript demos. In order to run those execute the following in your shell:
138113
```shell

0 commit comments

Comments
 (0)