mavlink / MAVSDK-Java

MAVSDK client for Java.
71 stars 41 forks source link

Update README to add proguard rule #69

Closed divyanshupundir closed 3 years ago

divyanshupundir commented 3 years ago

If users want to enable code shrinking, obfuscation and optimization using ProGuard they can add this rule to the ProGuard file of their project. ProGuard removes some fields from mavsdk classes and native code present in the mavsdk-server module when the rule is not used.

This rule works for both mavsdk and mavsdk-server modules.

Tested on Android Studio 4.2 with Gradle 7.0.2

divyanshupundir commented 3 years ago

Alternatively, the ProGuard file can also be embedded in the jar, so that the users don't have to worry about adding the rules themselves. But I am yet to test that.