Stop hardcoding sdk/module_exports dynamic prop types for Bazel overlay.
These sdk/sdk_snapshot/module_exports/module_exports_snapshot properties are dynamically created using RegisterSdkMemberType [1] and eventually createDynamicSdkMemberType [2]. All dynamically created sdk member types are string list types. Instead of hardcoding the mapping, retrieve them from the registry instead. [1]: https://cs.android.com/android/platform/superproject/+/master:build/soong/android/sdk.go;l=489-497;drc=master [2]: https://cs.android.com/android/platform/superproject/+/master:build/soong/sdk/sdk.go;l=156;drc=master Bug: 166563303 Bug: 170798271 Fixes: 170798271 Test: m bazel_overlay && cd out/soong/bazel_overlay && bazel cquery //... Signed-off-by: Jingwen Chen <jingwen@google.com> Change-Id: Ib77f4e0cc14a7b4ec344a2de115682c234927c16
Loading
Please register or sign in to comment