Skip to content

Commit 2c29d97

Browse files
github-actions[bot]web-flowtustanivsky
authored
chore(deps): update Java SDK (Android) to v8.2.0 (#783)
* chore: update modules/sentry-java to 8.2.0 * Download pre-built Native SDK NDK * Fix missing ndk cache dir * Update snapshot * Update build script * Update Android UPL --------- Co-authored-by: GitHub <[email protected]> Co-authored-by: Ivan Tustanivskyi <[email protected]>
1 parent 7ae9166 commit 2c29d97

File tree

11 files changed

+910
-921
lines changed

11 files changed

+910
-921
lines changed

.craft.yml

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ minVersion: 0.24.0
22
changelogPolicy: auto
33
preReleaseCommand: pwsh scripts/bump-version.ps1
44
targets:
5-
- name: symbol-collector
6-
includeNames: /libsentry(-android)?\.so/
7-
batchType: android
8-
bundleIdPrefix: sentry-unreal-android-ndk-
95
- name: github
106
includeNames: /^sentry-unreal-.*.zip$/i
117
- name: registry

.github/workflows/ci.yml

-5
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ jobs:
7373
name: Android-sdk
7474
path: plugin-dev/Source/ThirdParty/Android
7575

76-
- uses: actions/download-artifact@v4
77-
with:
78-
name: Android-libraries
79-
path: modules/sentry-java/sentry-android-ndk/build/intermediates/merged_native_libs/release/out/lib
80-
8176
- uses: actions/download-artifact@v4
8277
with:
8378
name: IOS-sdk

.github/workflows/sdk-build.yml

-7
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,3 @@ jobs:
8787
name: ${{ inputs.target }}-sdk
8888
path: ${{ steps.env.outputs.path }}
8989
retention-days: ${{ github.ref_name == 'main' && 14 || 1 }}
90-
91-
- uses: actions/upload-artifact@v4
92-
if: ${{ inputs.target == 'Android' }}
93-
with:
94-
name: ${{ inputs.target }}-libraries
95-
path: modules/sentry-java/sentry-android-ndk/build/intermediates/merged_native_libs/release/out/lib/*
96-
retention-days: 1

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
- Bump Native SDK from v0.7.17 to v0.7.20 ([#737](https://github.com/getsentry/sentry-unreal/pull/737), [#742](https://github.com/getsentry/sentry-unreal/pull/742), [#764](https://github.com/getsentry/sentry-unreal/pull/764))
3232
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0720)
3333
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.17...0.7.20)
34+
- Bump Java SDK (Android) from v8.2.0-1-g9180dc53 to v8.2.0 ([#783](https://github.com/getsentry/sentry-unreal/pull/783))
35+
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#820)
36+
- [diff](https://github.com/getsentry/sentry-java/compare/8.2.0-1-g9180dc53...8.2.0)
3437

3538
## 0.22.0
3639

modules/sentry-java

Submodule sentry-java updated 970 files

plugin-dev/Source/Sentry/Sentry_Android_UPL.xml

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<copyFile src="$S(PluginDir)/../ThirdParty/Android/sentry.jar" dst="$S(BuildDir)/gradle/app/libs/sentry.jar" />
4747
<copyFile src="$S(PluginDir)/../ThirdParty/Android/sentry-android-core-release.aar" dst="$S(BuildDir)/gradle/app/libs/sentry-android-core-release.aar" />
4848
<copyFile src="$S(PluginDir)/../ThirdParty/Android/sentry-android-ndk-release.aar" dst="$S(BuildDir)/gradle/app/libs/sentry-android-ndk-release.aar" />
49+
<copyFile src="$S(PluginDir)/../ThirdParty/Android/sentry-native-ndk-release.aar" dst="$S(BuildDir)/gradle/app/libs/sentry-native-ndk-release.aar" />
4950
<if condition="bUploadSymbols">
5051
<true>
5152
<copyFile src="$S(ProjectDir)/sentry.properties" dst="$S(BuildDir)/gradle/sentry.properties" />

scripts/build-android.sh

+29
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,32 @@ cp "${sentryJavaRoot}/sentry-android-ndk/build/outputs/aar/sentry-android-ndk-re
1616
cp "${sentryJavaRoot}/sentry-android-core/build/outputs/aar/sentry-android-core-release.aar" "${sentryArtifactsDestination}/sentry-android-core-release.aar"
1717

1818
cp "${sentryJavaRoot}/sentry/build/libs/"sentry-*.jar "${sentryArtifactsDestination}/sentry.jar"
19+
20+
# With version v8 of the sentry-java the Native SDK NDK has to be downloaded separately from the sentry-native repo release page
21+
22+
configFile="${sentryJavaRoot}/buildSrc/src/main/java/Config.kt"
23+
if [[ ! -f "$configFile" ]]; then
24+
echo "Error: Config.kt file not found at $configFile"
25+
exit 1
26+
fi
27+
28+
nativeNdkVersion=$(grep 'sentryNativeNdk' "$configFile" | sed -E 's/.*sentryNativeNdk\s*=\s*"[^"]+:([^"]+)".*/\1/')
29+
if [[ -z "$nativeNdkVersion" ]]; then
30+
echo "Error: Failed to extract Native SDK NDK version."
31+
exit 1
32+
fi
33+
34+
echo "Extracted Sentry Native NDK version: $nativeNdkVersion"
35+
36+
nativeNdkCache="${sentryJavaRoot}/native-ndk-cache"
37+
if ! [ -d "$nativeNdkCache" ]; then
38+
mkdir "$nativeNdkCache"
39+
fi
40+
41+
nativeNdkUrl="https://github.com/getsentry/sentry-native/releases/download/${nativeNdkVersion}/sentry-native-ndk-${nativeNdkVersion}.zip"
42+
43+
curl -L "${nativeNdkUrl}" -o "${nativeNdkCache}/sentry-native-ndk-${nativeNdkVersion}.zip"
44+
45+
unzip -o "${nativeNdkCache}/sentry-native-ndk-${nativeNdkVersion}.zip" -d "${nativeNdkCache}/"
46+
47+
cp "${nativeNdkCache}/sentry-native-ndk-${nativeNdkVersion}/sentry-native-ndk-release.aar" "${sentryArtifactsDestination}/sentry-native-ndk-release.aar"

scripts/packaging/android-libs.snapshot

-12
This file was deleted.

0 commit comments

Comments
 (0)