aboutsummaryrefslogtreecommitdiff
path: root/proguard.flags
diff options
context:
space:
mode:
Diffstat (limited to 'proguard.flags')
-rw-r--r--proguard.flags10
1 files changed, 10 insertions, 0 deletions
diff --git a/proguard.flags b/proguard.flags
new file mode 100644
index 00000000..566e53fd
--- /dev/null
+++ b/proguard.flags
@@ -0,0 +1,10 @@
+# Stop proguard from stripping away code used by tensorflow JNI library.
+-keepclassmembers class org.tensorflow.lite.NativeInterpreterWrapper {
+ private long inferenceDurationNanoseconds;
+}
+
+-keep class org.tensorflow.lite.annotations.UsedByReflection
+-keep @org.tensorflow.lite.annotations.UsedByReflection class *
+-keepclassmembers class * {
+ @org.tensorflow.lite.annotations.UsedByReflection *;
+} \ No newline at end of file