2014-07-04 09:34:27 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2014-01-24 08:45:36 +00:00
|
|
|
|
|
|
|
android {
|
2017-10-25 15:46:54 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
signingConfigs {
|
|
|
|
debug {
|
|
|
|
storeFile file("~/.android/debug.keystore")
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
|
2014-06-23 19:41:56 +00:00
|
|
|
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
|
|
|
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
|
|
|
|
|
2014-01-24 08:45:36 +00:00
|
|
|
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"
|
2017-10-19 19:34:01 +00:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2014-01-24 08:45:36 +00:00
|
|
|
}
|
2014-06-23 19:41:56 +00:00
|
|
|
|
2014-01-24 08:45:36 +00:00
|
|
|
buildTypes {
|
2015-08-20 15:02:23 +00:00
|
|
|
debug {
|
2018-01-21 14:05:53 +00:00
|
|
|
shrinkResources true
|
2017-05-26 22:42:59 +00:00
|
|
|
minifyEnabled true
|
2017-11-07 19:17:52 +00:00
|
|
|
// TODO check if proguard-android.txt is used at all.. it's supposed to get it from the sdk. so we can delete it in this repo!
|
2015-08-20 15:02:23 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
2017-10-25 15:46:54 +00:00
|
|
|
testProguardFiles 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
|
|
|
}
|
2014-01-24 08:45:36 +00:00
|
|
|
release {
|
2018-01-21 14:05:53 +00:00
|
|
|
shrinkResources true
|
2017-05-26 22:42:59 +00:00
|
|
|
minifyEnabled true
|
2014-01-24 08:45:36 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
2017-10-25 15:46:54 +00:00
|
|
|
testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
|
|
|
//signingConfig signingConfigs.debug
|
2014-01-24 08:45:36 +00:00
|
|
|
}
|
|
|
|
}
|
2014-11-08 11:53:00 +00:00
|
|
|
|
2017-11-07 19:17:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
flavorDimensions "default"
|
|
|
|
|
2017-06-20 13:48:54 +00:00
|
|
|
productFlavors {
|
|
|
|
// 100% Open-Source Edition
|
|
|
|
oss {
|
2017-11-07 19:17:52 +00:00
|
|
|
dimension "default"
|
2017-06-20 13:48:54 +00:00
|
|
|
}
|
|
|
|
// 99% Open-source edition: uses the YouTube Player Jar
|
|
|
|
extra {
|
2017-11-07 19:17:52 +00:00
|
|
|
dimension "default"
|
2017-06-20 13:48:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-07 20:15:08 +00:00
|
|
|
lintOptions {
|
2015-11-25 15:20:53 +00:00
|
|
|
// 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
|
2014-07-07 20:15:08 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
|
2014-07-07 20:15:08 +00:00
|
|
|
abortOnError false
|
|
|
|
}
|
2014-11-08 11:53:00 +00:00
|
|
|
|
2015-06-21 11:04:52 +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
|
2016-01-14 14:36:15 +00:00
|
|
|
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
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-01-21 14:05:53 +00:00
|
|
|
final SUPPORT_VERSION = '27.0.2'
|
2016-03-06 17:22:14 +00:00
|
|
|
|
2014-01-24 08:45:36 +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'
|
2017-11-07 19:17:52 +00:00
|
|
|
compile project(path: ':ownCloud-Account-Importer', configuration: 'default')
|
2016-03-06 17:22:14 +00:00
|
|
|
compile "com.android.support:support-v4:${SUPPORT_VERSION}"
|
2017-10-19 19:34:01 +00:00
|
|
|
compile "com.android.support:support-compat:${SUPPORT_VERSION}"
|
2016-03-06 17:22:14 +00:00
|
|
|
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}"
|
2017-11-07 20:21:24 +00:00
|
|
|
compile "com.android.support:cardview-v7:${SUPPORT_VERSION}"
|
2015-07-12 07:50:05 +00:00
|
|
|
compile 'de.mrmaffen:holocircularprogressbar:1.0.1'
|
2015-07-11 19:57:57 +00:00
|
|
|
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
|
2017-03-21 20:52:40 +00:00
|
|
|
compile 'com.google.code.gson:gson:2.8.0'
|
2017-11-07 19:17:52 +00:00
|
|
|
compile 'com.jakewharton:butterknife:8.8.1'
|
|
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
|
2018-01-21 14:05:53 +00:00
|
|
|
|
|
|
|
compileOnly 'com.google.auto.value:auto-value:1.5.1'
|
|
|
|
annotationProcessor 'com.google.auto.value:auto-value:1.5.1'
|
|
|
|
|
2016-02-14 10:54:28 +00:00
|
|
|
compile 'com.sothree.slidinguppanel:library:3.2.1'
|
2017-05-26 20:30:50 +00:00
|
|
|
|
2016-08-28 17:10:30 +00:00
|
|
|
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'
|
2015-11-08 21:31:48 +00:00
|
|
|
compile 'com.github.gabrielemariotti.changeloglib:changelog:2.0.0'
|
2015-11-13 15:08:02 +00:00
|
|
|
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
|
|
|
|
2017-05-26 20:30:50 +00:00
|
|
|
|
|
|
|
compile 'com.google.dagger:dagger:2.9'
|
|
|
|
annotationProcessor "com.google.dagger:dagger-compiler:2.9"
|
|
|
|
provided 'javax.annotation:jsr250-api:1.0'
|
|
|
|
|
|
|
|
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
|
|
|
|
// Because RxAndroid releases are few and far between, it is recommended you also
|
|
|
|
// explicitly depend on RxJava's latest version for bug fixes and new features.
|
|
|
|
compile 'io.reactivex.rxjava2:rxjava:2.1.0'
|
|
|
|
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
|
|
|
|
|
|
|
|
compile 'com.squareup.retrofit2:retrofit:2.3.0'
|
|
|
|
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
|
|
|
|
compile 'com.squareup.okhttp3:okhttp:3.8.0'
|
|
|
|
compile 'com.squareup.okhttp3:logging-interceptor:3.8.0'
|
|
|
|
|
2017-11-07 19:17:52 +00:00
|
|
|
compile project(path: ':MaterialShowcaseView:library', configuration: 'default')
|
2017-05-26 22:42:59 +00:00
|
|
|
compile 'com.nbsp:library:1.02' // MaterialFilePicker
|
|
|
|
|
2017-06-20 13:48:54 +00:00
|
|
|
extraCompile 'com.github.tommus:youtube-android-player-api:1.2.2'
|
2016-08-28 17:10:30 +00:00
|
|
|
|
2015-06-19 18:33:25 +00:00
|
|
|
testCompile 'org.robolectric:robolectric:3.0-rc3'
|
2017-11-07 19:17:52 +00:00
|
|
|
testCompile 'junit:junit:4.12'
|
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'
|
2017-05-26 20:30:50 +00:00
|
|
|
testCompile 'com.squareup.okhttp3:mockwebserver:3.8.0'
|
2016-03-19 19:07:43 +00:00
|
|
|
|
2017-03-21 20:52:40 +00:00
|
|
|
//androidTestCompile 'com.squareup.okhttp:mockwebserver:2.5.0'
|
|
|
|
// https://mvnrepository.com/artifact/com.squareup.okhttp3/mockwebserver
|
2017-05-26 20:30:50 +00:00
|
|
|
androidTestCompile group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '3.8.0'
|
2017-03-21 20:52:40 +00:00
|
|
|
|
2015-09-29 09:58:04 +00:00
|
|
|
|
2016-03-06 17:22:14 +00:00
|
|
|
androidTestCompile "com.android.support:support-annotations:${SUPPORT_VERSION}"
|
2017-11-07 19:17:52 +00:00
|
|
|
androidTestCompile 'com.android.support.test:runner:1.0.1'
|
|
|
|
androidTestCompile 'com.android.support.test:rules:1.0.1'
|
|
|
|
androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.1'
|
2015-09-18 11:33:16 +00:00
|
|
|
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'
|
|
|
|
}
|
2017-01-31 23:32:22 +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'
|
2014-01-24 08:45:36 +00:00
|
|
|
}
|