Skip to content

Commit

Permalink
remove unused modules
Browse files Browse the repository at this point in the history
  • Loading branch information
stslex committed Nov 24, 2023
1 parent 28f7eac commit 77c7ca5
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 176 deletions.
1 change: 0 additions & 1 deletion composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ kotlin {
implementation(project(":core:ui"))
implementation(project(":feature:home"))

implementation(projects.shared)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
Expand Down
1 change: 0 additions & 1 deletion core/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ kotlin {

commonMain.dependencies {
implementation(libs.kermit)
implementation(projects.shared)
implementation(compose.runtime)
implementation(compose.foundation)
}
Expand Down
1 change: 0 additions & 1 deletion core/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ kotlin {
commonMain.dependencies {
implementation(project(":core:core"))

implementation(projects.shared)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
Expand Down
1 change: 0 additions & 1 deletion feature/home/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ kotlin {
implementation(project(":core:core"))
implementation(project(":core:ui"))

implementation(projects.shared)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package com.stslex.feature.home

import Greeting
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.Button
import androidx.compose.material.Icon
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Home
import androidx.compose.runtime.Composable
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
Expand All @@ -20,7 +21,6 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import org.jetbrains.compose.resources.ExperimentalResourceApi
import org.jetbrains.compose.resources.painterResource

@OptIn(ExperimentalResourceApi::class)
@Composable
Expand All @@ -33,7 +33,7 @@ fun HomeScreen(
.background(MaterialTheme.colors.background)
) {
val defaultGreetState = "Hello World!"
val clickedGreetState = "Compose: ${Greeting().greet()}"
val clickedGreetState = "Compose: Greeting"
var isClicked by remember { mutableStateOf(false) }
val greetingText by remember {
derivedStateOf {
Expand All @@ -56,9 +56,10 @@ fun HomeScreen(
Text(greetingText)
}
AnimatedVisibility(isClicked) {
Image(
painterResource("compose-multiplatform.xml"),
null
Icon(
imageVector = Icons.Default.Home,
contentDescription = null,
tint = MaterialTheme.colors.primary
)
}
}
Expand Down
36 changes: 0 additions & 36 deletions feature/home/src/commonMain/resources/compose-multiplatform.xml

This file was deleted.

8 changes: 2 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[versions]
kermit = "2.0.2"
ktor = "2.3.6"
logback = "1.4.11"
compose = "1.5.4"
compose-plugin = "1.5.10"
Expand All @@ -24,10 +23,6 @@ kermit = { module = "co.touchlab:kermit", version.ref = "kermit" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
logback = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
ktor-server-core = { module = "io.ktor:ktor-server-core-jvm", version.ref = "ktor" }
ktor-server-netty = { module = "io.ktor:ktor-server-netty-jvm", version.ref = "ktor" }
ktor-server-tests = { module = "io.ktor:ktor-server-tests-jvm", version.ref = "ktor" }
compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview", version.ref = "compose" }
Expand All @@ -41,9 +36,10 @@ androidx-material = { group = "com.google.android.material", name = "material",
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "androidx-constraintlayout" }
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activityCompose" }

#todo check if this is needed
logback = { module = "ch.qos.logback:logback-classic", version.ref = "logback" }
[plugins]
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
ktor = { id = "io.ktor.plugin", version.ref = "ktor" }
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
androidApplication = { id = "com.android.application", version.ref = "agp" }
androidLibrary = { id = "com.android.library", version.ref = "agp" }
Expand Down
21 changes: 0 additions & 21 deletions server/build.gradle.kts

This file was deleted.

22 changes: 0 additions & 22 deletions server/src/main/kotlin/com/stslex/wizard/Application.kt

This file was deleted.

12 changes: 0 additions & 12 deletions server/src/main/resources/logback.xml

This file was deleted.

2 changes: 0 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ dependencyResolutionManagement {
}
}

include(":server")
include(":shared")
include(":composeApp")
include(":core:core")
include(":core:ui")
Expand Down
34 changes: 0 additions & 34 deletions shared/build.gradle.kts

This file was deleted.

7 changes: 0 additions & 7 deletions shared/src/androidMain/kotlin/Platform.android.kt

This file was deleted.

1 change: 0 additions & 1 deletion shared/src/commonMain/kotlin/Constants.kt

This file was deleted.

7 changes: 0 additions & 7 deletions shared/src/commonMain/kotlin/Greeting.kt

This file was deleted.

5 changes: 0 additions & 5 deletions shared/src/commonMain/kotlin/Platform.kt

This file was deleted.

7 changes: 0 additions & 7 deletions shared/src/iosMain/kotlin/Platform.ios.kt

This file was deleted.

5 changes: 0 additions & 5 deletions shared/src/jvmMain/kotlin/Platform.jvm.kt

This file was deleted.

0 comments on commit 77c7ca5

Please sign in to comment.