Skip to content

Instantly share code, notes, and snippets.

@mehdok
Created March 14, 2019 14:07
Show Gist options
  • Save mehdok/6f344796951d4875fbf7771a94c91674 to your computer and use it in GitHub Desktop.
Save mehdok/6f344796951d4875fbf7771a94c91674 to your computer and use it in GitHub Desktop.
targets {
// Read the "kotlin.device" variable passed by Xcode
def isSim = findProperty("kotlin.device") == "iosSim"
// Apply the preset according to the device
def iosPreset = isSim ? presets.iosX64 : presets.iosArm64
fromPreset(iosPreset, 'iOS') {
binaries {
framework('SharedNetwork')
}
}
fromPreset(presets.jvm, 'android')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment