news-android/News-Android-App/build.gradle
2017-05-22 19:33:40 +02:00

140 lines
5.4 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
pseudoLocalesEnabled true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
// translations are imported from transifex, so no need to check here
disable 'MissingTranslation'
disable 'ExtraTranslation'
disable 'MissingQuantity'
disable 'InconsistentArrays'
disable 'TypographyEllipsis'
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
sourceSets {
main {
aidl.srcDirs = ['src/main/java']
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'LICENSE.txt'
exclude 'META-INF/services/javax.annotation.processing.Processor'
}
}
repositories {
mavenCentral()
jcenter()
maven { url 'http://guardian.github.com/maven/repo-releases' } //needed for com.gu:option:1.3 in Android-DirectoryChooser
maven { url "http://dl.bintray.com/lukaville/maven" } //Needed for com.nbsp:library:1.02 in Material File Picker
}
final SUPPORT_VERSION = '25.3.1'
dependencies {
// core android studio module
//compile project(':core')
// You must install or update the Google Repository through the SDK manager to use this dependency.
// The Google Repository (separate from the corresponding library) can be found in the Extras category.
// compile 'com.google.android.gms:play-services:4.2.42'
compile project(':ownCloud-Account-Importer')
compile "com.android.support:support-v4:${SUPPORT_VERSION}"
compile "com.android.support:appcompat-v7:${SUPPORT_VERSION}"
compile "com.android.support:design:${SUPPORT_VERSION}"
compile "com.android.support:palette-v7:${SUPPORT_VERSION}"
compile "com.android.support:recyclerview-v7:${SUPPORT_VERSION}"
compile "com.android.support:customtabs:${SUPPORT_VERSION}"
compile 'de.mrmaffen:holocircularprogressbar:1.0.1'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.jakewharton:butterknife:7.0.1'
//compile group: 'com.jakewharton', name: 'butterknife', version: '8.5.1'
compile 'com.sothree.slidinguppanel:library:3.2.1'
//compile 'com.squareup.okhttp:okhttp:2.7.5'
compile 'com.squareup.okhttp3:okhttp:3.6.0'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'de.greenrobot:greendao:2.0.0'
compile 'de.greenrobot:greendao-generator:2.0.0'
//compile 'org.freemarker:freemarker:2.3.23' //Required for DAO generation
compile 'org.apache.commons:commons-lang3:3.4'
compile 'com.github.gabrielemariotti.changeloglib:changelog:2.0.0'
compile 'org.jsoup:jsoup:1.7.2'
compile ('net.rdrei.android.dirchooser:library:3.0@aar') { transitive = true; }
provided 'com.google.auto.value:auto-value:1.2'
apt 'com.google.auto.value:auto-value:1.2'
testCompile 'org.robolectric:robolectric:3.0-rc3'
testCompile 'junit:junit:4.1'
testCompile("org.mockito:mockito-core:1.10.19") {
exclude group: 'org.hamcrest'
}
testCompile 'com.google.dexmaker:dexmaker:1.2'
testCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
//androidTestCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/mockwebserver
androidTestCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '3.6.0'
androidTestCompile "com.android.support:support-annotations:${SUPPORT_VERSION}"
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2') {
// this library uses the newest app compat v22 but the espresso contrib still v21.
// you have to specifically exclude the older versions of the contrib library or
// there will be some conflicts
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude module: 'recyclerview-v7'
}
compile project(':MaterialShowcaseView:library')
compile 'com.nbsp:library:1.02'
compile 'com.github.tommus:youtube-android-player-api:1.2.2'
androidTestCompile 'tools.fastlane:screengrab:0.3.1'
androidTestCompile("org.mockito:mockito-core:1.10.19") {
exclude group: 'org.hamcrest'
}
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
}