news-android/News-Android-App/build.gradle

133 lines
5.1 KiB
Groovy
Raw Normal View History

2014-07-04 09:34:27 +00:00
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
2014-06-23 19:41:56 +00:00
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
2014-06-23 19:41:56 +00:00
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
2015-09-18 11:33:16 +00:00
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
2014-06-23 19:41:56 +00:00
buildTypes {
2015-08-20 15:02:23 +00:00
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
2016-01-08 10:00:43 +00:00
pseudoLocalesEnabled true
2015-08-20 15:02:23 +00:00
}
release {
2014-12-27 11:06:02 +00:00
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
2014-11-08 11:53:00 +00:00
lintOptions {
// translations are imported from transifex, so no need to check here
disable 'MissingTranslation'
disable 'ExtraTranslation'
disable 'MissingQuantity'
disable 'InconsistentArrays'
disable 'TypographyEllipsis'
2015-04-07 18:59:39 +00:00
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:
2014-11-08 11:53:00 +00:00
abortOnError false
}
2014-11-08 11:53:00 +00:00
sourceSets {
main {
aidl.srcDirs = ['src/main/java']
}
2014-11-08 11:53:00 +00:00
}
2015-07-18 09:10:59 +00:00
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
2015-09-18 11:37:48 +00:00
exclude 'LICENSE.txt'
2016-01-08 09:52:15 +00:00
exclude 'META-INF/services/javax.annotation.processing.Processor'
2015-07-18 09:10:59 +00:00
}
2014-11-08 11:53:00 +00:00
}
2016-01-08 09:52:15 +00:00
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
2016-01-08 09:52:15 +00:00
}
final SUPPORT_VERSION = '24.2.0'
2016-03-06 17:22:14 +00:00
dependencies {
2015-01-17 19:51:06 +00:00
// core android studio module
//compile project(':core')
2014-04-20 13:54:33 +00:00
// 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'
2014-06-06 07:19:59 +00:00
compile project(':ownCloud-Account-Importer')
2016-03-06 17:22:14 +00:00
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'
2016-03-06 17:22:14 +00:00
compile 'com.google.code.gson:gson:2.4'
compile 'com.jakewharton:butterknife:7.0.1'
2016-02-14 10:54:28 +00:00
compile 'com.sothree.slidinguppanel:library:3.2.1'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'org.greenrobot:eventbus:3.0.0'
2015-09-19 14:40:51 +00:00
compile 'de.greenrobot:greendao:2.0.0'
compile 'de.greenrobot:greendao-generator:2.0.0'
2015-08-21 22:44:16 +00:00
//compile 'org.freemarker:freemarker:2.3.23' //Required for DAO generation
2015-07-18 09:10:59 +00:00
compile 'org.apache.commons:commons-lang3:3.4'
compile 'com.github.gabrielemariotti.changeloglib:changelog:2.0.0'
compile 'org.jsoup:jsoup:1.7.2'
2016-01-08 09:52:15 +00:00
compile ('net.rdrei.android.dirchooser:library:3.0@aar') { transitive = true; }
2015-09-29 09:58:04 +00:00
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'
2016-03-06 17:22:14 +00:00
testCompile 'junit:junit:4.1'
2016-03-19 19:07:43 +00:00
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'
2015-09-29 09:58:04 +00:00
androidTestCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
2016-03-06 17:22:14 +00:00
androidTestCompile "com.android.support:support-annotations:${SUPPORT_VERSION}"
androidTestCompile 'com.android.support.test:runner:0.4'
androidTestCompile 'com.android.support.test:rules:0.4'
2015-09-18 11:33:16 +00:00
androidTestCompile 'com.android.support.test.espresso:espresso-core: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'
}
2015-09-20 01:41:53 +00:00
compile project(':MaterialShowcaseView:library')
compile 'com.nbsp:library:1.02'
2016-03-15 16:46:47 +00:00
2016-03-19 19:07:43 +00:00
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'
}