88# include property in project.properties.
99#
1010# For more details, see
11- # http ://developer.android.com/guide/developing/tools/proguard.html
11+ # https ://developer.android.com/guide/developing/tools/proguard.html
1212
1313# Add any project specific keep options here:
1414
2323
2424-dontwarn android.support.**
2525-dontwarn com.badlogic.gdx.backends.android.AndroidFragmentApplication
26- -dontwarn com.badlogic.gdx.utils.GdxBuild
27- -dontwarn com.badlogic.gdx.physics.box2d.utils.Box2DBuild
28- -dontwarn com.badlogic.gdx.jnigen.BuildTarget*
29- -dontwarn com.badlogic.gdx.graphics.g2d.freetype.FreetypeBuild
3026
27+ # Needed by the gdx-controllers official extension.
3128-keep class com.badlogic.gdx.controllers.android.AndroidControllers
3229
33- -keepclassmembers class com.badlogic.gdx.backends.android.AndroidInput* {
34- <init>(com.badlogic.gdx.Application, android.content.Context, java.lang.Object, com.badlogic.gdx.backends.android.AndroidApplicationConfiguration);
35- }
36-
30+ # Needed by the Box2D official extension.
3731-keepclassmembers class com.badlogic.gdx.physics.box2d.World {
3832 boolean contactFilter(long, long);
3933 void beginContact(long);
4236 void postSolve(long, long);
4337 boolean reportFixture(long);
4438 float reportRayFixture(long, float, float, float, float, float);
45- }
39+ }
40+
41+ # You will need the next three lines if you use scene2d for UI or gameplay.
42+ # If you don't use scene2d at all, you can remove or comment out the next line:
43+ -keep public class com.badlogic.gdx.scenes.scene2d.** { *; }
44+ # You will need the next two lines if you use BitmapFont or any scene2d.ui text:
45+ -keep public class com.badlogic.gdx.graphics.g2d.BitmapFont { *; }
46+ # You will probably need this line in most cases:
47+ -keep public class com.badlogic.gdx.graphics.Color { *; }
48+
49+ # These two lines are used with mapping files; see https://developer.android.com/build/shrink-code#retracing
50+ -keepattributes LineNumberTable,SourceFile
51+ -renamesourcefileattribute SourceFile
52+
53+ # Until https://github.com/kotcrab/vis-ui/issues/395 is resolved
54+ -keep class com.kotcrab.vis.ui.** { *; }
55+ -dontwarn com.apple.eio.FileManager
56+
57+
58+ -keep class com.badlogic.gdx.graphics.g2d.GlyphLayout { *; }
0 commit comments