Skip to content

Commit

Permalink
remove compose dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
anwarpro committed Oct 17, 2024
1 parent 8281722 commit e38495b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.

This file was deleted.

23 changes: 4 additions & 19 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import java.net.URL
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidLibrary)
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.dokka)
id("maven-publish")
id("com.vanniktech.maven.publish") version "0.29.0"
Expand Down Expand Up @@ -59,28 +57,17 @@ kotlin {
val desktopMain by getting

androidMain.dependencies {
implementation(compose.preview)
implementation(libs.androidx.activity.compose)

}
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(compose.components.uiToolingPreview)
implementation(libs.androidx.lifecycle.viewmodel)
implementation(libs.androidx.lifecycle.runtime.compose)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
implementation(libs.kotlinx.coroutines.test)

@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.uiTest)
}
desktopMain.dependencies {
implementation(compose.desktop.currentOs)
// implementation(compose.desktop.currentOs)
implementation(libs.kotlinx.coroutines.swing)
}
}
Expand Down Expand Up @@ -112,11 +99,9 @@ android {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
buildFeatures {
compose = true
}

dependencies {
debugImplementation(compose.uiTooling)
// debugImplementation(compose.uiTooling)
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ agp = "8.2.2"
android-compileSdk = "34"
android-minSdk = "24"
android-targetSdk = "34"
mvvmate-version = "0.0.2"
mvvmate-version = "0.0.3"
androidx-activityCompose = "1.9.1"
androidx-appcompat = "1.7.0"
androidx-constraintlayout = "2.1.4"
Expand Down

0 comments on commit e38495b

Please sign in to comment.