Skip to content

Commit

Permalink
docs, faq: clear up some things
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Oct 15, 2024
1 parent c38e73e commit 5a85577
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ welcome.

## Generating `mipmap-xxxhdpi` icons in the APK/AAB

Yes. Pass `--icon-mipmaps` when building your application.
Per default `vab` tries to keep APK/AAB's as "slim" as possible.
So, per default, only one application icon is used/included when building packages.

The icon mipmaps will be generated based on the image passed via `--icon /path/to/icon.png`,
or if `--icon` is *not* passed (or invalid) `vab` will try and generate the mipmaps
based on what image that may reside in the "package base files" directory's "`res/mipmap"`.
If you want more icons for more screen sizes `vab` supports generating these when
packing everything up for distribution via the `--icon-mipmaps` flag.

For a vanilla build of `vab` the mipmap icons will be generated based on:
When passing `--icon-mipmaps`, the icon mipmaps will be generated based on the
image passed via `--icon /path/to/icon.png`, or if `--icon` is *not* passed (or invalid),
`vab` will try and generate the mipmaps based on what image *may* reside in the
"package base files" "`res/mipmap"` directory.

For a vanilla build of `vab` the mipmap icons will thus be generated based on:
`platforms/android/res/mipmap/icon.png`

See [Package base files](https://github.com/vlang/vab/blob/master/docs/docs.md#package-base-files) for more info.
Expand Down

0 comments on commit 5a85577

Please sign in to comment.