proguard-rules.pro 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # To enable ProGuard in your project, edit project.properties
  2. # to define the proguard.config property as described in that file.
  3. #
  4. # Add project specific ProGuard rules here.
  5. # By default, the flags in this file are appended to flags specified
  6. # in ${sdk.dir}/tools/proguard/proguard-android.txt
  7. # You can edit the include path and order by changing the ProGuard
  8. # include property in project.properties.
  9. #
  10. # For more details, see
  11. # https://developer.android.com/guide/developing/tools/proguard.html
  12. # Add any project specific keep options here:
  13. # If your project uses WebView with JS, uncomment the following
  14. # and specify the fully qualified class name to the JavaScript interface
  15. # class:
  16. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  17. # public *;
  18. #}
  19. -verbose
  20. -dontwarn android.support.**
  21. -dontwarn com.badlogic.gdx.backends.android.AndroidFragmentApplication
  22. # Needed by the gdx-controllers official extension.
  23. -keep class com.badlogic.gdx.controllers.android.AndroidControllers
  24. # Needed by the Box2D official extension.
  25. -keepclassmembers class com.badlogic.gdx.physics.box2d.World {
  26. boolean contactFilter(long, long);
  27. void beginContact(long);
  28. void endContact(long);
  29. void preSolve(long, long);
  30. void postSolve(long, long);
  31. boolean reportFixture(long);
  32. float reportRayFixture(long, float, float, float, float, float);
  33. }
  34. # You will need the next three lines if you use scene2d for UI or gameplay.
  35. # If you don't use scene2d at all, you can remove or comment out the next line:
  36. -keep public class com.badlogic.gdx.scenes.scene2d.** { *; }
  37. # You will need the next two lines if you use BitmapFont or any scene2d.ui text:
  38. -keep public class com.badlogic.gdx.graphics.g2d.BitmapFont { *; }
  39. # You will probably need this line in most cases:
  40. -keep public class com.badlogic.gdx.graphics.Color { *; }
  41. # These two lines are used with mapping files; see https://developer.android.com/build/shrink-code#retracing
  42. -keepattributes LineNumberTable,SourceFile
  43. -renamesourcefileattribute SourceFile