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