Skip to content

Commit

Permalink
Added proguard rules for keeping classes with JNI calls to native code
Browse files Browse the repository at this point in the history
  • Loading branch information
priettt committed Jul 5, 2024
1 parent 1154f5d commit ecb4666
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions embrace-android-sdk/embrace-proguard.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
-keep class io.embrace.android.embracesdk.payload.NativeThreadAnrStackframe { *; }
-keep class io.embrace.android.embracesdk.anr.sigquit.SigquitDataSource { *; }

## Keep classes with JNI calls to native code
-keep class io.embrace.android.embracesdk.capture.cpu.EmbraceCpuInfoDelegate { *; }
-keep class io.embrace.android.embracesdk.anr.ndk.NativeThreadSamplerNdkDelegate { *; }
-keep class io.embrace.android.embracesdk.ndk.NdkDelegateImpl { *; }

## OpenTelemetry Java SDK
-keep class io.opentelemetry.api.trace.StatusCode { *; }
-dontwarn com.google.auto.value.extension.memoized.Memoized
Expand Down

0 comments on commit ecb4666

Please sign in to comment.