diff options
| author | 2023-09-08 12:52:42 +0000 | |
|---|---|---|
| committer | 2023-09-08 13:20:47 +0000 | |
| commit | 8be0952ecb7e528b6273eedac5d6810c48d786e7 (patch) | |
| tree | d93e8641cb4b3cd3d53e8b3ae349ac888a91b0b8 | |
| parent | b90e7f68bca8b1acb0a9cfa12a960a59dabbf25b (diff) | |
UnflaggedApi: Disable enforcement for @SystemApi for now
The lint seems to trigger on methods inherited from
classes that are part of the public API surface.
Disables the lint for non-public surfaces until this is fixed.
Bug: 297362755
Test: m :checkapi
Change-Id: I6de0123ed8d54d88b7d78cc01e99e0558aa99413
| -rw-r--r-- | Android.bp | 1 | ||||
| -rw-r--r-- | api/StubLibraries.bp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp index f1a3af27a633..57a5a3c6bff1 100644 --- a/Android.bp +++ b/Android.bp @@ -621,7 +621,6 @@ metalava_framework_docs_args = "" + "--api-lint-ignore-prefix org. " + "--error NoSettingsProvider " + "--error UnhiddenSystemApi " + - "--error UnflaggedApi " + "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " + "--hide BroadcastBehavior " + "--hide CallbackInterface " + diff --git a/api/StubLibraries.bp b/api/StubLibraries.bp index c59a83313371..2f84df70fc40 100644 --- a/api/StubLibraries.bp +++ b/api/StubLibraries.bp @@ -33,7 +33,7 @@ droidstubs { "android-non-updatable-stubs-defaults", "module-classpath-stubs-defaults", ], - args: metalava_framework_docs_args, + args: metalava_framework_docs_args + "--error UnflaggedApi ", check_api: { current: { api_file: ":non-updatable-current.txt", |