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

ANDROID-15581 Upgrade material lib & do not expose internal dependencies as api #402

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dpastor
Copy link
Contributor

@dpastor dpastor commented Dec 27, 2024

🥅 What's the goal?

Related to https://jira.tid.es/browse/ANDROID-15454. Upgrade material lib in mistica, which is used by android-messenger.

Tagged as breaking change because it does not exposes anymore the internal libraries as api, so apps may need to declare their dependencies explicitly.

🚧 How do we do it?

  • Just raise version & review catalog components are working correctly with new material version.

☑️ Checks

  • I updated the documentation, including readmes and wikis. If this is a breaking change, tag the PR with "Breaking Change" label and remember to include breaking change migration guide in release notes where this version is released.
  • Tested with dark mode.
  • Tested with API 24.
  • No sync with iOS Needed.
  • No accessibility changes.

🧪 How can I test this?

@dpastor dpastor added the Breaking Change A change that is not retrocompatible label Dec 27, 2024
@@ -64,25 +65,25 @@ fun Tags() {
.padding(top = 16.dp)
.height(60.dp)
) {
Tag(text = "Inverse", style = TagView.TYPE_INVERSE, modifier = Modifier.padding(8.dp), icon = android.R.drawable.ic_lock_power_off)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Android resource not available in older api levels, this was crashing when opening the catalog in an api 24 device.

Copy link
Member

Choose a reason for hiding this comment

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

Wow cool

api 'androidx.constraintlayout:constraintlayout-solver:2.0.4'
api 'androidx.recyclerview:recyclerview:1.1.0'
api "androidx.compose.runtime:runtime:$compose_ui_version"
implementation "com.google.android.material:material:1.12.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do not expose internal dependencies as api, if applications needs them, apps should declare them explicitly.

@dpastor dpastor requested review from a team, dagonco, jdelga and DevPabloGarcia and removed request for a team and jdelga December 27, 2024 09:01
Copy link
Member

@dagonco dagonco left a comment

Choose a reason for hiding this comment

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

🚀

Copy link

📱 New catalog for testing generated: Download

@dpastor dpastor requested review from a team and yceballost and removed request for a team December 27, 2024 09:20
@dpastor
Copy link
Contributor Author

dpastor commented Dec 27, 2024

@yceballost nothing needed to review, just need the approval to follow the process :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Change A change that is not retrocompatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants