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 | 5cb0530 | 2016-09-06 17:34:06 -0700 | [diff] [blame] | 3 | ## Version 2.2 |
| 4 | ### `aapt2 compile ...` |
| 5 | - Added support for inline complex XML resources. See |
| 6 | https://developer.android.com/guide/topics/resources/complex-xml-resources.html |
Alexandria Cornwall | 77788eb | 2016-09-06 15:16:49 -0700 | [diff] [blame] | 7 | ### `aapt link ...` |
| 8 | - Duplicate resource filtering: removes duplicate resources in dominated configurations |
| 9 | that are always identical when selected at runtime. This can be disabled with |
| 10 | `--no-resource-deduping`. |
Adam Lesinski | 5cb0530 | 2016-09-06 17:34:06 -0700 | [diff] [blame] | 11 | |
Adam Lesinski | 36c73a5 | 2016-08-11 13:39:24 -0700 | [diff] [blame] | 12 | ## Version 2.1 |
| 13 | ### `aapt2 link ...` |
| 14 | - Configuration Split APK support: supports splitting resources that match a set of |
| 15 | configurations to a separate APK which can be loaded alongside the base APK on |
| 16 | API 21+ devices. This is done using the flag |
| 17 | `--split path/to/split.apk:<config1>[,<config2>,...]`. |
| 18 | - SDK version resource filtering: Resources with an SDK version qualifier that is unreachable |
| 19 | at runtime due to the minimum SDK level declared by the AndroidManifest.xml are stripped. |
| 20 | |
Adam Lesinski | 0368ebf | 2016-07-26 12:55:51 -0700 | [diff] [blame] | 21 | ## Version 2.0 |
| 22 | ### `aapt2 compile ...` |
| 23 | - Pseudo-localization: generates pseudolocalized versions of default strings when the |
| 24 | `--pseudo-localize` option is specified. |
| 25 | - Legacy mode: treats some class of errors as warnings in order to be more compatible |
| 26 | with AAPT when `--legacy` is specified. |
| 27 | - Compile directory: treats the input file as a directory when `--dir` is |
| 28 | specified. This will emit a zip of compiled files, one for each file in the directory. |
| 29 | The directory must follow the Android resource directory structure |
| 30 | (res/values-[qualifiers]/file.ext). |
| 31 | |
| 32 | ### `aapt2 link ...` |
| 33 | - Automatic attribute versioning: adds version qualifiers to resources that use attributes |
| 34 | introduced in a later SDK level. This can be disabled with `--no-auto-version`. |
| 35 | - Min SDK resource filtering: removes resources that can't possibly be selected at runtime due |
| 36 | to the application's minimum supported SDK level. |