82 lines
2.6 KiB
Groovy
82 lines
2.6 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
|
|
defaultConfig {
|
|
// versionCode and versionName must be hardcoded to support F-droid
|
|
versionCode 603021
|
|
versionName '6.3.2'
|
|
minSdkVersion 16
|
|
targetSdkVersion 29
|
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
|
resConfigs 'en', 'cs', 'de', 'el', 'es', 'fr', 'pt', 'ru', 'tr', 'uk', 'vi', 'zh'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Dependencies must be hardcoded to support F-droid
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
// AndroidX
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.preference:preference:1.1.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
|
// Constraint
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
|
|
// Lifecycle
|
|
api 'android.arch.lifecycle:extensions:1.1.1'
|
|
implementation 'android.arch.lifecycle:viewmodel:1.1.1'
|
|
|
|
// Dagger
|
|
api 'com.google.dagger:dagger-android:2.21'
|
|
api 'com.google.dagger:dagger-android-support:2.21'
|
|
kapt 'com.google.dagger:dagger-android-processor:2.21'
|
|
kapt 'com.google.dagger:dagger-compiler:2.21'
|
|
|
|
// Room
|
|
api 'androidx.room:room-runtime:2.2.5'
|
|
api 'androidx.room:room-ktx:2.2.5'
|
|
kapt 'androidx.room:room-compiler:2.2.5'
|
|
testImplementation 'androidx.room:room-testing:2.2.5'
|
|
|
|
// Moshi - Json
|
|
api 'com.squareup.moshi:moshi:1.9.1'
|
|
api 'com.squareup.moshi:moshi-kotlin:1.9.1'
|
|
kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.9.1'
|
|
|
|
// Coroutines
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.5'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.5'
|
|
|
|
// Kotlin Lib
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.71'
|
|
|
|
// Unit Tests
|
|
testImplementation 'junit:junit:4.12'
|
|
testImplementation 'org.mockito:mockito-core:2.24.0'
|
|
testImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0'
|
|
|
|
// Core library
|
|
androidTestImplementation 'androidx.test:core:1.2.0'
|
|
|
|
// AndroidJUnitRunner and JUnit Rules
|
|
androidTestImplementation 'androidx.test:runner:1.2.0'
|
|
androidTestImplementation 'androidx.test:rules:1.2.0'
|
|
androidTestUtil 'androidx.test:orchestrator:1.2.0'
|
|
}
|
|
|
|
tasks.withType(Test) {
|
|
testLogging {
|
|
exceptionFormat "full"
|
|
}
|
|
afterTest { desc, result ->
|
|
println "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
|
|
}
|
|
}
|