Skip to content

Commit 448791b

Browse files
example: Avoid including PreviewActivity in the resulting apk (#40)
1 parent 6ec6c1d commit 448791b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

composeApp/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ kotlin {
8282
val desktopMain by getting
8383

8484
androidMain.dependencies {
85-
implementation(compose.preview)
86-
implementation(compose.uiTooling)
87-
8885
implementation(libs.androidx.activity.compose)
8986
}
9087
commonMain.dependencies {
@@ -98,12 +95,15 @@ kotlin {
9895
}
9996
desktopMain.dependencies {
10097
implementation(compose.desktop.currentOs)
101-
implementation(compose.preview)
102-
implementation(compose.uiTooling)
10398
}
10499
}
105100
}
106101

102+
dependencies {
103+
implementation(compose.preview)
104+
debugImplementation(compose.uiTooling)
105+
}
106+
107107
android {
108108
namespace = pkgName
109109
compileSdk = libs.versions.android.compileSdk.get().toInt()

0 commit comments

Comments
 (0)