Skip to content

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

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"
        }
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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