Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Conversation

adamglin0
Copy link
Owner

@adamglin0 adamglin0 commented Dec 7, 2024

No description provided.

@adamglin0 adamglin0 linked an issue Dec 7, 2024 that may be closed by this pull request
@adamglin0 adamglin0 changed the title Remove minSDK and targetSDK Set minSDK to 21 as compose as Dec 7, 2024
@adamglin0 adamglin0 requested a review from skaldebane December 7, 2024 13:11
Copy link
Collaborator

@skaldebane skaldebane left a comment

Choose a reason for hiding this comment

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

LGTM!
One last thing though, was this tested on an unsupported device? Just to make sure that it doesn't crash.

@adamglin0
Copy link
Owner Author

adamglin0 commented Dec 7, 2024

LGTM!
One last thing though, was this tested on an unsupported device? Just to make sure that it doesn't crash.

Just make sure no crash. The feature that support android21 is working in #43.

Copy link
Collaborator

@citytexi citytexi left a comment

Choose a reason for hiding this comment

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

LGTM!!!

Just curious - what's the reason for setting min to 21?

@skaldebane
Copy link
Collaborator

@citytexi It's to support every version Compose itself supports. This is a UI library for Compose, so it kinda makes sense.

While the default KMP templates sets the minSdk to SDK 24 by default, most of androidx supports SDK 21 just fine (some even lower), and there's not much UI-wise that is different on Android 5 compared to, say, Android 7, so it's not a maintenance hurdle if you're already trying to support Android 7.

It might make sense for an app, but a library should always strive to maximize compatibility, so apps get to make the choice. Even as a no-op.

@adamglin0 adamglin0 merged commit 4fab980 into main Dec 9, 2024
9 checks passed
@adamglin0 adamglin0 deleted the 1-support-android-api-28 branch December 9, 2024 07:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Android API < 28
3 participants