Skip to content
Snippets Groups Projects
Commit 98bc011a authored by Paul Duffin's avatar Paul Duffin
Browse files

Use full APIs for api_lint.new_since of *api-stubs-docs-non-updatable

Previously, the `*api-stubs-docs-non-updatable` modules used either the
full previously released public API or a delta for those API surfaces
that extend another API surface. Just passing a delta meant that lint
would not be able to properly ignore issues that already existed in
previously released APIs.

This change switches them to use the `*.api.combined.*.latest` modules
which contains the full API for each surface, including the API
provided by any API surface it extends. That ensures that lint will
not report issues with previously released APIs.

Bug: 341078916
Test: m checkapi
      # Check that multiple --api-lint-previous-api options are passed
      # to metalava for system-api-stubs-docs-non-updatable
Change-Id: I8a6d1263086466fda111266fe8bfdfedf0f8c152
parent cd53cb57
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ non_updatable_exportable_droidstubs {
},
api_lint: {
enabled: true,
new_since: ":android.api.public.latest",
new_since: ":android.api.combined.public.latest",
baseline_file: ":non-updatable-lint-baseline.txt",
},
},
......@@ -130,7 +130,7 @@ non_updatable_exportable_droidstubs {
},
api_lint: {
enabled: true,
new_since: ":android.api.system.latest",
new_since: ":android.api.combined.system.latest",
baseline_file: ":non-updatable-system-lint-baseline.txt",
},
},
......@@ -185,7 +185,7 @@ non_updatable_exportable_droidstubs {
},
api_lint: {
enabled: true,
new_since: ":android.api.test.latest",
new_since: ":android.api.combined.test.latest",
baseline_file: ":non-updatable-test-lint-baseline.txt",
},
},
......@@ -269,7 +269,7 @@ non_updatable_exportable_droidstubs {
},
api_lint: {
enabled: true,
new_since: ":android.api.module-lib.latest",
new_since: ":android.api.combined.module-lib.latest",
baseline_file: ":non-updatable-module-lib-lint-baseline.txt",
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment