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