Import TextClassifier to AOSP.
This is the first time to introduce downloader code to AOSP.
Test: m TextClassifierService & atest -p external/libtextclassifier
Bug: 180441353
Change-Id: I8b69daced97760fb0f3b0cc882107c39e97eb0a0
diff --git a/java/Android.bp b/java/Android.bp
index ca34a66..30fd2bc 100644
--- a/java/Android.bp
+++ b/java/Android.bp
@@ -52,7 +52,10 @@
// Similar to TextClassifierServiceLib, but without the AndroidManifest.
android_library {
name: "TextClassifierServiceLibNoManifest",
- srcs: ["src/**/*.java"],
+ srcs: [
+ "src/**/*.java",
+ "src/**/*.aidl",
+ ],
manifest: "LibNoManifest_AndroidManifest.xml",
static_libs: [
"androidx.core_core",
@@ -61,6 +64,11 @@
"guava",
"textclassifier-statsd",
"error_prone_annotations",
+ "androidx.work_work-runtime",
+ "android_downloader_lib",
+ "textclassifier-statsd",
+ "textclassifier-java-proto-lite",
+ "androidx.concurrent_concurrent-futures",
],
sdk_version: "system_current",
min_sdk_version: "30",