proguard.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Keep ARCore public-facing classes
  2. # This line from the ARCore SDK's .aar should not be needed when consuming ARCore SDK:
  3. # -keepparameternames
  4. # These are part of the Java <-> native interfaces for ARCore.
  5. -keepclasseswithmembernames,includedescriptorclasses class !com.google.ar.core.viewer.**, !com.google.ar.core.services.logging.**, !com.google.ar.sceneform.**, com.google.ar.** {
  6. native <methods>;
  7. }
  8. # This line from the ARCore SDK's .aar should not be needed when consuming ARCore SDK:
  9. # -keep public class !com.google.ar.core.viewer.**, !com.google.ar.core**.R$*, !com.google.ar.core.services.logging.**, com.google.ar.core.** {*;}
  10. # If you need to build a library on top of arcore_client, and use this library for your project
  11. # Please un-comment this line below.
  12. # -keepattributes *Annotation*
  13. -keep class com.google.ar.core.annotations.UsedByNative
  14. -keep @com.google.ar.core.annotations.UsedByNative class *
  15. -keepclassmembers class * {
  16. @com.google.ar.core.annotations.UsedByNative *;
  17. }
  18. -keep class com.google.ar.core.annotations.UsedByReflection
  19. -keep @com.google.ar.core.annotations.UsedByReflection class *
  20. -keepclassmembers class * {
  21. @com.google.ar.core.annotations.UsedByReflection *;
  22. }
  23. # Keep Dynamite classes
  24. # .aidl file will be proguarded, we should keep all Aidls.
  25. # These lines from the ARCore SDK's .aar should not be needed when consuming ARCore SDK:
  26. # -keep class com.google.vr.dynamite.client.IObjectWrapper { *; }
  27. # -keep class com.google.vr.dynamite.client.ILoadedInstanceCreator { *; }
  28. # -keep class com.google.vr.dynamite.client.INativeLibraryLoader { *; }
  29. # Keep annotation files and the file got annotated.
  30. -keep class com.google.vr.dynamite.client.UsedByNative
  31. -keep @com.google.vr.dynamite.client.UsedByNative class *
  32. -keepclassmembers class * {
  33. @com.google.vr.dynamite.client.UsedByNative *;
  34. }
  35. -keep class com.google.vr.dynamite.client.UsedByReflection
  36. -keep @com.google.vr.dynamite.client.UsedByReflection class *
  37. -keepclassmembers class * {
  38. @com.google.vr.dynamite.client.UsedByReflection *;
  39. }