Skip to content

Commit

Permalink
Export sample iOS framework only for Xcode builds
Browse files Browse the repository at this point in the history
  • Loading branch information
arkivanov committed Jun 3, 2024
1 parent 1b35dc2 commit a35e4d3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sample-mpp-module/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ android {
}

kotlin {
def configureFrameworks = { target ->
target.binaries {
framework {
baseName = "shared"
export project(':reaktive')
if (System.getenv().keySet().contains("XCODE_VERSION_MAJOR")) {
def configureFrameworks = { target ->
target.binaries {
framework {
baseName = "shared"
export project(':reaktive')
}
}
}
}

configureFrameworks(iosArm64())
configureFrameworks(iosX64())
configureFrameworks(iosSimulatorArm64())
configureFrameworks(macosX64())
configureFrameworks(macosArm64())
configureFrameworks(iosArm64())
configureFrameworks(iosX64())
configureFrameworks(iosSimulatorArm64())
}

sourceSets {
commonMain {
Expand Down

0 comments on commit a35e4d3

Please sign in to comment.