diff options
author | Paulo Pinheiro <paulovictor.pinheiro@gmail.com> | 2021-04-15 20:29:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 11:29:51 -0700 |
commit | 151900ba9645253fa8e1f780b5446d32fc30c4a5 (patch) | |
tree | 6f189bb6bb0dc678ca049adf844336b8dda6644b /kotlin | |
parent | c012f29f915a97e493a7ed4d9898b61ba945694d (diff) | |
download | flatbuffers-151900ba9645253fa8e1f780b5446d32fc30c4a5.tar.gz flatbuffers-151900ba9645253fa8e1f780b5446d32fc30c4a5.tar.bz2 flatbuffers-151900ba9645253fa8e1f780b5446d32fc30c4a5.zip |
[Kotlin][FlexBuffers] Add support for Kotlin-iOS (#6564)
With this change, Flexbuffers for Kotlin now supports iOS(arm32, arm64, X64).
WatchOS and tvOS not supported.
Diffstat (limited to 'kotlin')
-rw-r--r-- | kotlin/flatbuffers-kotlin/build.gradle.kts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/kotlin/flatbuffers-kotlin/build.gradle.kts b/kotlin/flatbuffers-kotlin/build.gradle.kts index 5814153e..3a2447de 100644 --- a/kotlin/flatbuffers-kotlin/build.gradle.kts +++ b/kotlin/flatbuffers-kotlin/build.gradle.kts @@ -19,6 +19,9 @@ kotlin { } } macosX64() + iosArm32() + iosArm64() + iosX64() sourceSets { val commonMain by getting { @@ -63,6 +66,17 @@ kotlin { val macosX64Main by getting { dependsOn(nativeMain) } + + val iosArm32Main by getting { + dependsOn(nativeMain) + } + val iosArm64Main by getting { + dependsOn(nativeMain) + } + val iosX64Main by getting { + dependsOn(nativeMain) + } + all { languageSettings.enableLanguageFeature("InlineClasses") languageSettings.useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes") @@ -76,5 +90,8 @@ kotlin { targetFromPreset(presets.getAt("jvm")) targetFromPreset(presets.getAt("js")) targetFromPreset(presets.getAt("macosX64")) + targetFromPreset(presets.getAt("iosArm32")) + targetFromPreset(presets.getAt("iosArm64")) + targetFromPreset(presets.getAt("iosX64")) } } |