Skip to content

Suggestion for decreasing apk size when using this library on android #34

@yamin8000

Description

@yamin8000

If you're using this library on Android, you'll see a 2mb increase in your apk size. This library is not designed for Android, so probably this wasn't a concern, but after using this library, a whole range of YAML files are added to your apk. Even fake data that you don't use, I know those files are shipped as resources, so they're automatically added to the APK too.
Especially when using this library for only previews in Compose, then there's no reason to ship YAML files in your final apk, but if you're really using fake data in your final product, then that's not what I'm talking about here.
My solution to delete those from the final apk file is this:

    packaging {
        resources {
            excludes += "/en/*"
            excludes += "/*.yml"
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions