2023-05-24 21:13:36 +03:00
|
|
|
plugins {
|
|
|
|
id("com.android.library")
|
2023-05-28 15:11:48 +03:00
|
|
|
kotlin("android")
|
2023-05-24 21:13:36 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "tachiyomi.presentation.core"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
|
|
}
|
2023-06-01 16:53:29 +03:00
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
|
|
|
|
composeOptions {
|
|
|
|
kotlinCompilerExtensionVersion = compose.versions.compiler.get()
|
|
|
|
}
|
2023-05-24 21:13:36 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-11-11 19:58:02 +03:00
|
|
|
implementation(project(":core"))
|
|
|
|
|
2023-06-01 16:53:29 +03:00
|
|
|
// Compose
|
|
|
|
implementation(platform(compose.bom))
|
2023-06-02 19:59:21 +03:00
|
|
|
implementation(compose.activity)
|
2023-06-01 16:53:29 +03:00
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material3.core)
|
|
|
|
implementation(compose.material.core)
|
|
|
|
implementation(compose.material.icons)
|
|
|
|
implementation(compose.animation)
|
|
|
|
implementation(compose.animation.graphics)
|
2023-10-29 17:12:39 +03:00
|
|
|
debugImplementation(compose.ui.tooling)
|
|
|
|
implementation(compose.ui.tooling.preview)
|
2023-06-01 16:53:29 +03:00
|
|
|
implementation(compose.ui.util)
|
|
|
|
}
|
2023-05-24 21:13:36 +03:00
|
|
|
|
2023-06-01 16:53:29 +03:00
|
|
|
tasks {
|
|
|
|
// See https://kotlinlang.org/docs/reference/experimental.html#experimental-status-of-experimental-api(-markers)
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
|
|
"-opt-in=androidx.compose.foundation.layout.ExperimentalLayoutApi",
|
|
|
|
"-opt-in=androidx.compose.material.ExperimentalMaterialApi",
|
|
|
|
"-opt-in=androidx.compose.material3.ExperimentalMaterial3Api",
|
|
|
|
"-opt-in=androidx.compose.material.ExperimentalMaterialApi",
|
|
|
|
"-opt-in=androidx.compose.ui.ExperimentalComposeUiApi",
|
|
|
|
"-opt-in=androidx.compose.foundation.ExperimentalFoundationApi",
|
|
|
|
"-opt-in=androidx.compose.animation.ExperimentalAnimationApi",
|
|
|
|
"-opt-in=androidx.compose.animation.graphics.ExperimentalAnimationGraphicsApi",
|
2023-10-22 19:08:27 +03:00
|
|
|
"-opt-in=coil.annotation.ExperimentalCoilApi",
|
|
|
|
"-opt-in=kotlinx.coroutines.FlowPreview",
|
2023-06-01 16:53:29 +03:00
|
|
|
)
|
|
|
|
}
|
2023-05-24 21:13:36 +03:00
|
|
|
}
|