Raccoon/shared/build.gradle.kts

105 lines
3.0 KiB
Plaintext
Raw Normal View History

2023-07-18 22:55:46 +02:00
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.android.library)
2023-07-19 14:24:07 +02:00
alias(libs.plugins.compose)
alias(libs.plugins.native.cocoapods)
2023-07-22 05:08:05 +02:00
alias(libs.plugins.moko.resources)
2023-07-18 22:55:46 +02:00
}
kotlin {
android {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
2023-07-19 14:24:07 +02:00
cocoapods {
version = "1.0.0"
2023-07-20 14:24:50 +02:00
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
2023-07-19 14:24:07 +02:00
ios.deploymentTarget = "14.1"
podfile = project.file("../iosApp/Podfile")
framework {
baseName = "shared"
isStatic = true
}
extraSpecAttributes["resources"] =
"['src/commonMain/resources/**', 'src/iosMain/resources/**']"
}
2023-07-18 22:55:46 +02:00
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "shared"
}
}
sourceSets {
val commonMain by getting {
dependencies {
2023-07-20 14:24:50 +02:00
implementation(libs.koin.core)
2023-07-19 14:24:07 +02:00
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
2023-07-25 23:33:34 +02:00
implementation(compose.material)
2023-07-19 14:24:07 +02:00
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.components.resources)
2023-07-20 09:01:18 +02:00
implementation(libs.voyager.navigator)
implementation(libs.voyager.tab)
2023-07-20 14:24:50 +02:00
implementation(projects.coreUtils)
implementation(projects.coreAppearance)
implementation(projects.corePreferences)
implementation(projects.coreApi)
2023-07-28 23:59:08 +02:00
implementation(projects.domainIdentity)
2023-07-20 14:24:50 +02:00
2023-07-22 05:08:05 +02:00
api(projects.resources)
2023-07-20 14:24:50 +02:00
api(projects.featureHome)
api(projects.featureInbox)
api(projects.featureSearch)
api(projects.featureProfile)
api(projects.featureSettings)
}
}
2023-07-18 22:55:46 +02:00
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val androidMain by getting
val androidUnitTest by getting
val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by creating {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
}
val iosX64Test by getting
val iosArm64Test by getting
val iosSimulatorArm64Test by getting
val iosTest by creating {
dependsOn(commonTest)
iosX64Test.dependsOn(this)
iosArm64Test.dependsOn(this)
iosSimulatorArm64Test.dependsOn(this)
}
}
}
android {
namespace = "com.github.diegoberaldin.raccoonforlemmy"
compileSdk = 33
defaultConfig {
minSdk = 26
}
}