feat: cible desktop macOS via :desktopApp:run
This commit is contained in:
4 files changed
+58
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package com.livrets.desktop
|
||||
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.window.Window
|
||||
import androidx.compose.ui.window.application
|
||||
import androidx.compose.ui.window.rememberWindowState
|
||||
import com.livrets.App
|
||||
|
||||
fun main() = application {
|
||||
Window(
|
||||
onCloseRequest = ::exitApplication,
|
||||
title = "Livrets",
|
||||
state = rememberWindowState(width = 480.dp, height = 800.dp),
|
||||
) {
|
||||
App(filesDirPath = storageDir())
|
||||
}
|
||||
}
|
||||
|
||||
private fun storageDir(): String =
|
||||
System.getProperty("user.home") + "/.livrets"
|
||||
Reference in new issue
Block a user