-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
772 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.gradle | ||
build | ||
local.properties | ||
MAVEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This is a very simple Makefile that calls 'gradlew' to do the heavy lifting. | ||
# | ||
# The tool 'adb' must be on the path, so that we can find the Android SDK. | ||
|
||
ANDROID_HOME := $(shell which adb | sed 's,/platform-tools/adb,,') | ||
|
||
debug: assembleDebug | ||
release: assembleRelease | ||
install: installDebug | ||
|
||
assembleDebug: | ||
ANDROID_HOME=$(ANDROID_HOME) ./gradlew assembleDebug | ||
assembleRelease: | ||
ANDROID_HOME=$(ANDROID_HOME) ./gradlew assembleRelease | ||
installDebug: | ||
ANDROID_HOME=$(ANDROID_HOME) ./gradlew installDebug | ||
lint: | ||
ANDROID_HOME=$(ANDROID_HOME) ./gradlew lint | ||
archive: | ||
ANDROID_HOME=$(ANDROID_HOME) ./gradlew uploadArchives | ||
sync: archive | ||
rsync -av MAVEN/com/ ghostscript.com:/var/www/maven.ghostscript.com/com/ | ||
|
||
run: installDebug ; | ||
adb shell am start -n com.artifex.mupdf.demo/.LibraryActivity | ||
|
||
clean: | ||
rm -rf .gradle build | ||
rm -rf jni/.externalNativeBuild jni/.gradle jni/build | ||
rm -rf lib/.gradle lib/build | ||
rm -rf app/.gradle app/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
group = 'com.artifex.mupdf' | ||
version = '1.11.0' | ||
|
||
dependencies { | ||
compile 'com.android.support:appcompat-v7:25.+' | ||
if (file('../lib/build.gradle').isFile()) | ||
compile project(':lib') | ||
else | ||
compile 'com.artifex.mupdf:viewer:+' | ||
} | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion '25.0.3' | ||
defaultConfig { | ||
minSdkVersion 16 | ||
targetSdkVersion 25 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.3.3' | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
jcenter() | ||
maven { url 'http://maven.ghostscript.com/' } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'maven' | ||
|
||
group = 'com.artifex.mupdf' | ||
version = '1.11.0' | ||
|
||
dependencies { | ||
if (file('../jni/build.gradle').isFile()) | ||
compile project(':jni') | ||
else | ||
compile 'com.artifex.mupdf:fitz:1.11.0' | ||
} | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion '25.0.3' | ||
defaultConfig { | ||
minSdkVersion 16 | ||
targetSdkVersion 25 | ||
} | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
repository(url: 'file://MAVEN') | ||
pom { | ||
artifactId = 'viewer' | ||
project { | ||
licenses { | ||
license { | ||
name 'GNU Affero General Public License' | ||
url 'https://www.gnu.org/licenses/agpl-3.0.html' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include ':jni' | ||
include ':lib' | ||
include ':app' |