From 4829994d52affe7121defdaa21828fa5b1dd34fb Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Fri, 29 Mar 2024 18:55:43 -0700 Subject: [PATCH] Minor formatting fixes --- composeApp/build.gradle.kts | 2 +- .../src/desktopMain/kotlin/net/agorise/kee/Platform.jvm.kt | 2 +- composeApp/src/desktopMain/kotlin/net/agorise/kee/main.kt | 2 +- shared/preferences/build.gradle.kts | 6 +++--- .../kotlin/net/agorise/shared/stargate/StargateBridge.kt | 3 ++- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index c0f0453..73b9f14 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -27,7 +27,7 @@ kotlin { isStatic = true } } - + sourceSets { val androidMain by getting { dependencies { diff --git a/composeApp/src/desktopMain/kotlin/net/agorise/kee/Platform.jvm.kt b/composeApp/src/desktopMain/kotlin/net/agorise/kee/Platform.jvm.kt index 90a123b..f892852 100644 --- a/composeApp/src/desktopMain/kotlin/net/agorise/kee/Platform.jvm.kt +++ b/composeApp/src/desktopMain/kotlin/net/agorise/kee/Platform.jvm.kt @@ -1,6 +1,6 @@ package net.agorise.kee -class JVMPlatform: Platform { +class JVMPlatform : Platform { override val name: String = "Java ${System.getProperty("java.version")}" } diff --git a/composeApp/src/desktopMain/kotlin/net/agorise/kee/main.kt b/composeApp/src/desktopMain/kotlin/net/agorise/kee/main.kt index 7f907ae..c08889f 100644 --- a/composeApp/src/desktopMain/kotlin/net/agorise/kee/main.kt +++ b/composeApp/src/desktopMain/kotlin/net/agorise/kee/main.kt @@ -1,6 +1,6 @@ package net.agorise.kee - import androidx.compose.ui.unit.DpSize +import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.dp import androidx.compose.ui.window.Window import androidx.compose.ui.window.WindowPosition diff --git a/shared/preferences/build.gradle.kts b/shared/preferences/build.gradle.kts index c7cf725..e0a7e98 100644 --- a/shared/preferences/build.gradle.kts +++ b/shared/preferences/build.gradle.kts @@ -17,7 +17,7 @@ kotlin { iosX64() iosArm64() iosSimulatorArm64() - + sourceSets { commonMain.dependencies { implementation(libs.multiplatform.settings) @@ -28,11 +28,11 @@ kotlin { android { namespace = "net.agorise.shared.preferences" compileSdk = libs.versions.android.compileSdk.get().toInt() - + defaultConfig { minSdk = libs.versions.android.minSdk.get().toInt() } - + compileOptions { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 diff --git a/shared/stargate/src/commonMain/kotlin/net/agorise/shared/stargate/StargateBridge.kt b/shared/stargate/src/commonMain/kotlin/net/agorise/shared/stargate/StargateBridge.kt index 12ae331..71ea095 100644 --- a/shared/stargate/src/commonMain/kotlin/net/agorise/shared/stargate/StargateBridge.kt +++ b/shared/stargate/src/commonMain/kotlin/net/agorise/shared/stargate/StargateBridge.kt @@ -74,7 +74,8 @@ class StargateBridge { } // Temporary request to get block count - private fun getBlockCountRequest() = "{ \"jsonrpc\": \"2.0\", \"id\": \"${getNextRequestId()}\", \"method\": \"DERO.GetBlockCount\" }" + private fun getBlockCountRequest() = + "{ \"jsonrpc\": \"2.0\", \"id\": \"${getNextRequestId()}\", \"method\": \"DERO.GetBlockCount\" }" private fun getNextRequestId() = ++currentRequestId }