Skip to content

Commit c7ae0b3

Browse files
committed
πŸ‘• format code
1 parent 5967f57 commit c7ae0b3

21 files changed

Lines changed: 28 additions & 40 deletions

β€Ž.fleet/run.jsonβ€Ž

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"configurations": [
3-
{
4-
"type": "gradle",
5-
"name": "Run App",
6-
"tasks": ["run"]
7-
}
8-
]
2+
"configurations": [
3+
{
4+
"type": "gradle",
5+
"name": "Run App",
6+
"tasks": [
7+
"run"
8+
]
9+
}
10+
]
911
}

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
| Windows |[![Download Button](https://img.shields.io/static/v1?label=Windows&message=Stackzy.msi&color=30A3E6)](https://github.com/theapache64/stackzy/releases/latest)| Experimental |
2626
| MacOS |[![Download Button](https://img.shields.io/static/v1?label=MacOS&message=Stackzy.jar&color=30A3E6)](https://github.com/theapache64/stackzy/releases/latest) | Experimental |
2727

28-
> ℹ️ To run the `jar`, you need Java 15 or above. If you hate running jar, you can clone the repo and execute `./gradlew createDistributable` to
28+
> ℹ️ To run the `jar`, you need Java 15 or above. If you hate running jar, you can clone the repo and
29+
> execute `./gradlew createDistributable` to
2930
> build executable for your system.
3031
3132
## πŸ‹ Dependency

β€Žbuild.gradle.ktsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ tasks.test {
8383
}
8484

8585
tasks.withType<KotlinCompile> {
86-
kotlinOptions.jvmTarget = "11"
87-
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=androidx.compose.foundation.ExperimentalFoundationApi"
88-
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=androidx.compose.ui.ExperimentalComposeUiApi"
89-
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlin.io.path.ExperimentalPathApi"
86+
kotlinOptions.jvmTarget = "15"
87+
// kotlinOptions.freeCompilerArgs += "-Xuse-experimental=androidx.compose.foundation.ExperimentalFoundationApi"
88+
// kotlinOptions.freeCompilerArgs += "-Xuse-experimental=androidx.compose.ui.ExperimentalComposeUiApi"
89+
// kotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlin.io.path.ExperimentalPathApi"
9090
}
9191

9292
tasks.withType<org.gradle.jvm.tasks.Jar> {

β€Ždata/build.gradle.ktsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ dependencies {
5353
}
5454

5555
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
56-
kotlinOptions.jvmTarget = "11"
57-
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=androidx.compose.foundation.ExperimentalFoundationApi"
58-
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=androidx.compose.ui.ExperimentalComposeUiApi"
59-
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlin.io.path.ExperimentalPathApi"
56+
kotlinOptions.jvmTarget = "15"
57+
// kotlinOptions.freeCompilerArgs += "-Xuse-experimental=androidx.compose.foundation.ExperimentalFoundationApi"
58+
// kotlinOptions.freeCompilerArgs += "-Xuse-experimental=androidx.compose.ui.ExperimentalComposeUiApi"
59+
// kotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlin.io.path.ExperimentalPathApi"
6060
}

β€Žsrc/main/kotlin/com/theapache64/stackzy/ui/common/Selectable.ktβ€Ž

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ fun Modifier.addHoverEffect(
5151
}
5252

5353
return this.background(normalColor.copy(alpha = backgroundAlpha), RoundedCornerShape(cornerRadius)).clickable {
54-
onClicked()
55-
}.onPointerEvent(eventType = PointerEventType.Enter, onEvent = {
56-
isHovered = true
57-
}).onPointerEvent(eventType = PointerEventType.Exit, onEvent = {
58-
isHovered = false
59-
})
54+
onClicked()
55+
}.onPointerEvent(eventType = PointerEventType.Enter, onEvent = {
56+
isHovered = true
57+
}).onPointerEvent(eventType = PointerEventType.Exit, onEvent = {
58+
isHovered = false
59+
})
6060
}
6161

6262
// Preview
@@ -102,8 +102,8 @@ fun <T : AlphabetCircle> Selectable(
102102
) {
103103

104104
Row(modifier = modifier.fillMaxWidth().addHoverEffect(onClicked = {
105-
onSelected(data)
106-
}).padding(padding), verticalAlignment = Alignment.CenterVertically) {
105+
onSelected(data)
106+
}).padding(padding), verticalAlignment = Alignment.CenterVertically) {
107107

108108
if (data.imageUrl() == null) {
109109
// Show only alphabet

β€Žsrc/main/kotlin/com/theapache64/stackzy/ui/feature/applist/AppListScreen.ktβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import androidx.compose.foundation.layout.*
44
import androidx.compose.foundation.lazy.grid.GridCells
55
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
66
import androidx.compose.foundation.lazy.grid.items
7-
import androidx.compose.foundation.lazy.items
87
import androidx.compose.material.*
98
import androidx.compose.material.icons.Icons
109
import androidx.compose.material.icons.outlined.Search

β€Žsrc/main/kotlin/com/theapache64/stackzy/ui/feature/devicelist/DeviceListViewModel.ktβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import kotlinx.coroutines.CoroutineScope
88
import kotlinx.coroutines.flow.MutableStateFlow
99
import kotlinx.coroutines.flow.StateFlow
1010
import kotlinx.coroutines.flow.catch
11-
import kotlinx.coroutines.flow.collect
1211
import kotlinx.coroutines.launch
1312
import javax.inject.Inject
1413

β€Žsrc/main/kotlin/com/theapache64/stackzy/ui/feature/libdetail/LibraryDetailViewModel.ktβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import com.theapache64.stackzy.util.R
1414
import kotlinx.coroutines.CoroutineScope
1515
import kotlinx.coroutines.flow.MutableStateFlow
1616
import kotlinx.coroutines.flow.asStateFlow
17-
import kotlinx.coroutines.flow.collect
1817
import kotlinx.coroutines.launch
1918
import javax.inject.Inject
2019

β€Žsrc/main/kotlin/com/theapache64/stackzy/ui/feature/liblist/LibraryListScreen.ktβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import androidx.compose.foundation.layout.*
44
import androidx.compose.foundation.lazy.grid.GridCells
55
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
66
import androidx.compose.foundation.lazy.grid.items
7-
import androidx.compose.foundation.lazy.items
87
import androidx.compose.material.Icon
98
import androidx.compose.material.OutlinedTextField
109
import androidx.compose.material.Text

β€Žsrc/main/kotlin/com/theapache64/stackzy/ui/feature/liblist/LibraryListViewModel.ktβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import com.theapache64.stackzy.ui.util.getSingularOrPlural
1010
import kotlinx.coroutines.CoroutineScope
1111
import kotlinx.coroutines.flow.MutableStateFlow
1212
import kotlinx.coroutines.flow.StateFlow
13-
import kotlinx.coroutines.flow.collect
1413
import kotlinx.coroutines.launch
1514
import java.util.*
1615
import javax.inject.Inject

0 commit comments

Comments
Β (0)