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

Remove ExperimentalWearMaterialApi opt-in and suppress in code #2513

Merged
merged 3 commits into from
Feb 11, 2025

Conversation

yschimke
Copy link
Collaborator

@yschimke yschimke commented Feb 11, 2025

WHAT

  • Remove -opt-in=androidx.wear.compose.material.ExperimentalWearMaterialApi flags from build files.
  • Add OptIn(ExperimentalWearMaterialApi::class) to the necessary files.
  • Add @Suppress("DEPRECATION") to HorologistTheme for statusBarColor.
  • Change ContextCompat.startActivity to startActivity.
  • Change Uri.parse to String.toUri().
  • Remove ExperimentalFoundationApi opt-in.

WHY

Simplify internal import.

HOW

Checklist 📋

  • Add explicit visibility modifier and explicit return types for public declarations
  • Run spotless check
  • Run tests
  • Update metalava's signature text files

- Remove `-opt-in=androidx.wear.compose.material.ExperimentalWearMaterialApi` flags from build files.
- Add `OptIn(ExperimentalWearMaterialApi::class)` to the necessary files.
- Add `@Suppress("DEPRECATION")` to `HorologistTheme` for statusBarColor.
- Change `ContextCompat.startActivity` to `startActivity`.
- Change `Uri.parse` to `String.toUri()`.
- Remove `ExperimentalFoundationApi` opt-in.
@yschimke yschimke requested a review from luizgrp February 11, 2025 10:34
@yschimke yschimke merged commit c38c9ca into google:main Feb 11, 2025
6 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.

2 participants