8
8
# include property in project.properties.
9
9
#
10
10
# For more details, see
11
- # http ://developer.android.com/guide/developing/tools/proguard.html
11
+ # https ://developer.android.com/guide/developing/tools/proguard.html
12
12
13
13
# Add any project specific keep options here:
14
14
23
23
24
24
-dontwarn android.support.**
25
25
-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
30
26
27
+ # Needed by the gdx-controllers official extension.
31
28
-keep class com.badlogic.gdx.controllers.android.AndroidControllers
32
29
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.
37
31
-keepclassmembers class com.badlogic.gdx.physics.box2d.World {
38
32
boolean contactFilter(long, long);
39
33
void beginContact(long);
42
36
void postSolve(long, long);
43
37
boolean reportFixture(long);
44
38
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