Skip to content

Commit 46ba3ef

Browse files
authored
Merge pull request #581 from nimblehq/chore/580-hide-Compose-PreviewActivity
[#580] Hide Compose androidx.compose.ui.tooling.PreviewActivity from the final release build
2 parents f079414 + ea896b7 commit 46ba3ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

template-compose/app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ dependencies {
143143
with(Dependencies.Compose) {
144144
implementation(platform(BOM))
145145
implementation(UI)
146-
implementation(UI_TOOLING)
146+
debugImplementation(UI_TOOLING)
147+
implementation(UI_TOOLING_PREVIEW)
147148
implementation(MATERIAL)
148149
implementation(NAVIGATION)
149150

template-compose/buildSrc/src/main/java/Dependencies.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ object Dependencies {
1111
object Compose {
1212
const val BOM = "androidx.compose:compose-bom:${Versions.COMPOSE_BOM}"
1313
const val UI = "androidx.compose.ui:ui"
14-
const val UI_GRAPHICS = "androidx.compose.ui:ui-graphics"
1514
const val UI_TOOLING = "androidx.compose.ui:ui-tooling"
15+
const val UI_TOOLING_PREVIEW = "androidx.compose.ui:ui-tooling-preview"
1616
const val MATERIAL = "androidx.compose.material:material"
1717
const val NAVIGATION = "androidx.navigation:navigation-compose:${Versions.COMPOSE_NAVIGATION}"
1818

0 commit comments

Comments
 (0)