Skip to content

Introduce min Android SDK parameter#820

Open
ThexXTURBOXx wants to merge 3 commits intojonbhanson:masterfrom
ThexXTURBOXx:master
Open

Introduce min Android SDK parameter#820
ThexXTURBOXx wants to merge 3 commits intojonbhanson:masterfrom
ThexXTURBOXx:master

Conversation

@ThexXTURBOXx
Copy link
Copy Markdown
Contributor

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! :)

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.

1 participant