Client-SideUnity SDKAndroid

ProGuard Configuration

Required ProGuard rules for Android builds

Version:

When building for Android release mode with code obfuscation, you must add ProGuard rules to prevent the SDK from being stripped or obfuscated.

Required Rule

Add this rule to your ProGuard configuration:

-keep class com.Geeklab.plugin.** { *; }

How to Apply

Option 1: Add to your existing ProGuard file

If you already have a ProGuard configuration, add the rule to that file.

Option 2: Create a new ProGuard file

Create proguard-user.txt in Assets/Plugins/Android with the rule above.

Warning

Missing this rule may cause runtime errors or break SDK functionality in release builds. The SDK classes may be incorrectly stripped or renamed during obfuscation.

Verification

After building your release APK, you can verify the rule is working by:

  1. Testing all SDK features in a release build
  2. Checking that events are being sent correctly
  3. Monitoring for any ClassNotFoundException or NoSuchMethodError in logs