Skip to content

Commit

Permalink
Merge pull request #581 from nimblehq/chore/580-hide-Compose-PreviewA…
Browse files Browse the repository at this point in the history
…ctivity

[#580] Hide Compose androidx.compose.ui.tooling.PreviewActivity from the final release build
  • Loading branch information
ryan-conway authored Oct 28, 2024
2 parents f079414 + ea896b7 commit 46ba3ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion template-compose/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ dependencies {
with(Dependencies.Compose) {
implementation(platform(BOM))
implementation(UI)
implementation(UI_TOOLING)
debugImplementation(UI_TOOLING)
implementation(UI_TOOLING_PREVIEW)
implementation(MATERIAL)
implementation(NAVIGATION)

Expand Down
2 changes: 1 addition & 1 deletion template-compose/buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ object Dependencies {
object Compose {
const val BOM = "androidx.compose:compose-bom:${Versions.COMPOSE_BOM}"
const val UI = "androidx.compose.ui:ui"
const val UI_GRAPHICS = "androidx.compose.ui:ui-graphics"
const val UI_TOOLING = "androidx.compose.ui:ui-tooling"
const val UI_TOOLING_PREVIEW = "androidx.compose.ui:ui-tooling-preview"
const val MATERIAL = "androidx.compose.material:material"
const val NAVIGATION = "androidx.navigation:navigation-compose:${Versions.COMPOSE_NAVIGATION}"

Expand Down

0 comments on commit 46ba3ef

Please sign in to comment.