summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoopa Sattiraju <sattiraju@google.com>2022-02-01 22:09:26 -0800
committerRoopa Sattiraju <sattiraju@google.com>2022-02-02 16:21:13 -0800
commitead5592d5743d4311dba40d12bffee4475fb256d (patch)
treec2eb33e9f35209fc54055b6b567986219c3c37f4
parent8a2f224db3429fc900911c1a105388ae0f7de7a3 (diff)
downloadgrpcio-sys-android-t-preview-1.tar.gz
Bug: 206121418 Test: Compile Change-Id: I939103023aa080ab695e44639880b01b78f2c4cc
-rw-r--r--Android.bp3
-rw-r--r--patches/Android.bp.patch5
2 files changed, 5 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index 1256ee50..399a8c0b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -114,7 +114,8 @@ rust_bindgen {
"--blocklist-type=gpr_mu",
"--blocklist-type=gpr_cv",
"--blocklist-type=gpr_once",
- ]
+ ],
+ min_sdk_version: "29",
}
rust_test {
diff --git a/patches/Android.bp.patch b/patches/Android.bp.patch
index 202a5742..d97431fd 100644
--- a/patches/Android.bp.patch
+++ b/patches/Android.bp.patch
@@ -14,7 +14,7 @@ index 45707bc..d0369e6 100644
edition: "2018",
features: [
"bindgen",
-@@ -55,52 +55,74 @@
+@@ -55,52 +55,75 @@
"liblibc",
"liblibz_sys",
],
@@ -119,7 +119,8 @@ index 45707bc..d0369e6 100644
+ "--blocklist-type=gpr_mu",
+ "--blocklist-type=gpr_cv",
+ "--blocklist-type=gpr_once",
-+ ]
++ ],
++ min_sdk_version: "29",
+}
+
+rust_test {