Remove support for generating versioned snapshots

(cherry picked from commit b01ac4b6ba)

Previously, the code for selecting specific versions of sdk snapshots
was removed (along with the uses_sdks property). That makes versioned
snapshots useless so this change removes all the code and tests that
generated those versioned snapshots.

Bug: 232546567
Test: m nothing
      packages/modules/common/build/mainline_modules_sdks.sh
Change-Id: Ib6d1b72bc8399fbb39075494ae37da92f4b28d03
Merged-In: Ib6d1b72bc8399fbb39075494ae37da92f4b28d03
This commit is contained in:
Paul Duffin
2022-05-24 20:10:05 +00:00
parent 68e7206340
commit 42cdd62d91
14 changed files with 120 additions and 2269 deletions

View File

@@ -37,23 +37,7 @@ func TestSnapshotWithCompatConfig(t *testing.T) {
`)
CheckSnapshot(t, result, "mysdk", "",
checkVersionedAndroidBpContents(`
// This is auto-generated. DO NOT EDIT.
prebuilt_platform_compat_config {
name: "mysdk_myconfig@current",
sdk_member_name: "myconfig",
visibility: ["//visibility:public"],
metadata: "compat_configs/myconfig/myconfig_meta.xml",
}
sdk_snapshot {
name: "mysdk@current",
visibility: ["//visibility:public"],
compat_configs: ["mysdk_myconfig@current"],
}
`),
checkUnversionedAndroidBpContents(`
checkAndroidBpContents(`
// This is auto-generated. DO NOT EDIT.
prebuilt_platform_compat_config {