Skip to content

Commit

Permalink
added v7 requirement: api 19
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanosiano committed Aug 4, 2023
1 parent 57a1957 commit 380a7d3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/platforms/android/configuration/using-ndk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ description: "Learn how to configure the NDK integration."

The Android Native Development Kit (NDK) allows you to implement parts of your app in native code, using languages such as C and C++.

NDK integration is packed with the SDK and requires API level 16. The package `sentry-android-ndk` works by bundling Sentry's native SDK, [`sentry-native`](/platforms/native/). As a result, even if a native library in your app causes the crash, Sentry is able to capture it.
NDK integration is packed with the SDK. The package `sentry-android-ndk` works by bundling Sentry's native SDK, [`sentry-native`](/platforms/native/). As a result, even if a native library in your app causes the crash, Sentry is able to capture it.

You can [disable the NDK integration](#disable-ndk-integration), use our Sentry Android SDK [without the NDK](#using-the-sdk-without-the-ndk), and support devices on [API levels lower than 16](#api-level-lower-than-16).
You can [disable the NDK integration](#disable-ndk-integration), use our Sentry Android SDK [without the NDK](#using-the-sdk-without-the-ndk).

## Symbolicate Stack Traces

Expand Down Expand Up @@ -111,19 +111,6 @@ configurations.configureEach {
}
```

## API Level Lower Than 16

To support the devices on the API level lower than 16, update your `AndroidManifest.xml`:

```xml {filename:AndroidManifest.xml}
<manifest>
<!-- Merging strategy for the imported manifests -->
<uses-sdk tools:overrideLibrary="io.sentry.android" />
</manifest>
```

With these changes the SDK will be enabled on all devices with API level ≥ 14 and the SDK with NDK will be enabled on all devices with API level ≥ 16.

## Troubleshooting

### Missing Debug Images or Unsymbolicated Stack Traces
Expand Down
16 changes: 16 additions & 0 deletions src/platforms/android/migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ redirect_from:
description: "Migrating between versions of Sentry's SDK for Android."
---

## Migrating from `io.sentry:sentry-android 6.x` to `io.sentry:sentry-android 7.0.0`

- This version requires API level 19.
- Older versions with NDK integration support API level 16.
To support the devices on the API level lower than 16, update your `AndroidManifest.xml`:
```xml {filename:AndroidManifest.xml}
<manifest>
<!-- Merging strategy for the imported manifests -->
<uses-sdk tools:overrideLibrary="io.sentry.android" />
</manifest>
```
With these changes the SDK will be enabled on all devices with API level ≥ 14 and the SDK with NDK will be enabled on all devices with API level ≥ 16.
- Older versions without NDK integration support API level 14.



## Migrating from `io.sentry:sentry-android 6.14.x` to `io.sentry:sentry-android 6.15.0`

The `sentry-compose-android` and `sentry-compose` integrations now declare their upstream dependencies as `compileOnly`. Make sure to have the `androidx.navigation:navigation-compose`, `androidx.compose.runtime:runtime`, and `androidx.compose.ui:ui` dependencies on the classpath if you're using those integrations. Otherwise, the application will crash with a `NoClassDefFoundError` exception.
Expand Down

0 comments on commit 380a7d3

Please sign in to comment.