blob: 44d22c42468d966f71df280b39f6fcf3ca89c350 [file] [log] [blame] [view]
Adam Lesinski0368ebf2016-07-26 12:55:51 -07001# Android Asset Packaging Tool 2.0 (AAPT2) release notes
2
Adam Lesinski86d67df2017-01-31 13:47:27 -08003## 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 Araki4d35cca2017-01-18 20:42:17 +090010## 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 Lesinski5119e512016-12-05 19:48:20 -080015## Version 2.4
16### `aapt2 link ...`
17- Supports `<meta-data>` tags in `<manifest>`.
18
Adam Lesinskic0c36632016-10-19 18:37:53 -070019## Version 2.3
20### `aapt2`
21- Support new `font` resource type.
22
Adam Lesinski5cb05302016-09-06 17:34:06 -070023## 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 Cornwall77788eb2016-09-06 15:16:49 -070027### `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 Lesinski5cb05302016-09-06 17:34:06 -070031
Adam Lesinski36c73a52016-08-11 13:39:24 -070032## 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 Lesinski0368ebf2016-07-26 12:55:51 -070041## 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.