blob: a68d6f67324f111521904fc5de109504a7db01e6 [file] [log] [blame] [view]
Adam Lesinski0368ebf2016-07-26 12:55:51 -07001# Android Asset Packaging Tool 2.0 (AAPT2) release notes
2
Adam Lesinski36c73a52016-08-11 13:39:24 -07003## Version 2.1
4### `aapt2 link ...`
5- Configuration Split APK support: supports splitting resources that match a set of
6 configurations to a separate APK which can be loaded alongside the base APK on
7 API 21+ devices. This is done using the flag
8 `--split path/to/split.apk:<config1>[,<config2>,...]`.
9- SDK version resource filtering: Resources with an SDK version qualifier that is unreachable
10 at runtime due to the minimum SDK level declared by the AndroidManifest.xml are stripped.
11
Adam Lesinski0368ebf2016-07-26 12:55:51 -070012## Version 2.0
13### `aapt2 compile ...`
14- Pseudo-localization: generates pseudolocalized versions of default strings when the
15 `--pseudo-localize` option is specified.
16- Legacy mode: treats some class of errors as warnings in order to be more compatible
17 with AAPT when `--legacy` is specified.
18- Compile directory: treats the input file as a directory when `--dir` is
19 specified. This will emit a zip of compiled files, one for each file in the directory.
20 The directory must follow the Android resource directory structure
21 (res/values-[qualifiers]/file.ext).
22
23### `aapt2 link ...`
24- Automatic attribute versioning: adds version qualifiers to resources that use attributes
25 introduced in a later SDK level. This can be disabled with `--no-auto-version`.
26- Min SDK resource filtering: removes resources that can't possibly be selected at runtime due
27 to the application's minimum supported SDK level.