X-Git-Url: https://git.mdrn.pl/wl-app.git/blobdiff_plain/48b2fe9f7c2dc3d9aeaaa6dbfb27c7da4f3235ff..269195b3729c1bdc22e9053ee4ebca667ea8549d:/Android/folioreader/build.gradle?ds=inline diff --git a/Android/folioreader/build.gradle b/Android/folioreader/build.gradle new file mode 100755 index 0000000..74244bf --- /dev/null +++ b/Android/folioreader/build.gradle @@ -0,0 +1,103 @@ +apply plugin: 'com.android.library' +apply from: '../config/quality/quality.gradle' +apply plugin: 'com.github.dcendents.android-maven' + +ext { + bintrayRepo = 'maven' + bintrayName = 'folioreader' + + publishedGroupId = 'com.folioreader' + libraryName = 'FolioReader' + artifact = 'folioreader' + + libraryDescription = 'An epub reader for Android' + + siteUrl = 'https://github.com/FolioReader/FolioReader-Android' + gitUrl = 'https://github.com/FolioReader/FolioReader-Android.git' + + libraryVersion = '0.3.1' + + developerId = 'mobisystech' + developerName = 'Folio Reader' + developerEmail = 'mahavir@codetoart.com' + + licenseName = 'FreeBSD License' + licenseUrl = 'https://en.wikipedia.org/wiki/FreeBSD_Documentation_License#License' + allLicenses = ["FreeBSD"] +} + +android { + useLibrary 'org.apache.http.legacy' + compileSdkVersion 27 + buildToolsVersion '27.0.3' + + defaultConfig { + versionCode 1 + versionName "1.0" + minSdkVersion 19 + targetSdkVersion 26 + } + + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src/main/java'] + res.srcDirs = ['res'] + } + test { + java.srcDirs = ['src/test/java'] + } + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } + + packagingOptions { + exclude 'META-INF/ASL2.0' + exclude 'META-INF/DEPENDENCIES.txt' + exclude 'META-INF/LICENSE.txt' + exclude 'META-INF/NOTICE.txt' + exclude 'META-INF/NOTICE' + exclude 'META-INF/LICENSE' + exclude 'META-INF/DEPENDENCIES' + exclude 'META-INF/notice.txt' + exclude 'META-INF/license.txt' + exclude 'META-INF/dependencies.txt' + exclude 'META-INF/LGPL2.1' + exclude 'META-INF/services/javax.annotation.processing.Processor' + } + + lintOptions { + abortOnError false + } + + checkstyle { + ignoreFailures = true + } +} + +dependencies { + compile fileTree(include: ['*.jar'], dir: 'libs') + compile project(':webViewMarker') + compile project(':r2-streamer:r2-fetcher') + compile project(':r2-streamer:r2-parser') + compile project(':r2-streamer:r2-server') + + final ANDROID_LIB_VERSION = '27.0.0' + + //noinspection GradleDependency + compile "com.android.support:appcompat-v7:$ANDROID_LIB_VERSION" + compile "com.android.support:recyclerview-v7:$ANDROID_LIB_VERSION" + compile "com.android.support:support-v4:$ANDROID_LIB_VERSION" + compile "com.android.support:design:$ANDROID_LIB_VERSION" + + + compile 'com.daimajia.swipelayout:library:1.2.0@aar' + + compile 'com.squareup:otto:1.3.8' +} + +apply from: '../folioreader/bintray/installv1.gradle' +apply from: '../folioreader/bintray/bintrayv1.gradle'