Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ kotlin.code.style=official

# Enable R8 full mode.
android.enableR8.fullMode=true

# Use an AndroidX snapshot build.
# https://androidx.dev/snapshots/builds
# snapshotVersion=14793336
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To be consistent with the suggested change in settings.gradle.kts, this property name should also be updated to androidxSnapshotVersion for clarity and to avoid potential naming collisions in the future.

# androidxSnapshotVersion=14793336

2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val snapshotVersion: String? = System.getenv("COMPOSE_SNAPSHOT_ID")
val snapshotVersion: String? by settings
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The property name snapshotVersion is a bit generic. If you need to add other snapshot repositories in the future (e.g., for Kotlin), it could lead to naming conflicts. Consider renaming it to something more specific like androidxSnapshotVersion to clearly indicate its purpose. This will improve long-term maintainability.

Note that you will also need to update its usage on line 16.

val androidxSnapshotVersion: String? by settings


pluginManagement {
repositories {
Expand Down
Loading