diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 963b5d8..6bf51bd 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -94,17 +94,6 @@ kotlin { implementation(libs.xxfast.kstore.storage) } } - - @OptIn(ExperimentalKotlinGradlePluginApi::class) - applyDefaultHierarchyTemplate { - common { - group("nonIos") { - withAndroidTarget() - withJvm() - withWasmJs() - } - } - } } android { diff --git a/composeApp/src/androidMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.android.kt b/composeApp/src/androidMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.android.kt index 2a454eb..dd856bd 100644 --- a/composeApp/src/androidMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.android.kt +++ b/composeApp/src/androidMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.android.kt @@ -3,3 +3,7 @@ package com.alexjlockwood.twentyfortyeight.ui internal actual fun shouldDetectSwipes(): Boolean { return true } + +internal actual fun shouldCenterAlignTopAppBar(): Boolean { + return false +} diff --git a/composeApp/src/desktopMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.desktop.kt b/composeApp/src/desktopMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.desktop.kt index 3365e9a..3fc2e49 100644 --- a/composeApp/src/desktopMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.desktop.kt +++ b/composeApp/src/desktopMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.desktop.kt @@ -3,3 +3,7 @@ package com.alexjlockwood.twentyfortyeight.ui internal actual fun shouldDetectSwipes(): Boolean { return false } + +internal actual fun shouldCenterAlignTopAppBar(): Boolean { + return false +} diff --git a/composeApp/src/nonIosMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.nonIos.kt b/composeApp/src/nonIosMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.nonIos.kt deleted file mode 100644 index 0784233..0000000 --- a/composeApp/src/nonIosMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.nonIos.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.alexjlockwood.twentyfortyeight.ui - -internal actual fun shouldCenterAlignTopAppBar(): Boolean { - return false -} diff --git a/composeApp/src/wasmJsMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.wasmJs.kt b/composeApp/src/wasmJsMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.wasmJs.kt index 3691b29..0ad80b2 100644 --- a/composeApp/src/wasmJsMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.wasmJs.kt +++ b/composeApp/src/wasmJsMain/kotlin/com/alexjlockwood/twentyfortyeight/ui/GameUi.wasmJs.kt @@ -5,3 +5,7 @@ import kotlinx.browser.window internal actual fun shouldDetectSwipes(): Boolean { return window.navigator.maxTouchPoints > 0 } + +internal actual fun shouldCenterAlignTopAppBar(): Boolean { + return false +}