summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Pinheiro <paulovictor.pinheiro@gmail.com>2021-04-15 20:29:51 +0200
committerGitHub <noreply@github.com>2021-04-15 11:29:51 -0700
commit151900ba9645253fa8e1f780b5446d32fc30c4a5 (patch)
tree6f189bb6bb0dc678ca049adf844336b8dda6644b
parentc012f29f915a97e493a7ed4d9898b61ba945694d (diff)
downloadflatbuffers-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.
-rw-r--r--kotlin/flatbuffers-kotlin/build.gradle.kts17
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"))
}
}