blob: 8fa12d00079a374523921fd3efba9afb9d4af2a5 [file] [log] [blame] [view]
Adam Lesinski0368ebf2016-07-26 12:55:51 -07001# Android Asset Packaging Tool 2.0 (AAPT2) release notes
2
Adam Lesinskiceb9b2f2017-02-16 12:05:42 -08003## Version 2.8
4### `aapt2 link ...`
5- Adds shared library support. Build a shared library with the `--shared-lib` flag.
6 Build a client of a shared library by simply including it via `-I`.
7
Adam Lesinski75421622017-01-06 15:20:04 -08008## Version 2.7
Adam Lesinskiceb9b2f2017-02-16 12:05:42 -08009### `aapt2 compile ...`
Adam Lesinski75421622017-01-06 15:20:04 -080010- Fixes bug where psuedolocalization auto-translated strings marked 'translateable="false"'.
11
Adam Lesinski86d67df2017-01-31 13:47:27 -080012## Version 2.6
13### `aapt2`
14- Support legacy `configVarying` resource type.
15- Support `<bag>` tag and treat as `<style>` regardless of type.
16- Add `<feature-group>` manifest tag verification.
17- Add `<meta-data>` tag support to `<instrumentation>`.
18
Yuichi Araki4d35cca2017-01-18 20:42:17 +090019## Version 2.5
20### `aapt2 link ...`
21- Transition XML versioning: Adds a new flag `--no-version-transitions` to disable automatic
22 versioning of Transition XML resources.
23
Adam Lesinski5119e512016-12-05 19:48:20 -080024## Version 2.4
25### `aapt2 link ...`
26- Supports `<meta-data>` tags in `<manifest>`.
27
Adam Lesinskic0c36632016-10-19 18:37:53 -070028## Version 2.3
29### `aapt2`
30- Support new `font` resource type.
31
Adam Lesinski5cb05302016-09-06 17:34:06 -070032## Version 2.2
33### `aapt2 compile ...`
34- Added support for inline complex XML resources. See
35 https://developer.android.com/guide/topics/resources/complex-xml-resources.html
Alexandria Cornwall77788eb2016-09-06 15:16:49 -070036### `aapt link ...`
37- Duplicate resource filtering: removes duplicate resources in dominated configurations
38 that are always identical when selected at runtime. This can be disabled with
39 `--no-resource-deduping`.
Adam Lesinski5cb05302016-09-06 17:34:06 -070040
Adam Lesinski36c73a52016-08-11 13:39:24 -070041## Version 2.1
42### `aapt2 link ...`
43- Configuration Split APK support: supports splitting resources that match a set of
44 configurations to a separate APK which can be loaded alongside the base APK on
45 API 21+ devices. This is done using the flag
46 `--split path/to/split.apk:<config1>[,<config2>,...]`.
47- SDK version resource filtering: Resources with an SDK version qualifier that is unreachable
48 at runtime due to the minimum SDK level declared by the AndroidManifest.xml are stripped.
49
Adam Lesinski0368ebf2016-07-26 12:55:51 -070050## Version 2.0
51### `aapt2 compile ...`
52- Pseudo-localization: generates pseudolocalized versions of default strings when the
53 `--pseudo-localize` option is specified.
54- Legacy mode: treats some class of errors as warnings in order to be more compatible
55 with AAPT when `--legacy` is specified.
56- Compile directory: treats the input file as a directory when `--dir` is
57 specified. This will emit a zip of compiled files, one for each file in the directory.
58 The directory must follow the Android resource directory structure
59 (res/values-[qualifiers]/file.ext).
60
61### `aapt2 link ...`
62- Automatic attribute versioning: adds version qualifiers to resources that use attributes
63 introduced in a later SDK level. This can be disabled with `--no-auto-version`.
64- Min SDK resource filtering: removes resources that can't possibly be selected at runtime due
65 to the application's minimum supported SDK level.