mirror of
https://github.com/avinal/nikki.git
synced 2026-07-04 05:50:10 +05:30
Add module build configs and platform expect/actual stubs
- composeApp/build.gradle.kts: KMP targets (android + iOS), all dependencies - androidApp/build.gradle.kts: Android app with compose compiler - Platform.kt expect/actual for Android and iOS - Android resources: launcher icons, themes, manifest Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package com.avinal.memos
|
||||
|
||||
actual fun getPlatformName(): String = "Android"
|
||||
@@ -0,0 +1,3 @@
|
||||
package com.avinal.memos
|
||||
|
||||
expect fun getPlatformName(): String
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.avinal.memos
|
||||
|
||||
import androidx.compose.ui.window.ComposeUIViewController
|
||||
|
||||
fun MainViewController() = ComposeUIViewController { App() }
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.avinal.memos
|
||||
|
||||
import platform.UIKit.UIDevice
|
||||
|
||||
actual fun getPlatformName(): String =
|
||||
UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion
|
||||
Reference in New Issue
Block a user