summaryrefslogtreecommitdiff
path: root/platform/android/example/app/build.gradle
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-30 17:50:36 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-03-31 13:00:41 +0200
commitf8b35b0fe546c9f34626155f19dafe16a8f82829 (patch)
treeceb16a90ea3dcdb5a3adad6da58c11fb8e54f522 /platform/android/example/app/build.gradle
parentd68576c3785572c1f5d41f83015b8fe6bbcbe9e8 (diff)
downloadmupdf-f8b35b0fe546c9f34626155f19dafe16a8f82829.tar.xz
android: Add new example viewer.
Thanks to Fred Ross-Perry.
Diffstat (limited to 'platform/android/example/app/build.gradle')
-rw-r--r--platform/android/example/app/build.gradle46
1 files changed, 46 insertions, 0 deletions
diff --git a/platform/android/example/app/build.gradle b/platform/android/example/app/build.gradle
new file mode 100644
index 00000000..5d433deb
--- /dev/null
+++ b/platform/android/example/app/build.gradle
@@ -0,0 +1,46 @@
+apply plugin: 'com.android.model.application'
+
+model {
+
+ android {
+ compileSdkVersion = 23
+ buildToolsVersion = "23.0.2"
+
+ defaultConfig.with {
+ applicationId = "com.artifex.mupdf.example"
+ minSdkVersion.apiLevel = 8
+ targetSdkVersion.apiLevel = 16
+ versionCode = 1
+ versionName = "1.0"
+ }
+ }
+
+ android.buildTypes {
+ release {
+ minifyEnabled = false
+ proguardFiles.add(file('proguard-rules.pro'))
+ }
+ }
+
+ android.productFlavors {
+ create("arm") {
+ ndk.with {
+ // You can customize the NDK configurations for each
+ // productFlavors and buildTypes.
+ abiFilters.add("armeabi")
+ }
+
+ }
+ }
+
+ /* This is important, it will run lint checks but won't abort build */
+ android.lintOptions {
+ abortOnError false
+ }
+
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar','*.so'])
+ compile project(':mupdf')
+}