Skip to content
This repository was archived by the owner on Jun 15, 2024. It is now read-only.

Commit 5a1ce1b

Browse files
committed
fix(demo): fix demo dependencies and update README
1 parent d18b3b0 commit 5a1ce1b

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

README.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,27 @@ If you're using the plugin with Angular 2, the plugin automatically registers
2828

2929
```html
3030
<PDFView [src]="'http://www.pdf995.com/samples/pdf.pdf'"></PDFView>
31-
```
31+
```
32+
33+
# Try the Demo
34+
35+
To try the demo, `cd` into the `demo` folder, and run the following commands:
36+
37+
```sh
38+
npm install
39+
40+
# iOS
41+
tns platform add ios
42+
tns run ios
43+
44+
# Android
45+
tns platform add android@2.2.0-next-2016-08-02-918
46+
tns run android # try again if you get error "more than one library ..."
47+
```
48+
49+
## Why the dependency on `android@next` platform
50+
51+
I've been getting all kinds of different issues trying to run this plugin with
52+
the latest released version of `tns-core-modules` and `tns-android` runtime, and
53+
the issues don't appear to exist in the current pre-release versions. Therefore
54+
for the time being I've set the dependencies to pre-release versions.

demo/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"version": "2.1.1"
66
},
77
"tns-android": {
8-
"version": "2.2.0-next-2016-07-15-870"
8+
"version": "2.2.0-next-2016-08-02-918"
99
}
1010
},
1111
"private": true,
1212
"dependencies": {
13-
"nativescript-pdf-view": "file:..",
14-
"tns-core-modules": "2.2.0-2016-07-14-3692"
13+
"nativescript-pdf-view": "1.0.1",
14+
"tns-core-modules": "2.2.0-2016-08-07-3885"
1515
},
1616
"devDependencies": {
1717
"babel-traverse": "6.7.6",
@@ -22,4 +22,4 @@
2222
"nativescript-dev-typescript": "^0.3.2",
2323
"typescript": "^1.8.10"
2424
}
25-
}
25+
}

0 commit comments

Comments
 (0)