diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2020-12-23 12:50:28 +0100 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2020-12-23 12:50:49 +0100 |
commit | a061f959ce7e87c6b422fe6dfcd3f8b7c8c1d69d (patch) | |
tree | b3189ee9c6a40e6c606bb3068bb9ad1f90a672e1 | |
parent | cc08156925e04fa867c4379f25a2bcbda06996f4 (diff) | |
download | percent-encoding-a061f959ce7e87c6b422fe6dfcd3f8b7c8c1d69d.tar.gz |
Allow using percent-encoding from DnsResolverplatform-tools-31.0.0
Test: m
Bug: 155855709
Change-Id: I2486a20562935d6a51748acff6b7fe3761b94ad9
-rw-r--r-- | Android.bp | 7 | ||||
-rw-r--r-- | patches/Android.bp.patch | 14 |
2 files changed, 20 insertions, 1 deletions
@@ -1,4 +1,4 @@ -// This file is generated by cargo2android.py --run --device --dependencies --tests. +// This file is generated by cargo2android.py --run --device --dependencies --tests --patch=patches/Android.bp.patch. rust_library { name: "libpercent_encoding", @@ -6,4 +6,9 @@ rust_library { crate_name: "percent_encoding", srcs: ["lib.rs"], edition: "2015", + apex_available: [ + "//apex_available:platform", + "com.android.resolv", + ], + min_sdk_version: "29", } diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch new file mode 100644 index 0000000..57a0a05 --- /dev/null +++ b/patches/Android.bp.patch @@ -0,0 +1,14 @@ +diff --git a/Android.bp b/Android.bp +index 69f4d37..8421e0b 100644 +--- a/Android.bp ++++ b/Android.bp +@@ -6,4 +6,9 @@ rust_library { + crate_name: "percent_encoding", + srcs: ["lib.rs"], + edition: "2015", ++ apex_available: [ ++ "//apex_available:platform", ++ "com.android.resolv", ++ ], ++ min_sdk_version: "29", + } |