Do not create a TextClassificationSession if we are not going to use it. am: c94b3450ca am: 19df97df2f
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/libtextclassifier/+/11734845
Change-Id: I292a85ff1589b208c1d51eb02342ac377f68b368
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..d97975c
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,3 @@
+third_party {
+ license_type: NOTICE
+}
diff --git a/native/Android.bp b/native/Android.bp
index 4260525..e25d4c1 100644
--- a/native/Android.bp
+++ b/native/Android.bp
@@ -122,19 +122,20 @@
],
header_libs: [
+ "jni_headers",
"tensorflow_headers",
"flatbuffer_headers",
],
shared_libs: [
"liblog",
+ "libz",
],
static_libs: [
"liblua",
"libutf",
"libtflite_static",
- "libz_current",
],
}
@@ -332,6 +333,8 @@
srcs: ["**/*.cc"],
+ header_libs: ["jni_headers"],
+
static_libs: [
"libgmock_ndk",
"libgtest_ndk_c++",