Closed SakiiCode closed 7 months ago
I am not sure if this is the correct way but as a workaround put
-keep class net.mgsx.gltf.data.** {
public *;
}
in the proguard-rules.pro
file
If this is actually the best solution, I suggest adding it to the install part of the readme
Hi, i tried using proguard for a desktop application some times ago and end up with a configuration like this :
keep 'class com.badlogic.gdx.** { *; }'
keep 'class net.mgsx.gltf.** { *; }'
keepattributes 'Signature'
TBH, there is no point to obfuscate open source library code (libgdx, gdx-gltf, and others...) only your own game code matters.
Please try this configuration and if it works for you i'll add it to the documentation.
Please try this configuration and if it works for you i'll add it to the documentation.
I have the same issue with proguard using, the proposed solution resolves it. Thanks
TBH, there is no point to obfuscate open source library code (libgdx, gdx-gltf, and others...) only your own game code matters.
I strongly disagree, as little as possible should be put into the proguard rules, otherwise you will miss out on the size reduction, reverse engineering protection, code optimization benefits.
fixed by 8507a98
I am having this fatal exception on Android if
minifyEnabled true
is set in build.gradleThis is the top of desert.gltf
w0.k0
iscom.badlogic.gdx.utils.SerializationException
r3.a
isnet.mgsx.gltf.data.GLTF
w0.r.o
iscom.badlogic.gdx.utils.Json.readFields(JsonValue)
If I set
minifyEnabled false
everything works. Tried "2.1.0" and "-SNAPSHOT" versions both give this error