Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use kotlin build.gradle in ComposeStarter #1146

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

kul3r4
Copy link
Contributor

@kul3r4 kul3r4 commented Jul 9, 2024

Migrate guild files from Groovy to Kotlin in ComposeStarter.
Partially fixes #1134

implementation(libs.androidx.splashscreen)

// Compose for Wear OS Dependencies
// NOTE: DO NOT INCLUDE a dependency on androidx.compose.material:material.
Copy link
Contributor

Choose a reason for hiding this comment

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

If we really believe this we should probably change this to a Lint?

Or fail the build if present. I can try the latter if you agree.

For follow up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks that would be great!

implementation(libs.horologist.compose.material)

// Preview Tooling
implementation(libs.compose.ui.tooling.preview)
Copy link
Contributor

Choose a reason for hiding this comment

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

For follow up - these are confusing because name is truncated and missing "wear".

androidx-compose-ui-tooling = { module = "androidx.wear.compose:compose-ui-tooling", version.ref = "compose-ui-tooling" }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Happy to address in another PR and apply to all samples, what about something like androidx-wear-compose-ui-tooling?

@kul3r4 kul3r4 force-pushed the buildgradlekotlin branch from b860bb4 to 20d85d6 Compare July 9, 2024 12:40
@kul3r4
Copy link
Contributor Author

kul3r4 commented Jul 9, 2024

@kul3r4 kul3r4 marked this pull request as ready for review July 9, 2024 12:41
@kul3r4 kul3r4 merged commit 55ce215 into android:main Jul 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate build scripts to Kotlin DSL
2 participants