Dist art module's public api in 'art.txt'
This also has the side-effect of enabling tracking compatibility of
the API with the api released in SDK version 30 (via txt files added in
prebuilt/sdk in this topic).
Bug: 174847574
Test: m dist sdk (inspect out/dist/apistubs)
Change-Id: I6d2c936d38ec6e5bd3d4a2a7e61a7deda7bcd210
diff --git a/JavaLibrary.bp b/JavaLibrary.bp
index c246dd9..457a15b 100644
--- a/JavaLibrary.bp
+++ b/JavaLibrary.bp
@@ -823,6 +823,7 @@
visibility: [
"//art/build/sdk",
"//frameworks/base",
+ "//frameworks/base/api",
],
srcs: [
":core_oj_api_files",
@@ -867,12 +868,12 @@
patch_module: "java.base",
sdk_version: "none",
system_modules: "java-current-stubs-system-modules",
-
- // Don't copy any output files to the dist.
- no_dist: true,
-
- // TODO(b/173606718): Remove this once API files are in place.
- unsafe_ignore_missing_latest_api: true,
+ // The base name for the artifacts that are automatically published to the
+ // dist and which end up in one of the sub-directories of prebuilts/sdk.
+ // As long as this matches the name of the artifacts in prebuilts/sdk then
+ // the API will be checked for compatibility against the latest released
+ // version of the API.
+ dist_stem: "art",
}
// Used when compiling higher-level code against art.module.public.api.stubs.