Obfuscation

Proguard Rules

If you are using SDK Bluetooth (Device) libraries, you need to add this line in your proguard-rules file :

-keep class com.drivesync.android.devices.** { *; }

If you are using distracted driving telemetry during trip recording, add the following:

-keep class com.intellimec.mobile.android.distracteddriving.DistractedDrivingRecordProvider

The class name for your custom token signer must not be obfuscated:

-keep class [MyTokenSigner].** { *; }

If you are using the trip recorder, then the name of the trip notification factory must not be obfuscated:

-keep class [MyNotificationFactory].** { *; }

Example from the SDK Sample App:

-keep class com.drivesync.android.sample.sdk.SimpleNotificationFactory
-keep class com.drivesync.android.sample.sdk.FirebaseIdentity$FirebaseTokenSigner
-keep class com.intellimec.mobile.android.distracteddriving.DistractedDrivingRecordProvider

Last updated