Skip to content

Commit

Permalink
Add missing files to track with git
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedol committed Dec 20, 2024
1 parent 1127485 commit cb3f5b8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ios/framework/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}
}
}
}
9 changes: 9 additions & 0 deletions ios/framework/src/iosMain/kotlin/MainViewController.kt
Original file line number Diff line number Diff line change
@@ -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") }
}

0 comments on commit cb3f5b8

Please sign in to comment.