Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69f7398

Browse files
committed
Update README and CHANGELOG
Update gradle plugin Update version
1 parent 8259993 commit 69f7398

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.7.0 (2017-08-30)
2+
* Merge pull request by [owurman](https://github.com/owurman) with added OnTapListener
3+
* Merge bugfix by [lzwandnju](https://github.com/lzwandnju) to prevent `ArithmeticException: divide by zero`
4+
15
## 2.7.0-beta.1 (2017-07-05)
26
* Updates PdfiumAndroid to 1.7.0 which reduces memory usage about twice and improves performance by using RGB 565 format (when not using `pdfView.useBestQuality(true)`)
37

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,9 @@ Library for displaying PDF documents on Android, with `animations`, `gestures`,
1010
It is based on [PdfiumAndroid](https://github.com/barteksc/PdfiumAndroid) for decoding PDF files. Works on API 11 (Android 3.0) and higher.
1111
Licensed under Apache License 2.0.
1212

13-
## What's new in 2.7.0-beta?
14-
* Update PdfiumAndroid to 1.6.1, which fixed font rendering (issue #253)
15-
* Add `.spacing(int)` method to add spacing (in dp) between document pages
16-
* Fix drawing with `.onDraw(onDrawListener)`
17-
* Add `.onDrawAll(onDrawListener)` method to draw on all pages
18-
* Add small rendering improvements
19-
* Fix rendering when duplicated pages are passed to `.pages(..)`
20-
21-
2.7.0-beta.1 updates PdfiumAndroid to 1.7.0 which reduces memory usage about twice and improves performance by using RGB 565 format (when not using `pdfView.useBestQuality(true)`)
22-
23-
This is beta release because of big number of small changes and something could go wrong (but I didn't notice)
13+
## What's new in 2.7.0?
14+
* Merge pull request by [owurman](https://github.com/owurman) with added OnTapListener
15+
* Merge bugfix by [lzwandnju](https://github.com/lzwandnju) to prevent `ArithmeticException: divide by zero`
2416

2517
## Changes in 2.0 API
2618
* `Configurator#defaultPage(int)` and `PDFView#jumpTo(int)` now require page index (i.e. starting from 0)
@@ -35,7 +27,7 @@ This is beta release because of big number of small changes and something could
3527

3628
Add to _build.gradle_:
3729

38-
`compile 'com.github.barteksc:android-pdf-viewer:2.7.0-beta.1'` or `2.6.1` for more stable version
30+
`compile 'com.github.barteksc:android-pdf-viewer:2.7.0'`
3931

4032
Library is available in jcenter repository, probably it'll be in Maven Central soon.
4133

@@ -77,6 +69,8 @@ pdfView.fromAsset(String)
7769
.onPageScroll(onPageScrollListener)
7870
.onError(onErrorListener)
7971
.onRender(onRenderListener) // called after document is rendered for the first time
72+
// called on single tap, return true if handled, false to toggle scroll handle visibility
73+
.onTap(onTapListener)
8074
.enableAnnotationRendering(false) // render annotations (such as comments, colors or forms)
8175
.password(null)
8276
.scrollHandle(null)

android-pdf-viewer/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext {
1313
siteUrl = 'https://github.com/barteksc/AndroidPdfViewer'
1414
gitUrl = 'https://github.com/barteksc/AndroidPdfViewer.git'
1515

16-
libraryVersion = '2.7.0-beta.1'
16+
libraryVersion = '2.7.0'
1717

1818
developerId = 'barteksc'
1919
developerName = 'Bartosz Schiller'
@@ -32,7 +32,7 @@ android {
3232
minSdkVersion 11
3333
targetSdkVersion 25
3434
versionCode 1
35-
versionName "2.7.0-beta.1"
35+
versionName "2.7.0"
3636
}
3737

3838
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
jcenter()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:2.3.2'
7+
classpath 'com.android.tools.build:gradle:2.3.3'
88
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
99
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1010
}

0 commit comments

Comments
 (0)