Skip to content

Commit

Permalink
dependency changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rvenky125 committed Apr 17, 2024
1 parent f328956 commit 37ac290
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions device-info/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import com.vanniktech.maven.publish.JavadocJar
import com.vanniktech.maven.publish.KotlinMultiplatform
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.GradleKpmIosX64Variant

val libVersion = "0.0.11-alpha"
val libVersion = "0.0.12-alpha"
val artifactId = "kmp-device-info"
val groupId = "io.github.rvenky125"

Expand All @@ -23,9 +24,17 @@ kotlin {
}
}
}
iosX64()
iosArm64()
iosSimulatorArm64()

listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64(),
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "kmp-device-info"
isStatic = true
}
}

cocoapods {
summary = "This module provides device info"
Expand All @@ -39,16 +48,27 @@ kotlin {
}

sourceSets {
androidMain.dependencies {
implementation("androidx.startup:startup-runtime:1.1.1")
val commonMain by getting {
dependencies {
}
}
commonMain.dependencies {

val androidMain by getting {
dependencies {
implementation("androidx.startup:startup-runtime:1.1.1")
}
}
iosMain.dependencies {

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)
}
iosTest.dependencies {
androidMain.dependencies {
}
commonMain.dependencies {

}
commonTest.dependencies {
Expand Down

0 comments on commit 37ac290

Please sign in to comment.