diff options
-rw-r--r-- | Android.bp | 6 | ||||
-rw-r--r-- | patches/Android.bp.patch | 13 |
2 files changed, 18 insertions, 1 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --device --tests --dependencies. +// This file is generated by cargo2android.py --run --dependencies --device --tests --patch=patches/Android.bp.patch. rust_defaults { name: "downcast-rs_defaults", @@ -72,4 +72,8 @@ rust_library { "default", "std", ], + apex_available: [ + "//apex_available:platform", + "com.android.virt", + ], } diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch new file mode 100644 index 0000000..4efb413 --- /dev/null +++ b/patches/Android.bp.patch @@ -0,0 +1,13 @@ +diff --git a/Android.bp b/Android.bp +index f99bb24..48f54d8 100644 +--- a/Android.bp ++++ b/Android.bp +@@ -72,4 +72,8 @@ rust_library { + "default", + "std", + ], ++ apex_available: [ ++ "//apex_available:platform", ++ "com.android.virt", ++ ], + } |