Skip to content

Commit e6f5344

Browse files
authored
fix: move multidex support to the Advanced Usage section (#1758)
1 parent eb02a9d commit e6f5344

File tree

1 file changed

+19
-19
lines changed
  • src/collections/_documentation/platforms/android

1 file changed

+19
-19
lines changed

src/collections/_documentation/platforms/android/index.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,25 @@ If you want to have control over what breadcrumbs are attached to your data, you
624624

625625
That allows the user to decide whether and how a breadcrumb should be sent.
626626

627+
### Multi-Dex Support
628+
629+
If you're using Multi-Dex and our SDK, we would recommend updating your Multi-Dex configuration:
630+
631+
```groovy
632+
release {
633+
multiDexKeepProguard file('multidex-config.pro')
634+
}
635+
```
636+
637+
And, add to `multidex-config.pro` the following lines:
638+
639+
```
640+
-keep class io.sentry.android.core.SentryAndroidOptions
641+
-keep class io.sentry.android.ndk.SentryNdk
642+
```
643+
644+
If you experience issues like `Could not find class` on devices running the `Dalvik VM`, you may expand the above rules to keep the necessary classes in the main dex file.
645+
627646
## Integrating the NDK
628647

629648
To use the Android NDK in your native code, include the Sentry NDK libraries into your project so that the compiler can link the libraries during the build.
@@ -690,22 +709,3 @@ Example of uploading all your .so files:
690709
sentry-cli login
691710
sentry-cli upload-dif -o {YOUR ORGANISATION} -p {PROJECT} build/intermediates/merged_native_libs/{buildVariant}
692711
```
693-
694-
### Multi-Dex support
695-
696-
If you're using Multi-Dex and our SDK, we would recommend updating your Multi-Dex configuration:
697-
698-
```groovy
699-
release {
700-
multiDexKeepProguard file('multidex-config.pro')
701-
}
702-
```
703-
704-
And, add to `multidex-config.pro` the following lines:
705-
706-
```
707-
-keep class io.sentry.android.core.SentryAndroidOptions
708-
-keep class io.sentry.android.ndk.SentryNdk
709-
```
710-
711-
If you experience issues like `Could not find class` on devices running the `Dalvik VM`, you may expand the above rules to keep the necessary classes in the main dex file.

0 commit comments

Comments
 (0)