From cb3f5b817dbcceaca6d1470a50f1692c14bb3b7b Mon Sep 17 00:00:00 2001 From: Henry Addo Date: Fri, 20 Dec 2024 15:35:36 -0800 Subject: [PATCH] Add missing files to track with git --- ios/framework/build.gradle.kts | 27 +++++++++++++++++++ .../src/iosMain/kotlin/MainViewController.kt | 9 +++++++ 2 files changed, 36 insertions(+) create mode 100644 ios/framework/build.gradle.kts create mode 100644 ios/framework/src/iosMain/kotlin/MainViewController.kt diff --git a/ios/framework/build.gradle.kts b/ios/framework/build.gradle.kts new file mode 100644 index 0000000..97ffe69 --- /dev/null +++ b/ios/framework/build.gradle.kts @@ -0,0 +1,27 @@ + +plugins { + alias(libs.plugins.kotlin.multiplatform) + alias(libs.plugins.compose) + alias(libs.plugins.compose.compiler) +} + +kotlin { + sourceSets { + commonMain { + dependencies { + implementation(project(":demo-common")) + } + } + + listOf( + iosX64(), + iosArm64(), + iosSimulatorArm64() + ).forEach { iosTarget -> + iosTarget.binaries.framework { + baseName = "ComposeDataTableKt" + isStatic = true + } + } + } +} diff --git a/ios/framework/src/iosMain/kotlin/MainViewController.kt b/ios/framework/src/iosMain/kotlin/MainViewController.kt new file mode 100644 index 0000000..e857ec6 --- /dev/null +++ b/ios/framework/src/iosMain/kotlin/MainViewController.kt @@ -0,0 +1,9 @@ + +import androidx.compose.ui.window.ComposeUIViewController +import com.seanproctor.datatable.demo.App +import platform.UIKit.UIViewController + +@Suppress("standard:function-naming") +fun mainViewController(): UIViewController = ComposeUIViewController { + App { println("Row clicked: $it") } +}