Skip to content

Commit 254787a

Browse files
authored
Support 16kb page size for Android 15 (8.x.x) (#3851)
* Enable 16kb support for Android 15, bump ndk minSdk to 21 * Update Changelog
1 parent c682d68 commit 254787a

File tree

6 files changed

+29
-7
lines changed

6 files changed

+29
-7
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,30 @@
22

33
## Unreleased
44

5+
### Breaking Changes
6+
7+
- The minSdk level for sentry-android-ndk changed from 19 to 21 ([#3851](https://github.com/getsentry/sentry-java/pull/3851))
8+
59
### Features
610

711
- Add `globalHubMode` to options ([#3805](https://github.com/getsentry/sentry-java/pull/3805))
812
- `globalHubMode` used to only be a param on `Sentry.init`. To make it easier to be used in e.g. Desktop environments, we now additionally added it as an option on SentryOptions that can also be set via `sentry.properties`.
913
- If both the param on `Sentry.init` and the option are set, the option will win. By default the option is set to `null` meaning whatever is passed to `Sentry.init` takes effect.
1014
- Lazy uuid generation for SentryId and SpanId ([#3770](https://github.com/getsentry/sentry-java/pull/3770))
15+
- Android 15: Add support for 16KB page sizes ([#3851](https://github.com/getsentry/sentry-java/pull/3851))
16+
- See https://developer.android.com/guide/practices/page-sizes for more details
1117

1218
### Fixes
1319

1420
- Add `auto.graphql.graphql22` to ignored span origins when using OpenTelemetry ([#3828](https://github.com/getsentry/sentry-java/pull/3828))
1521
- The Spring Boot 3 WebFlux sample now uses our GraphQL v22 integration ([#3828](https://github.com/getsentry/sentry-java/pull/3828))
1622

23+
### Dependencies
24+
25+
- Bump Native SDK from v0.7.5 to v0.7.8 ([#3851](https://github.com/getsentry/sentry-java/pull/3851))
26+
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#078)
27+
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.5...0.7.8)
28+
1729
### Behavioural Changes
1830

1931
- (Android) Enable Performance V2 by default ([#3824](https://github.com/getsentry/sentry-java/pull/3824))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Sentry SDK for Java and Android
2020
|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ------- |
2121
| sentry-android | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android) | 19 |
2222
| sentry-android-core | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-core) | 19 |
23-
| sentry-android-ndk | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-ndk/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-ndk) | 19 |
23+
| sentry-android-ndk | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-ndk/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-ndk) | 21 |
2424
| sentry-android-timber | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-timber/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-timber) | 19 |
2525
| sentry-android-fragment | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-fragment/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-fragment) | 19 |
2626
| sentry-android-navigation | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-navigation/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-android-navigation) | 19 |

buildSrc/src/main/java/Config.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object Config {
3636
val minSdkVersion = 19
3737
val minSdkVersionOkHttp = 21
3838
val minSdkVersionReplay = 19
39-
val minSdkVersionNdk = 19
39+
val minSdkVersionNdk = 21
4040
val minSdkVersionCompose = 21
4141
val targetSdkVersion = sdkVersion
4242
val compileSdkVersion = sdkVersion
@@ -156,6 +156,8 @@ object Config {
156156

157157
val apolloKotlin = "com.apollographql.apollo3:apollo-runtime:3.8.2"
158158

159+
val sentryNativeNdk = "io.sentry:sentry-native-ndk:0.7.8"
160+
159161
object OpenTelemetry {
160162
val otelVersion = "1.41.0"
161163
val otelAlphaVersion = "$otelVersion-alpha"

sentry-android-ndk/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ plugins {
88
id(Config.QualityPlugins.gradleVersions)
99
}
1010

11-
val sentryAndroidSdkName: String by project
12-
1311
android {
1412
compileSdk = Config.Android.compileSdkVersion
1513
namespace = "io.sentry.android.ndk"
@@ -71,7 +69,7 @@ dependencies {
7169
api(projects.sentry)
7270
api(projects.sentryAndroidCore)
7371

74-
implementation("io.sentry:sentry-native-ndk:0.7.5")
72+
implementation(Config.Libs.sentryNativeNdk)
7573

7674
compileOnly(Config.CompileOnly.jetbrainsAnnotations)
7775

sentry-samples/sentry-samples-android/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ target_link_libraries(native-sample PRIVATE
1212
sentry-native-ndk::sentry-android
1313
sentry-native-ndk::sentry
1414
)
15+
16+
# Android 15: Support 16KB page sizes
17+
# see https://developer.android.com/guide/practices/page-sizes
18+
target_link_options(native-sample PRIVATE "-Wl,-z,max-page-size=16384")

sentry-samples/sentry-samples-android/build.gradle.kts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ android {
9292
ignore = true
9393
}
9494
}
95+
96+
@Suppress("UnstableApiUsage")
97+
packagingOptions {
98+
jniLibs {
99+
useLegacyPackaging = true
100+
}
101+
}
95102
}
96103

97104
dependencies {
@@ -126,8 +133,7 @@ dependencies {
126133
implementation(Config.Libs.composeNavigation)
127134
implementation(Config.Libs.composeMaterial)
128135
implementation(Config.Libs.composeCoil)
136+
implementation(Config.Libs.sentryNativeNdk)
129137

130138
debugImplementation(Config.Libs.leakCanary)
131-
132-
implementation("io.sentry:sentry-native-ndk:0.7.5")
133139
}

0 commit comments

Comments
 (0)