Skip to content

Introduce min Android SDK parameter#820

Merged
ThexXTURBOXx merged 3 commits into
jonbhanson:masterfrom
ThexXTURBOXx:master
May 23, 2026
Merged

Introduce min Android SDK parameter#820
ThexXTURBOXx merged 3 commits into
jonbhanson:masterfrom
ThexXTURBOXx:master

Conversation

@ThexXTURBOXx
Copy link
Copy Markdown
Collaborator

I got the inspiration for this when thinking about flutter_launcher_icons's min_sdk_android parameter and seeing the v21 and v31 folders that flutter_native_splash generates.
If the used minSdkVersion is already 21 or higher, the "default" drawable[-night] folders are redundant as they will not be used anyway. Likewise, if the minSdkVersion is 31 or higher, the values[-night] folders are redundant.
This PR tries to get rid of these redundant/unneeded files by simply not generating these configurations and generating the "newer" configurations in their place.
Not the cleanest piece of code, sadly - so I am open for suggestions, of course! :)

Comment thread lib/android.dart
Copy link
Copy Markdown
Collaborator

@Bungeefan Bungeefan left a comment

Choose a reason for hiding this comment

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

Except a very small nitpick (which in its current state shouldn't even affect anything) looks good to me!

@ThexXTURBOXx ThexXTURBOXx merged commit fd38fae into jonbhanson:master May 23, 2026
1 check passed
jonbhanson added a commit that referenced this pull request May 29, 2026
…unnecessary native code. Thanks Nico for PR #828.  Fix remove command always showing help instead of executing. Thanks ersanKolay for PR #823. Fixes #822, #804, #786. Updated dependencies.
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