Skip to content

Commit

Permalink
added proguard instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsx-dev committed Feb 26, 2024
1 parent f41b30b commit 8507a98
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,21 @@ You may encounter this warning when loading a model :
This extension is [now archived and no longer recommended](https://github.com/KhronosGroup/glTF/tree/main/extensions#archived-extensions-for-gltf-20) by glTF 2.0 specification.
It was never really supported by this this library and won't be, use it at your own risks.

## Issues with ProGuard and such

This library requires reflection in order to import/export GLTF files. Some classes should be filtered for tools like ProGuard. You could simply exclude all libgdx and gdx-gltf code :

```
keep 'class com.badlogic.gdx.** { *; }'
keep 'class net.mgsx.gltf.** { *; }'
keepattributes 'Signature'
```

Or only exclude gdx-gltf data package :

```
-keep class net.mgsx.gltf.data.** {
public *;
}
```

0 comments on commit 8507a98

Please sign in to comment.