Adam Lesinski | 0368ebf | 2016-07-26 12:55:51 -0700 | [diff] [blame] | 1 | # Android Asset Packaging Tool 2.0 (AAPT2) release notes |
| 2 | |
Adam Lesinski | 36c73a5 | 2016-08-11 13:39:24 -0700 | [diff] [blame^] | 3 | ## 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 Lesinski | 0368ebf | 2016-07-26 12:55:51 -0700 | [diff] [blame] | 12 | ## 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. |