You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.8 KiB
67 lines
1.8 KiB
plugins { |
|
kotlin("multiplatform") |
|
kotlin("native.cocoapods") |
|
id("com.android.library") |
|
id("org.jetbrains.compose") |
|
} |
|
|
|
kotlin { |
|
@Suppress("OPT_IN_USAGE") |
|
targetHierarchy.default() |
|
|
|
androidTarget() |
|
iosX64() |
|
iosArm64() |
|
iosSimulatorArm64() |
|
|
|
cocoapods { |
|
version = "1.0.0" |
|
summary = "Some description for the Shared Module" |
|
homepage = "Link to the Shared Module homepage" |
|
ios.deploymentTarget = "14.1" |
|
podfile = project.file("../iosApp/Podfile") |
|
framework { |
|
baseName = "shared" |
|
isStatic = true |
|
} |
|
} |
|
|
|
sourceSets { |
|
val commonMain by getting { |
|
dependencies { |
|
implementation(compose.runtime) |
|
implementation(compose.foundation) |
|
implementation(compose.material) |
|
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class) |
|
implementation(compose.components.resources) |
|
} |
|
} |
|
val androidMain by getting { |
|
dependencies { |
|
api("androidx.activity:activity-compose:1.7.2") |
|
api("androidx.appcompat:appcompat:1.6.1") |
|
api("androidx.core:core-ktx:1.10.1") |
|
} |
|
} |
|
} |
|
} |
|
|
|
android { |
|
compileSdk = (findProperty("android.compileSdk") as String).toInt() |
|
namespace = "com.myapplication.common" |
|
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml") |
|
sourceSets["main"].res.srcDirs("src/androidMain/res") |
|
sourceSets["main"].resources.srcDirs("src/commonMain/resources") |
|
|
|
defaultConfig { |
|
minSdk = (findProperty("android.minSdk") as String).toInt() |
|
} |
|
compileOptions { |
|
sourceCompatibility = JavaVersion.VERSION_17 |
|
targetCompatibility = JavaVersion.VERSION_17 |
|
} |
|
kotlin { |
|
jvmToolchain(17) |
|
} |
|
}
|
|
|