From 476336fff68d96b2e0414b01395268611de8612f Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Mon, 26 Jun 2023 21:08:53 +0200 Subject: [PATCH 01/10] added proguard keeps to the bindings project --- src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj | 2 ++ .../build/Sentry.Bindings.Android.targets | 5 +++++ src/Sentry.Bindings.Android/sentry-proguard.cfg | 5 +++++ 3 files changed, 12 insertions(+) create mode 100644 src/Sentry.Bindings.Android/build/Sentry.Bindings.Android.targets create mode 100644 src/Sentry.Bindings.Android/sentry-proguard.cfg diff --git a/src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj b/src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj index 2da2af2bae..6b9f640b97 100644 --- a/src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj +++ b/src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj @@ -12,6 +12,8 @@ + + diff --git a/src/Sentry.Bindings.Android/build/Sentry.Bindings.Android.targets b/src/Sentry.Bindings.Android/build/Sentry.Bindings.Android.targets new file mode 100644 index 0000000000..de8c267362 --- /dev/null +++ b/src/Sentry.Bindings.Android/build/Sentry.Bindings.Android.targets @@ -0,0 +1,5 @@ + + + + + diff --git a/src/Sentry.Bindings.Android/sentry-proguard.cfg b/src/Sentry.Bindings.Android/sentry-proguard.cfg new file mode 100644 index 0000000000..a0cd6438c9 --- /dev/null +++ b/src/Sentry.Bindings.Android/sentry-proguard.cfg @@ -0,0 +1,5 @@ +# Keep names on select sentry-java classes & their methods - we use string-based JNI lookup in our integration. +-keep class io.sentry.android.core.SentryAndroid { *; } +-keep class io.sentry.android.core.SentryAndroidOptions { *; } +-keep class io.sentry.android.core.SentryInitProvider { *; } +-keep class io.sentry.android.core.SentryPerformanceProvider { *; } From 9e4778c0504cb2144df9903b94f86c494cf7bdc8 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Mon, 26 Jun 2023 21:13:58 +0200 Subject: [PATCH 02/10] updating the sample project to use the proguard.cfg --- .../Sentry.Samples.Android.csproj | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/samples/Sentry.Samples.Android/Sentry.Samples.Android.csproj b/samples/Sentry.Samples.Android/Sentry.Samples.Android.csproj index a2a2bbd458..57cfa70fd6 100644 --- a/samples/Sentry.Samples.Android/Sentry.Samples.Android.csproj +++ b/samples/Sentry.Samples.Android/Sentry.Samples.Android.csproj @@ -12,8 +12,14 @@ + + + - + - +