This repository was archived by the owner on Jun 15, 2024. It is now read-only.
File tree 9 files changed +40
-45
lines changed
9 files changed +40
-45
lines changed Original file line number Diff line number Diff line change 1
- /// <reference path="./node_modules/tns-platform-declarations/android17.d.ts" />
1
+ /// <reference path="./node_modules/tns-platform-declarations/tns-core-modules/ android17.d.ts" />
2
2
3
3
declare module com . github . barteksc . pdfviewer {
4
4
export class PDFView extends android . view . SurfaceView {
@@ -21,6 +21,5 @@ declare class Configurator {
21
21
pages ( ...pageNumbers : number [ ] ) : this;
22
22
enableDoubletap ( enable : boolean ) : this;
23
23
enableSwipe ( enable : boolean ) : this;
24
- showMinimap ( show : boolean ) : this;
25
- swipeVertical ( swipe : boolean ) : this;
24
+ swipeHorizontal ( horizontal : boolean ) : this;
26
25
}
Original file line number Diff line number Diff line change @@ -42,13 +42,6 @@ tns platform add ios
42
42
tns run ios
43
43
44
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.
45
+ tns platform add android
46
+ tns run android
47
+ ```
Original file line number Diff line number Diff line change 3
3
"main" : " app.js" ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
- "nativescript-dev-typescript" : " ^ 0.3.0 " ,
7
- "tns-core-modules" : " ^2.1.0 "
6
+ "nativescript-dev-typescript" : " 0.3.2 " ,
7
+ "tns-core-modules" : " 2.2.1 "
8
8
},
9
- "devDependencies" : {
10
- "babel-traverse" : " 6.7.6 " ,
11
- "babel-types" : " 6.7.7 " ,
12
- "babylon" : " 6.7 .0" ,
13
- "filewalker" : " 0.1.2 " ,
14
- "lazy" : " 1.0.11" ,
15
- "nativescript-dev-typescript" : " ^ 0.3.2" ,
16
- "typescript" : " ^1.8.10"
17
- }
9
+ "devDependencies" : {
10
+ "babel-traverse" : " 6.13.0 " ,
11
+ "babel-types" : " 6.13.0 " ,
12
+ "babylon" : " 6.9 .0" ,
13
+ "filewalker" : " 0.1.3 " ,
14
+ "lazy" : " 1.0.11" ,
15
+ "nativescript-dev-typescript" : " 0.3.2" ,
16
+ "typescript" : " ^1.8.10"
17
+ }
18
18
}
Original file line number Diff line number Diff line change 2
2
"nativescript" : {
3
3
"id" : " com.merott.NativeScriptPDFViewDemo" ,
4
4
"tns-ios" : {
5
- "version" : " 2.1 .1"
5
+ "version" : " 2.2 .1"
6
6
},
7
7
"tns-android" : {
8
- "version" : " 2.2.0-next-2016-08-02-918 "
8
+ "version" : " 2.2.0"
9
9
}
10
10
},
11
11
"private" : true ,
12
12
"dependencies" : {
13
- "nativescript-pdf-view" : " 1.0.1 " ,
14
- "tns-core-modules" : " 2.2.0-2016-08-07-3885 "
13
+ "nativescript-pdf-view" : " latest " ,
14
+ "tns-core-modules" : " 2.2.1 "
15
15
},
16
16
"devDependencies" : {
17
- "babel-traverse" : " 6.7.6 " ,
18
- "babel-types" : " 6.7.7 " ,
19
- "babylon" : " 6.7 .0" ,
20
- "filewalker" : " 0.1.2 " ,
17
+ "babel-traverse" : " 6.13.0 " ,
18
+ "babel-types" : " 6.13.0 " ,
19
+ "babylon" : " 6.9 .0" ,
20
+ "filewalker" : " 0.1.3 " ,
21
21
"lazy" : " 1.0.11" ,
22
22
"nativescript-dev-typescript" : " ^0.3.2" ,
23
23
"typescript" : " ^1.8.10"
24
+ },
25
+ "scripts" : {
26
+ "reinstall:ios" : " tns platform remove ios && tns platform add ios && tns plugin add .." ,
27
+ "reinstall:android" : " tns platform remove android && tns platform add android && tns plugin add .." ,
28
+ "android" : " tns run android" ,
29
+ "ios" : " tns run ios"
24
30
}
25
31
}
Original file line number Diff line number Diff line change 4
4
"main" : " src/plugin.js" ,
5
5
"nativescript" : {
6
6
"platforms" : {
7
- "android" : " 2.2.0-next-2016-08-02-918 " ,
8
- "ios" : " 2.1 .1"
7
+ "android" : " 2.2.0" ,
8
+ "ios" : " 2.2 .1"
9
9
}
10
10
},
11
11
"scripts" : {
12
12
"build" : " tsc" ,
13
+ "build:watch" : " tsc --watch" ,
13
14
"demo.ios" : " npm run preparedemo && cd demo && tns emulate ios" ,
14
15
"demo.android" : " npm run preparedemo && cd demo && tns run android" ,
15
16
"preparedemo" : " npm run build && cd demo && tns plugin remove nativescript-pdf-view && tns plugin add .. && tns install" ,
48
49
"@semantic-release/condition-codeship" : " 1.1.0" ,
49
50
"@semantic-release/release-notes-generator" : " 2.0.0" ,
50
51
"semantic-release" : " 4.3.5" ,
51
- "tns-core-modules" : " 2.2.0-2016-08-07-3885 " ,
52
- "tns-platform-declarations" : " 2.0 .0" ,
53
- "tslint" : " 3.13 .0" ,
52
+ "tns-core-modules" : " 2.2.1 " ,
53
+ "tns-platform-declarations" : " 2.2 .0" ,
54
+ "tslint" : " 3.14 .0" ,
54
55
"typescript" : " 1.8.10"
55
56
}
56
57
}
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ android {
7
7
}
8
8
9
9
dependencies {
10
- compile ' com.github.barteksc:android-pdf-viewer:1.1.2 '
10
+ compile ' com.github.barteksc:android-pdf-viewer:2.0.1 '
11
11
}
Original file line number Diff line number Diff line change @@ -36,10 +36,6 @@ export class PDFView extends common.PDFView {
36
36
37
37
this . android
38
38
. fromUri ( uri )
39
- . enableSwipe ( true )
40
- . enableDoubletap ( true )
41
- . swipeVertical ( true )
42
- . showMinimap ( false )
43
39
. load ( ) ;
44
40
}
45
41
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class PDFView extends common.PDFView {
37
37
}
38
38
39
39
private init ( ) {
40
- this . ios = new UIWebView ( CGRectInfinite ) ;
40
+ this . ios = new UIWebView ( UIScreen . mainScreen ( ) . bounds ) ;
41
41
42
42
this . ios . autoresizingMask =
43
43
UIViewAutoresizing . UIViewAutoresizingFlexibleWidth |
Original file line number Diff line number Diff line change 7
7
"sourceMap" : true
8
8
},
9
9
"files" : [
10
- " ./node_modules/tns-platform-declarations/android17.d.ts" ,
11
- " ./node_modules/tns-platform-declarations/ios.d.ts" ,
10
+ " ./node_modules/tns-platform-declarations/tns-core-modules/ android17.d.ts" ,
11
+ " ./node_modules/tns-platform-declarations/tns-core-modules/ ios.d.ts" ,
12
12
" ./node_modules/tns-core-modules/tns-core-modules.d.ts" ,
13
13
" src/plugin.common.ts" ,
14
14
" src/plugin.android.ts" ,
You can’t perform that action at this time.
0 commit comments