sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

Optionally bundle images #271

Closed marko-cancar closed 2 years ago

marko-cancar commented 2 years ago

Currently Assets.car weight ~2MB. That is more than 50% of my overall app size (Yes I want my app to be as light as possible 😄) and I am not using any of its assets (I use SF symbols instead, which I suggest as well btw).

I would like that Image assets are bundled into SPPermissions_SPPermissions.bundle only if at least one of images is being used in the app.

ivanvorobei commented 2 years ago

Sorry, I don't understand which file is around 2mb.

marko-cancar commented 2 years ago

Assets.car is a "compiled" version of Assets.xcassets which is packed along with the app or framework.

ivanvorobei commented 2 years ago

@marko-cancar sorry, Assets.xcassets is vector images pack. Size is 214kb.

Screenshot 2021-11-18 at 12 30 58