2016-09-12 12:20:24 +02:00
|
|
|
apply plugin: 'com.android.application'
|
2020-04-12 16:42:09 +02:00
|
|
|
apply plugin: 'com.mikepenz.aboutlibraries.plugin'
|
2020-05-09 19:22:08 +02:00
|
|
|
apply plugin: 'kotlin-android'
|
2020-06-18 21:26:13 +02:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2020-05-09 19:22:08 +02:00
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
2016-09-12 12:20:24 +02:00
|
|
|
|
|
|
|
android {
|
2019-07-25 21:42:51 +02:00
|
|
|
compileSdkVersion 29
|
2020-04-10 20:36:32 +02:00
|
|
|
buildToolsVersion '29.0.3'
|
2016-09-12 12:20:24 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "de.christinecoenen.code.zapp"
|
2018-10-19 21:22:23 +02:00
|
|
|
minSdkVersion 21
|
2019-07-25 21:42:51 +02:00
|
|
|
targetSdkVersion 29
|
2020-11-26 21:01:24 +01:00
|
|
|
versionCode 47
|
|
|
|
versionName "3.6.1"
|
2018-09-29 20:34:52 +02:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2016-09-12 12:20:24 +02:00
|
|
|
}
|
2020-07-05 21:03:01 +02:00
|
|
|
|
2017-11-02 20:35:13 +01:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2020-07-05 21:03:01 +02:00
|
|
|
|
2020-12-21 21:12:56 +01:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
|
|
}
|
|
|
|
|
2020-07-05 21:03:01 +02:00
|
|
|
kapt {
|
|
|
|
arguments {
|
|
|
|
arg("room.schemaLocation", "$projectDir/schemas")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-12 11:35:01 +02:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/library-core_release.kotlin_module'
|
|
|
|
}
|
2020-07-05 21:03:01 +02:00
|
|
|
|
2020-07-05 13:02:48 +02:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding {
|
|
|
|
enabled = true
|
|
|
|
}
|
2020-05-01 11:24:53 +02:00
|
|
|
}
|
2017-11-02 20:35:13 +01:00
|
|
|
|
2016-09-12 12:20:24 +02:00
|
|
|
buildTypes {
|
2017-03-26 13:51:21 +02:00
|
|
|
debug {
|
2017-10-13 16:13:47 +02:00
|
|
|
shrinkResources false
|
2017-03-26 13:51:21 +02:00
|
|
|
}
|
2016-09-12 12:20:24 +02:00
|
|
|
release {
|
2017-10-13 16:13:47 +02:00
|
|
|
shrinkResources true
|
2017-03-26 13:51:21 +02:00
|
|
|
minifyEnabled true
|
2016-09-12 12:20:24 +02:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2019-05-23 14:34:08 +02:00
|
|
|
|
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
includeAndroidResources = true
|
2019-06-19 10:48:32 +02:00
|
|
|
all {
|
|
|
|
testLogging {
|
|
|
|
events 'passed', 'skipped', 'failed', 'standardError'
|
|
|
|
exceptionFormat 'full'
|
|
|
|
}
|
2019-06-19 21:26:33 +02:00
|
|
|
|
|
|
|
if (project.hasProperty('ci')) {
|
|
|
|
// tests that should *not* run on ci machines:
|
|
|
|
exclude '**/JsonChannelListConnectionTest*'
|
|
|
|
}
|
2019-06-19 10:48:32 +02:00
|
|
|
}
|
2019-05-23 14:34:08 +02:00
|
|
|
}
|
|
|
|
}
|
2016-09-12 12:20:24 +02:00
|
|
|
}
|
|
|
|
|
2018-09-29 19:05:26 +02:00
|
|
|
configurations {
|
|
|
|
cleanedAnnotations
|
2018-12-06 21:08:24 +01:00
|
|
|
compile.exclude group: 'org.jetbrains', module: 'annotations'
|
2018-09-29 19:05:26 +02:00
|
|
|
}
|
|
|
|
|
2016-09-12 12:20:24 +02:00
|
|
|
dependencies {
|
2018-04-06 14:13:19 +02:00
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2016-10-05 16:55:01 +02:00
|
|
|
|
2020-05-09 19:22:08 +02:00
|
|
|
// kotlin
|
2020-12-26 21:01:15 +01:00
|
|
|
implementation 'androidx.core:core-ktx:1.3.2'
|
2020-05-09 19:22:08 +02:00
|
|
|
|
2020-12-21 21:12:56 +01:00
|
|
|
// tests
|
2020-09-01 20:01:12 +02:00
|
|
|
debugImplementation 'androidx.test:core:1.3.0'
|
2020-08-09 15:42:14 +02:00
|
|
|
debugImplementation 'androidx.fragment:fragment-testing:1.2.5'
|
2019-06-23 14:05:38 +02:00
|
|
|
|
2019-05-23 14:55:58 +02:00
|
|
|
// device tests
|
2020-09-01 20:01:12 +02:00
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test:rules:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.3.0'
|
2017-09-02 10:39:23 +02:00
|
|
|
|
2019-05-23 14:55:58 +02:00
|
|
|
// unit tests
|
2020-09-01 20:01:12 +02:00
|
|
|
testImplementation 'androidx.test.ext:junit:1.1.2'
|
|
|
|
testImplementation 'org.robolectric:robolectric:4.4'
|
2019-05-29 21:12:16 +02:00
|
|
|
|
2016-10-11 21:21:17 +02:00
|
|
|
// support
|
2020-12-26 21:01:15 +01:00
|
|
|
implementation 'androidx.fragment:fragment-ktx:1.2.5'
|
2020-08-09 15:42:14 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
2020-10-03 19:58:35 +02:00
|
|
|
implementation 'com.google.android.material:material:1.2.1'
|
2020-12-26 21:01:15 +01:00
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
2018-09-29 20:34:52 +02:00
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
2019-06-12 11:35:01 +02:00
|
|
|
implementation 'androidx.annotation:annotation:1.1.0'
|
2020-01-02 15:57:32 +01:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
2020-12-26 21:01:15 +01:00
|
|
|
implementation 'androidx.preference:preference-ktx:1.1.1'
|
2020-12-21 21:12:56 +01:00
|
|
|
implementation "androidx.paging:paging-runtime-ktx:2.1.2"
|
2020-12-26 21:01:15 +01:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
|
|
|
|
implementation "androidx.lifecycle:lifecycle-common-java8:2.2.0"
|
2016-10-11 21:21:17 +02:00
|
|
|
|
2020-06-18 21:26:13 +02:00
|
|
|
// room database
|
2020-12-26 21:01:15 +01:00
|
|
|
def room_version = "2.2.6"
|
2020-07-05 13:02:48 +02:00
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
2020-06-18 21:26:13 +02:00
|
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
|
|
implementation "androidx.room:room-ktx:$room_version"
|
2020-12-26 21:01:15 +01:00
|
|
|
implementation "androidx.room:room-rxjava2:${room_version}"
|
2020-06-18 21:26:13 +02:00
|
|
|
|
|
|
|
|
2016-10-11 21:21:17 +02:00
|
|
|
// helper
|
2019-11-03 16:20:24 +01:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
2020-09-29 22:30:52 +02:00
|
|
|
implementation 'commons-io:commons-io:2.8.0'
|
2016-10-11 21:21:17 +02:00
|
|
|
|
|
|
|
// sortable list
|
2020-08-11 09:43:14 +02:00
|
|
|
implementation 'com.github.woxthebox:draglistview:1.7.2'
|
2016-10-11 21:21:17 +02:00
|
|
|
|
2016-11-02 11:34:33 +01:00
|
|
|
// markdown
|
2019-05-16 20:35:38 +02:00
|
|
|
implementation 'ru.noties:markwon:2.0.2'
|
2016-11-02 11:34:33 +01:00
|
|
|
|
2020-05-09 19:22:08 +02:00
|
|
|
// fetch download manager
|
2020-09-01 20:01:12 +02:00
|
|
|
implementation 'androidx.tonyodev.fetch2:xfetch2:3.1.5'
|
2020-09-03 14:46:36 +02:00
|
|
|
implementation 'androidx.tonyodev.fetch2okhttp:xfetch2okhttp:3.1.5'
|
2020-05-09 19:22:08 +02:00
|
|
|
|
2017-05-11 22:51:51 +02:00
|
|
|
// exo player
|
2020-09-29 22:30:52 +02:00
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-core:2.12.0'
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-hls:2.12.0'
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-ui:2.12.0'
|
|
|
|
implementation 'com.google.android.exoplayer:extension-mediasession:2.12.0'
|
2017-05-11 22:51:51 +02:00
|
|
|
|
2017-07-21 08:30:06 +02:00
|
|
|
// retrofit rest client
|
2020-08-11 09:43:14 +02:00
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
|
|
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
|
2017-07-29 15:48:59 +02:00
|
|
|
|
|
|
|
// ACRA crash reporting
|
2020-09-29 22:30:52 +02:00
|
|
|
implementation 'ch.acra:acra-mail:5.7.0'
|
|
|
|
implementation 'ch.acra:acra-dialog:5.7.0'
|
2017-07-30 14:46:07 +02:00
|
|
|
|
|
|
|
// timber logging
|
2018-09-29 19:05:26 +02:00
|
|
|
implementation 'com.jakewharton.timber:timber:4.7.1'
|
2017-08-03 17:41:26 +02:00
|
|
|
|
|
|
|
// joda time
|
2020-05-02 19:28:17 +02:00
|
|
|
implementation 'joda-time:joda-time:2.10.6'
|
2017-11-04 17:57:27 +01:00
|
|
|
|
2018-10-07 16:06:33 +02:00
|
|
|
// rxjava
|
2020-04-10 20:36:32 +02:00
|
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
|
2019-07-31 20:46:06 +02:00
|
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
2018-10-07 16:06:33 +02:00
|
|
|
|
2017-11-04 17:57:27 +01:00
|
|
|
// about libraries view
|
2020-11-26 20:49:50 +01:00
|
|
|
implementation 'com.mikepenz:aboutlibraries:8.6.2'
|
2020-06-18 21:26:13 +02:00
|
|
|
|
2020-09-29 22:30:52 +02:00
|
|
|
implementation 'org.jetbrains:annotations-java5:20.1.0'
|
2016-09-12 12:20:24 +02:00
|
|
|
}
|