Skip to content

Commit 589932b

Browse files
authored
Merge branch 'main' into rz/perf/single-lifecycle-observer
2 parents 018c55b + f8aa71b commit 589932b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
- Deduplicate battery breadcrumbs ([#4561](https://github.com/getsentry/sentry-java/pull/4561))
1414
- Remove unused method in ManifestMetadataReader ([#4585](https://github.com/getsentry/sentry-java/pull/4585))
1515
- Have single `NetworkCallback` registered at a time to reduce IPC calls ([#4562](https://github.com/getsentry/sentry-java/pull/4562))
16+
- Limit ProGuard keep rules for native methods within `sentry-android-ndk` to the `io.sentry.**` namespace. ([#4427](https://github.com/getsentry/sentry-java/pull/4427))
17+
- If you relied on the Sentry SDK to keep native method names for JNI compatibility within your namespace, please review your ProGuard rules and ensure the configuration still works. Especially when you're not consuming any of the default Android proguard rules (`proguard-android.txt` or `proguard-android-optimize.txt`) the following config should be present:
18+
```
19+
-keepclasseswithmembernames class * {
20+
native <methods>;
21+
}
22+
```
1623

1724
## 8.18.0
1825

scripts/update-gradle.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ set-version)
3232
version="${version:1}"
3333
fi
3434

35-
# Remove trailing ".0" - gradlew expects '7.1' instead of '7.1.0'
36-
if [[ "$version" == *".0" ]]; then
37-
version="${version:0:${#version}-2}"
38-
fi
3935
echo "Setting gradle version to '$version'"
4036

4137
# This sets version to gradle-wrapper.properties.

sentry-android-ndk/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-keep class io.sentry.protocol.DebugImage { *; }
88

99
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
10-
-keepclasseswithmembernames,includedescriptorclasses class * {
10+
-keepclasseswithmembernames,includedescriptorclasses class io.sentry.** {
1111
native <methods>;
1212
}
1313

0 commit comments

Comments
 (0)