Dist more API txt files

Add disting of the following for the sdk:
- android-non-updatable.txt
- android-non-updatable-removed.txt
- removed.txt

Bug: 158544979
Test: m sdk dist && inspect out/dist/apistubs
Change-Id: I5f628f4fcfc13f67105ee3b2760274e900fc1e34
This commit is contained in:
Anton Hansson 2021-01-20 20:23:34 +00:00
parent c76df1366c
commit 85785fec8a
3 changed files with 100 additions and 22 deletions

View File

@ -120,6 +120,20 @@ droidstubs {
new_since: ":android-non-updatable.api.public.latest",
},
},
dists: [
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/public/api",
dest: "android-non-updatable.txt",
tag: ".api.txt",
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/public/api",
dest: "android-non-updatable-removed.txt",
tag: ".removed-api.txt",
},
],
}
priv_apps =
@ -159,6 +173,20 @@ droidstubs {
baseline_file: "core/api/system-lint-baseline.txt",
},
},
dists: [
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/system/api",
dest: "android-non-updatable.txt",
tag: ".api.txt",
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/system/api",
dest: "android-non-updatable-removed.txt",
tag: ".removed-api.txt",
},
],
}
droidstubs {
@ -175,11 +203,32 @@ droidstubs {
baseline_file: "core/api/test-lint-baseline.txt",
},
},
dist: {
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/test/api",
dest: "android.txt",
},
dists: [
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/test/api",
dest: "android.txt",
tag: ".api.txt",
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/test/api",
dest: "removed.txt",
tag: ".removed-api.txt",
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/test/api",
dest: "android-non-updatable.txt",
tag: ".api.txt",
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/test/api",
dest: "android-non-updatable-removed.txt",
tag: ".removed-api.txt",
},
],
}
droidstubs {
@ -200,6 +249,20 @@ droidstubs {
new_since: ":android-non-updatable.api.module-lib.latest",
},
},
dists: [
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/module-lib/api",
dest: "android-non-updatable.txt",
tag: ".api.txt",
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/module-lib/api",
dest: "android-non-updatable-removed.txt",
tag: ".removed-api.txt",
},
],
}
/////////////////////////////////////////////////////////////////////

View File

@ -50,10 +50,7 @@ genrule {
dest: "current.txt",
},
{
targets: [
"sdk",
"win_sdk",
],
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/public/api",
dest: "android.txt",
},
@ -106,6 +103,11 @@ genrule {
dir: "api",
dest: "removed.txt",
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/public/api",
dest: "removed.txt",
},
],
}
@ -131,10 +133,7 @@ genrule {
dest: "system-current.txt",
},
{
targets: [
"sdk",
"win_sdk",
],
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/system/api",
dest: "android.txt",
},
@ -163,6 +162,11 @@ genrule {
dir: "api",
dest: "system-removed.txt",
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/system/api",
dest: "removed.txt",
},
],
visibility: ["//visibility:public"],
}
@ -189,10 +193,7 @@ genrule {
dest: "module-lib-current.txt",
},
{
targets: [
"sdk",
"win_sdk",
],
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/module-lib/api",
dest: "android.txt",
},
@ -220,6 +221,11 @@ genrule {
dir: "api",
dest: "module-lib-removed.txt",
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/module-lib/api",
dest: "removed.txt",
},
],
}

View File

@ -147,11 +147,20 @@ droidstubs {
baseline_file: "api/lint-baseline.txt",
},
},
dist: {
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/system-server/api",
dest: "android.txt",
},
dists: [
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/system-server/api",
dest: "android.txt",
tag: ".api.txt"
},
{
targets: ["sdk", "win_sdk"],
dir: "apistubs/android/system-server/api",
dest: "removed.txt",
tag: ".removed-api.txt",
},
]
}
java_library {