Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
Added build config needed for deploying app on bintray
Remove unused pdfium.iml
  • Loading branch information
barteksc committed May 28, 2016
1 parent 9a47e5d commit 45a1d45
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 101 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Use pdfium library [from AOSP](https://android.googlesource.com/platform/externa

The demo app (for not modified lib) is [here](https://github.com/mshockwave/PdfiumAndroid-Demo-App)

Forked specially for use with modified PdfViewPager project.
Forked specially for use with [PdfViewPager](https://github.com/barteksc/PdfViewPager) project.

## Changes in this fork:
* Added method for rendering PDF page on bitmap
Expand All @@ -18,6 +18,13 @@ Forked specially for use with modified PdfViewPager project.
API is fully compatible with original version, only additional methods were created.
## Installation
Add to _build.gradle_:
`compile 'com.github.barteksc:pdfium-android:1.0'`
Library is available in jcenter repository, it should be added to Maven Central soon.
## Simple example
``` java
ImageView iv = (ImageView) findViewById(R.id.imageView);
Expand All @@ -41,6 +48,3 @@ iv.setImageBitmap(bitmap);
## Build native part
Go to `PROJECT_PATH/src/main/jni` and run command `$ ndk-build`.
This step may be executed only once, every future `.aar` build will use generated libs.
## TODO
* Push to jcenter
32 changes: 29 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,37 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}
}

apply plugin: 'com.android.library'

ext {
bintrayRepo = 'maven'
bintrayName = 'pdfium-android'

publishedGroupId = 'com.github.barteksc'
libraryName = 'PdfiumAndroid'
artifact = 'pdfium-android'

libraryDescription = 'Fork of library for rendering PDFs on Android\'s Surface or Bitmap'

siteUrl = 'https://github.com/barteksc/PdfiumAndroid'
gitUrl = 'https://github.com/barteksc/PdfiumAndroid.git'

libraryVersion = '1.0'

developerId = 'barteksc'
developerName = 'Bartosz Schiller'
developerEmail = 'barteksch@boo.pl'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
Expand Down Expand Up @@ -37,8 +63,8 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:support-v4:21.0.3'
}

version = '1.0.0'
group = 'com.github.mshockwave'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
Empty file modified gradlew
100644 → 100755
Empty file.
94 changes: 0 additions & 94 deletions pdfium.iml

This file was deleted.

0 comments on commit 45a1d45

Please sign in to comment.