mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 02:29:55 +02:00
Baseline Compose Multiplatform Iroh migration
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package com.vnidrop.app
|
||||
|
||||
import androidx.compose.ui.window.ComposeUIViewController
|
||||
|
||||
fun MainViewController() = ComposeUIViewController { App() }
|
||||
12
shared/src/iosMain/kotlin/com/vnidrop/app/Platform.ios.kt
Normal file
12
shared/src/iosMain/kotlin/com/vnidrop/app/Platform.ios.kt
Normal file
@@ -0,0 +1,12 @@
|
||||
package com.vnidrop.app
|
||||
|
||||
import platform.UIKit.UIDevice
|
||||
import platform.Foundation.NSTemporaryDirectory
|
||||
|
||||
class IOSPlatform : Platform {
|
||||
override val name: String = UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion
|
||||
override val defaultCoreDataDir: String = NSTemporaryDirectory() + "vnidrop"
|
||||
override val defaultReceiveDir: String = NSTemporaryDirectory() + "vnidrop-receive"
|
||||
}
|
||||
|
||||
actual fun getPlatform(): Platform = IOSPlatform()
|
||||
Reference in New Issue
Block a user