Merge "Update proguard file to retain native functions." into androidx-main
diff --git a/appsearch/appsearch-local-storage/proguard-rules.pro b/appsearch/appsearch-local-storage/proguard-rules.pro
index 335e9e8..09fbdad7 100644
--- a/appsearch/appsearch-local-storage/proguard-rules.pro
+++ b/appsearch/appsearch-local-storage/proguard-rules.pro
@@ -19,12 +19,10 @@
   <fields>;
 }
 -keep class com.google.android.icing.BreakIteratorBatcher { *; }
+
+# This prevents the obfuscation or removal of fields referenced in native.
+-keep class com.google.android.icing.IcingSearchEngineImpl
 -keepclassmembers public class com.google.android.icing.IcingSearchEngineImpl {
   private long nativePointer;
-}
-
-# This prevents the names of native methods from being obfuscated and prevents
-# UnsatisfiedLinkErrors.
--keepclasseswithmembernames,includedescriptorclasses class * {
   native <methods>;
 }