Implement main app navigation

This commit is contained in:
2026-05-08 14:03:26 +02:00
parent f7e866a08d
commit 794e27c554
90 changed files with 11725 additions and 187 deletions

View File

@@ -1,9 +0,0 @@
package dev.ulfrx.recipe
import android.os.Build
public class AndroidPlatform : Platform {
override val name: String = "Android ${Build.VERSION.SDK_INT}"
}
public actual fun getPlatform(): Platform = AndroidPlatform()

View File

@@ -1,7 +0,0 @@
package dev.ulfrx.recipe
public class Greeting {
private val platform = getPlatform()
public fun greet(): String = "Hello, ${platform.name}!"
}

View File

@@ -1,7 +0,0 @@
package dev.ulfrx.recipe
public interface Platform {
public val name: String
}
public expect fun getPlatform(): Platform

View File

@@ -26,7 +26,7 @@ public object Constants {
* Base URL the client uses for `/api/v1/...` calls. v1 single environment;
* staging support is deferred per PITFALLS.md tech-debt acceptance.
*/
public const val API_BASE_URL: String = "http://localhost:8080/"
public const val API_BASE_URL: String = "http://192.168.0.106:8080/"
/**
* Authentik OIDC issuer. Trailing slash is required (D-11, PITFALLS.md #8).

View File

@@ -1,9 +0,0 @@
package dev.ulfrx.recipe
import platform.UIKit.UIDevice
public class IOSPlatform : Platform {
override val name: String = UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion
}
public actual fun getPlatform(): Platform = IOSPlatform()