2022-01-13 22:14:19 +03:00
|
|
|
/*
|
2024-09-24 13:09:02 +03:00
|
|
|
* Copyright 2021-2024 New Vector Ltd.
|
2022-01-13 22:14:19 +03:00
|
|
|
*
|
2024-09-24 13:09:02 +03:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
* Please see LICENSE in the repository root for full details.
|
2022-01-13 22:14:19 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id 'com.android.library'
|
|
|
|
id 'kotlin-android'
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2022-10-17 10:14:28 +03:00
|
|
|
namespace "im.vector.lib.core.utils"
|
|
|
|
|
2022-01-13 22:14:19 +03:00
|
|
|
compileSdk versions.compileSdk
|
|
|
|
defaultConfig {
|
|
|
|
minSdk versions.minSdk
|
|
|
|
targetSdk versions.targetSdk
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility versions.sourceCompat
|
|
|
|
targetCompatibility versions.targetCompat
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
2024-07-15 19:12:08 +03:00
|
|
|
jvmTarget = versions.jvmTarget
|
2022-01-13 22:14:19 +03:00
|
|
|
freeCompilerArgs += [
|
2022-05-09 23:08:24 +03:00
|
|
|
"-opt-in=kotlin.RequiresOptIn"
|
2022-01-13 22:14:19 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation libs.jetbrains.coroutinesAndroid
|
2023-02-01 19:35:38 +03:00
|
|
|
|
|
|
|
// TESTS
|
|
|
|
testImplementation libs.tests.junit
|
|
|
|
testImplementation libs.tests.kluent
|
|
|
|
testImplementation libs.mockk.mockk
|
|
|
|
testImplementation(libs.jetbrains.coroutinesTest) {
|
|
|
|
exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-debug"
|
|
|
|
}
|
2022-04-15 23:50:54 +03:00
|
|
|
}
|