Build API 31 shims against module_current.
This is needed to ensure the shims (and everything that uses
them, which soon will include other modules and CTS tests) can
access module_lib APIs.
This requires explicitly depending on framework-connectivity,
because module_current does not include the API stubs.
Bug: 167645754
Test: m NetworkStack NetworkStackNext
Change-Id: Ifbcbde5a49b18a40890b887544d72972d7f42857
diff --git a/Android.bp b/Android.bp
index d7ad77d..83bcd91 100644
--- a/Android.bp
+++ b/Android.bp
@@ -121,8 +121,9 @@
"NetworkStackShimsCommon",
"NetworkStackApi29Shims",
"NetworkStackApi30Shims",
+ "framework-connectivity",
],
- sdk_version: "system_current",
+ sdk_version: "module_current",
visibility: ["//visibility:private"],
}
@@ -138,7 +139,7 @@
"NetworkStackApi30Shims",
"NetworkStackApi31Shims",
],
- sdk_version: "system_current",
+ sdk_version: "module_current",
visibility: ["//visibility:private"],
}