2023-01-27 01:53:24 +03:00
|
|
|
plugins {
|
2024-04-06 08:07:11 +03:00
|
|
|
id("mihon.library")
|
|
|
|
id("mihon.library.compose")
|
2023-01-28 06:31:12 +03:00
|
|
|
kotlin("android")
|
2023-01-27 01:53:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "tachiyomi.presentation.core"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-01-29 12:11:28 +03:00
|
|
|
api(projects.core.common)
|
2024-01-23 15:35:58 +03:00
|
|
|
api(projects.i18n)
|
2023-07-11 00:25:52 +03:00
|
|
|
|
2023-02-18 23:52:52 +03:00
|
|
|
// Compose
|
2023-02-20 18:12:41 +03:00
|
|
|
implementation(compose.activity)
|
2023-02-18 23:52:52 +03:00
|
|
|
implementation(compose.foundation)
|
|
|
|
implementation(compose.material3.core)
|
|
|
|
implementation(compose.material.icons)
|
|
|
|
implementation(compose.animation)
|
|
|
|
implementation(compose.animation.graphics)
|
2023-06-23 15:26:35 +03:00
|
|
|
debugImplementation(compose.ui.tooling)
|
|
|
|
implementation(compose.ui.tooling.preview)
|
2023-02-18 23:52:52 +03:00
|
|
|
implementation(compose.ui.util)
|
2023-11-12 06:43:50 +03:00
|
|
|
|
|
|
|
implementation(kotlinx.immutables)
|
2023-02-18 23:52:52 +03:00
|
|
|
}
|
2023-01-27 01:53:24 +03:00
|
|
|
|
2023-02-18 23:52:52 +03:00
|
|
|
tasks {
|
|
|
|
// See https://kotlinlang.org/docs/reference/experimental.html#experimental-status-of-experimental-api(-markers)
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
2024-06-07 00:48:35 +03:00
|
|
|
compilerOptions.freeCompilerArgs.addAll(
|
2023-02-18 23:52:52 +03:00
|
|
|
"-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",
|
2024-03-02 17:08:15 +03:00
|
|
|
"-opt-in=coil3.annotation.ExperimentalCoilApi",
|
2023-06-01 05:47:31 +03:00
|
|
|
"-opt-in=kotlinx.coroutines.FlowPreview",
|
2023-02-18 23:52:52 +03:00
|
|
|
)
|
|
|
|
}
|
2023-01-27 01:53:24 +03:00
|
|
|
}
|