2017-10-23 13:40:38 +03:00
|
|
|
apply plugin: 'com.android.application'
|
2017-10-28 00:10:06 +03:00
|
|
|
apply plugin: 'kotlin-android'
|
2018-09-07 14:11:47 +03:00
|
|
|
apply plugin: 'findbugs'
|
2017-10-24 01:00:43 +03:00
|
|
|
|
2018-09-07 14:11:47 +03:00
|
|
|
def taskRequest = getGradle().getStartParameter().getTaskRequests().toString()
|
|
|
|
if (taskRequest.contains("Gplay") || taskRequest.contains("findbugs") || taskRequest.contains("lint")) {
|
2018-02-19 04:14:21 +03:00
|
|
|
apply from: 'gplay.gradle'
|
|
|
|
}
|
2017-10-23 13:40:38 +03:00
|
|
|
|
|
|
|
android {
|
2018-10-02 23:34:00 +03:00
|
|
|
compileSdkVersion 28
|
|
|
|
buildToolsVersion '28.0.3'
|
2017-10-23 13:40:38 +03:00
|
|
|
defaultConfig {
|
2018-01-01 13:26:31 +03:00
|
|
|
applicationId "com.nextcloud.talk2"
|
2017-11-06 22:01:53 +03:00
|
|
|
versionName version
|
2017-10-23 13:40:38 +03:00
|
|
|
minSdkVersion 21
|
2018-10-02 23:34:00 +03:00
|
|
|
targetSdkVersion 28
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2019-01-17 14:41:45 +03:00
|
|
|
versionCode 79
|
|
|
|
versionName "3.2.0"
|
2018-02-19 04:14:21 +03:00
|
|
|
|
|
|
|
flavorDimensions "default"
|
2018-07-10 15:34:35 +03:00
|
|
|
renderscriptTargetApi 19
|
|
|
|
renderscriptSupportModeEnabled true
|
2017-12-13 01:31:41 +03:00
|
|
|
|
2018-02-19 04:14:21 +03:00
|
|
|
productFlavors {
|
|
|
|
// used for f-droid
|
2018-03-04 01:07:06 +03:00
|
|
|
generic
|
|
|
|
gplay
|
2019-01-13 23:57:26 +03:00
|
|
|
|
2018-02-19 04:14:21 +03:00
|
|
|
}
|
2019-01-13 23:57:26 +03:00
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
// Enabling multidex support.
|
|
|
|
multiDexEnabled true
|
|
|
|
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable 'InvalidPackage'
|
2017-12-19 19:49:29 +03:00
|
|
|
disable 'MissingTranslation'
|
2018-12-08 22:49:13 +03:00
|
|
|
disable "ValidController",
|
|
|
|
"ValidControllerChangeHandler"
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-03 15:11:10 +03:00
|
|
|
dexOptions {
|
|
|
|
javaMaxHeapSize "4g"
|
|
|
|
}
|
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
buildTypes {
|
2019-01-13 23:57:26 +03:00
|
|
|
debug {
|
|
|
|
applicationIdSuffix '.debug'
|
|
|
|
}
|
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/NOTICE'
|
|
|
|
exclude 'META-INF/rxjava.properties'
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
2018-03-07 12:14:20 +03:00
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
htmlReport true
|
|
|
|
htmlOutput file("$project.buildDir/reports/lint/lint.html")
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
}
|
2018-09-07 14:11:47 +03:00
|
|
|
|
|
|
|
task findbugs(type: FindBugs) {
|
|
|
|
ignoreFailures = false
|
|
|
|
effort = "max"
|
|
|
|
reportLevel = "medium"
|
|
|
|
classes = fileTree("$project.buildDir/intermediates/classes/gplay/debug/com/nextcloud")
|
|
|
|
excludeFilter = file("${project.rootDir}/findbugs-filter.xml")
|
|
|
|
source = fileTree('src/main/java')
|
|
|
|
pluginClasspath = project.configurations.findbugsPlugins
|
|
|
|
classpath = files()
|
|
|
|
include '**/*.java'
|
|
|
|
exclude '**/gen/**'
|
|
|
|
|
|
|
|
reports {
|
|
|
|
xml.enabled = false
|
|
|
|
html.enabled = true
|
|
|
|
html {
|
|
|
|
destination = file("$project.buildDir/reports/findbugs/findbugs.html")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
2018-10-03 15:11:10 +03:00
|
|
|
supportLibraryVersion = '28.0.0'
|
2018-11-22 18:12:31 +03:00
|
|
|
workVersion = "1.0.0-alpha11"
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|
|
|
|
|
2017-11-06 22:01:53 +03:00
|
|
|
|
|
|
|
configurations.all {
|
2018-02-08 16:19:43 +03:00
|
|
|
exclude group: 'com.google.firebase', module: 'firebase-core'
|
2017-11-06 22:01:53 +03:00
|
|
|
}
|
|
|
|
|
2017-10-23 13:40:38 +03:00
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
2018-11-22 18:12:31 +03:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.0.2'
|
2018-10-02 23:34:00 +03:00
|
|
|
implementation 'com.google.android.material:material:1.0.0'
|
2018-12-29 17:52:22 +03:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
|
2019-01-12 16:45:28 +03:00
|
|
|
implementation 'com.github.vanniktech.Emoji:emoji-twitter:182e1ff4f4'
|
2018-12-12 18:54:10 +03:00
|
|
|
implementation 'org.michaelevans.colorart:library:0.0.3'
|
2019-01-16 03:12:55 +03:00
|
|
|
implementation "android.arch.work:work-runtime:1.0.0-alpha11"
|
2018-08-10 03:09:41 +03:00
|
|
|
implementation "android.arch.work:work-firebase:${workVersion}"
|
2019-01-16 03:12:55 +03:00
|
|
|
androidTestImplementation "android.arch.work:work-testing:1.0.0-alpha11"
|
2019-01-12 16:45:28 +03:00
|
|
|
implementation "android.arch.work:work-rxjava2:1.0.0-alpha13"
|
2019-01-07 01:29:01 +03:00
|
|
|
|
2018-07-17 18:22:02 +03:00
|
|
|
|
2018-10-02 23:34:00 +03:00
|
|
|
implementation "androidx.lifecycle:lifecycle-extensions:2.0.0"
|
2017-11-30 00:40:29 +03:00
|
|
|
|
2018-10-03 15:11:10 +03:00
|
|
|
implementation 'com.android.support:multidex:1.0.3'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
|
|
|
|
implementation "io.reactivex.rxjava2:rxjava:2.2.2"
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'com.bluelinelabs:conductor:2.1.5'
|
|
|
|
implementation 'com.bluelinelabs:conductor-support:2.1.5'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.11.0'
|
|
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
|
|
|
implementation 'com.bluelinelabs:logansquare:1.3.7'
|
|
|
|
annotationProcessor 'com.bluelinelabs:logansquare-compiler:1.3.7'
|
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
|
|
|
|
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
|
2017-10-23 13:40:38 +03:00
|
|
|
implementation 'com.github.aurae.retrofit2:converter-logansquare:1.4.1'
|
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'com.google.dagger:dagger:2.17'
|
|
|
|
annotationProcessor 'com.google.dagger:dagger-compiler:2.17'
|
2017-10-23 13:40:38 +03:00
|
|
|
implementation 'com.github.lukaspili.autodagger2:autodagger2:1.1'
|
|
|
|
annotationProcessor 'com.github.lukaspili.autodagger2:autodagger2-compiler:1.1'
|
|
|
|
|
2018-04-26 21:24:30 +03:00
|
|
|
compileOnly 'javax.annotation:jsr250-api:1.0' // Android only
|
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'org.greenrobot:eventbus:3.1.1'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2018-04-26 21:24:30 +03:00
|
|
|
implementation 'io.requery:requery:1.5.1'
|
|
|
|
implementation 'io.requery:requery-android:1.5.1'
|
2018-01-15 09:17:34 +03:00
|
|
|
implementation 'net.zetetic:android-database-sqlcipher:3.5.9'
|
2018-04-26 21:24:30 +03:00
|
|
|
annotationProcessor 'io.requery:requery-processor:1.5.1'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'org.parceler:parceler-api:1.1.11'
|
|
|
|
annotationProcessor 'org.parceler:parceler:1.1.11'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2017-11-06 22:01:53 +03:00
|
|
|
implementation 'net.orange-box.storebox:storebox-lib:1.4.0'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2018-12-28 23:07:21 +03:00
|
|
|
compileOnly "org.projectlombok:lombok:1.18.4"
|
|
|
|
annotationProcessor "org.projectlombok:lombok:1.18.4"
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2019-01-07 01:29:01 +03:00
|
|
|
implementation 'com.jakewharton:butterknife:10.0.0'
|
|
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2018-07-14 17:22:15 +03:00
|
|
|
implementation 'com.github.HITGIF:TextFieldBoxes:1.4.3'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'eu.davidea:flexible-adapter:5.1.0'
|
|
|
|
implementation 'eu.davidea:flexible-adapter-ui:1.0.0'
|
2017-10-23 13:40:38 +03:00
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'com.github.bumptech.glide:glide:4.8.0'
|
|
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
|
|
|
|
implementation 'com.github.bumptech.glide:okhttp3-integration:4.8.0@aar'
|
2018-12-28 23:07:21 +03:00
|
|
|
implementation 'com.facebook.fresco:fresco:1.11.0'
|
|
|
|
implementation 'com.facebook.fresco:animated-webp:1.11.0'
|
|
|
|
implementation 'com.facebook.fresco:webpsupport:1.11.0'
|
|
|
|
implementation 'com.facebook.fresco:animated-gif:1.11.0'
|
|
|
|
implementation "com.facebook.fresco:imagepipeline-okhttp3:1.11.0"
|
2018-10-06 07:38:21 +03:00
|
|
|
implementation 'org.webrtc:google-webrtc:1.0.23295'
|
2017-10-28 00:10:06 +03:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
|
2018-08-10 08:34:00 +03:00
|
|
|
|
2018-02-08 15:02:22 +03:00
|
|
|
implementation 'com.yarolegovich:lovely-dialog:1.1.0'
|
|
|
|
implementation 'com.yarolegovich:lovelyinput:1.0.9'
|
|
|
|
implementation 'com.yarolegovich:mp:1.0.9'
|
2017-10-30 01:08:36 +03:00
|
|
|
|
2017-12-13 00:09:29 +03:00
|
|
|
implementation 'me.zhanghai.android.effortlesspermissions:library:1.0.2'
|
|
|
|
|
2017-11-16 00:41:35 +03:00
|
|
|
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
|
2017-11-08 22:06:41 +03:00
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'com.github.wooplr:Spotlight:1.3'
|
2018-03-12 00:04:41 +03:00
|
|
|
|
2019-01-12 16:45:28 +03:00
|
|
|
implementation 'com.github.mario:chatkit:d63d61db95'
|
2018-07-25 16:27:46 +03:00
|
|
|
|
2018-05-04 04:59:27 +03:00
|
|
|
implementation 'com.otaliastudios:autocomplete:1.1.0'
|
2018-04-23 16:57:48 +03:00
|
|
|
|
2018-10-01 14:10:46 +03:00
|
|
|
implementation 'com.github.Kennyc1012:BottomSheet:2.4.1'
|
|
|
|
implementation 'eu.davidea:flipview:1.2.0'
|
2018-10-03 09:19:41 +03:00
|
|
|
implementation 'com.github.mario:PopupBubble:a365177d96'
|
2018-05-09 14:46:22 +03:00
|
|
|
|
2018-05-28 22:50:38 +03:00
|
|
|
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
|
2018-06-25 23:54:28 +03:00
|
|
|
implementation 'com.kevalpatel2106:emoticongifkeyboard:1.1'
|
|
|
|
|
2018-12-29 03:42:24 +03:00
|
|
|
implementation group: 'eu.medsea.mimeutil', name: 'mime-util', version: '2.1.3'
|
2017-10-23 13:40:38 +03:00
|
|
|
testImplementation 'junit:junit:4.12'
|
2018-10-02 23:34:00 +03:00
|
|
|
androidTestImplementation ('androidx.test.espresso:espresso-core:3.1.0-alpha4', {
|
2017-10-23 13:40:38 +03:00
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
})
|
2018-09-07 14:11:47 +03:00
|
|
|
|
2018-09-07 16:46:05 +03:00
|
|
|
findbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.8.0'
|
2018-09-07 17:10:00 +03:00
|
|
|
findbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.4.3'
|
2017-10-23 13:40:38 +03:00
|
|
|
}
|