Implement main app navigation
This commit is contained in:
@@ -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()
|
||||
@@ -1,7 +0,0 @@
|
||||
package dev.ulfrx.recipe
|
||||
|
||||
public class Greeting {
|
||||
private val platform = getPlatform()
|
||||
|
||||
public fun greet(): String = "Hello, ${platform.name}!"
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package dev.ulfrx.recipe
|
||||
|
||||
public interface Platform {
|
||||
public val name: String
|
||||
}
|
||||
|
||||
public expect fun getPlatform(): Platform
|
||||
@@ -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).
|
||||
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user