Merge "Improve the docs about when to use introduced." into main am: 04e52144b6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2812358 Change-Id: I251332e390f2dd7044e61ce1924d2c8fc7dbeb0d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -88,12 +88,17 @@ but is useful when developing APIs for an unknown future release.
|
|||||||
|
|
||||||
### introduced
|
### introduced
|
||||||
|
|
||||||
Indicates the version in which an API was first introduced. For example,
|
Indicates the version in which an API was first introduced in the NDK. For
|
||||||
`introduced=21` specifies that the API was first added (or first made public) in
|
example, `introduced=21` specifies that the API was first added (or first made
|
||||||
API level 21. This tag can be applied to either a version definition or an
|
public) in API level 21. This tag can be applied to either a version definition
|
||||||
individual symbol. If applied to a version, all symbols contained in the version
|
or an individual symbol. If applied to a version, all symbols contained in the
|
||||||
will have the tag applied. An `introduced` tag on a symbol overrides the value
|
version will have the tag applied. An `introduced` tag on a symbol overrides the
|
||||||
set for the version, if both are defined.
|
value set for the version, if both are defined.
|
||||||
|
|
||||||
|
The `introduced` tag should only be used with NDK APIs. Other API surface tags
|
||||||
|
(such as `apex`) will override `introduced`. APIs that are in the NDK should
|
||||||
|
never use tags like `apex`, and APIs that are not in the NDK should never use
|
||||||
|
`introduced`.
|
||||||
|
|
||||||
Note: The map file alone does not contain all the information needed to
|
Note: The map file alone does not contain all the information needed to
|
||||||
determine which API level an API was added in. The `first_version` property of
|
determine which API level an API was added in. The `first_version` property of
|
||||||
|
Reference in New Issue
Block a user