summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Nissan <bennissan@google.com>2022-03-25 16:24:54 +0000
committerBen Nissan <bennissan@google.com>2022-04-14 21:23:27 +0000
commit18ce62b81616baa7189c9156829fea6d7e98d7f5 (patch)
treeed88ca6521b8eca5fcf3461261d274ee060c6749
parent054a097e1195f95b53c4e0f0587a8f696f6161aa (diff)
downloadlibtextclassifier-18ce62b81616baa7189c9156829fea6d7e98d7f5.tar.gz
Enable AdServices dependency on native and absl code
This CL enables AdServices to depend on native code from this package, as well as its port of abseil-cpp, by adding visibility for its direct dependents (tensorflow and tflite-support) and enabling it in APEX for AdServices. Test: m Bug: 228840235 Change-Id: Ib116dc222492786757f7048e3600bfb6a06fa217
-rw-r--r--abseil-cpp/Android.bp3
-rw-r--r--native/Android.bp1
2 files changed, 3 insertions, 1 deletions
diff --git a/abseil-cpp/Android.bp b/abseil-cpp/Android.bp
index a3635f3..0ab3734 100644
--- a/abseil-cpp/Android.bp
+++ b/abseil-cpp/Android.bp
@@ -35,7 +35,7 @@ cc_library_static {
export_include_dirs: ["."],
visibility: [
"//external/libtextclassifier:__subpackages__",
- "//external/tflite-support:__subpackages__"
+ "//external/tflite-support:__subpackages__",
],
srcs: [
"absl/**/*.cc",
@@ -43,6 +43,7 @@ cc_library_static {
apex_available: [
"//apex_available:platform",
"com.android.extservices",
+ "com.android.adservices",
],
sdk_version: "current",
min_sdk_version: "30",
diff --git a/native/Android.bp b/native/Android.bp
index 53d6d2d..b80c979 100644
--- a/native/Android.bp
+++ b/native/Android.bp
@@ -66,6 +66,7 @@ cc_library_static {
"com.android.neuralnetworks",
"test_com.android.neuralnetworks",
"com.android.extservices",
+ "com.android.adservices",
],
}