Skip to content

Commit bf2f42a

Browse files
authored
Merge branch 'main' into feat/manifest-version-attributes
2 parents e4d522f + 460594f commit bf2f42a

File tree

29 files changed

+206
-119
lines changed

29 files changed

+206
-119
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4141

4242
- name: Initialize CodeQL
43-
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # pin@v2
43+
uses: github/codeql-action/init@5f8171a638ada777af81d42b55959a643bb29017 # pin@v2
4444
with:
4545
languages: 'java'
4646

@@ -49,4 +49,4 @@ jobs:
4949
./gradlew buildForCodeQL
5050
5151
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # pin@v2
52+
uses: github/codeql-action/analyze@5f8171a638ada777af81d42b55959a643bb29017 # pin@v2

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Get auth token
2121
id: token
22-
uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6
22+
uses: actions/create-github-app-token@af35edadc00be37caa72ed9f3e6d5f7801bfdf09 # v1.11.7
2323
with:
2424
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2525
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,27 @@
1515

1616
- Increase http timeouts from 5s to 30s to have a better chance of events being delivered without retry ([#4276](https://github.com/getsentry/sentry-java/pull/4276))
1717
- Add `MANIFEST.MF` to Sentry JARs ([#4272](https://github.com/getsentry/sentry-java/pull/4272))
18+
- Retain baggage sample rate/rand values as doubles ([#4279](https://github.com/getsentry/sentry-java/pull/4279))
19+
- Introduce fatal SDK logger ([#4288](https://github.com/getsentry/sentry-java/pull/4288))
20+
- We use this to print out messages when there is a problem that prevents the SDK from working correctly.
21+
- One example for this is when the SDK has been configured with mixed dependency versions where we print out details, which module and version are affected.
1822

1923
### Fixes
2024

2125
- Do not override user-defined `SentryOptions` ([#4262](https://github.com/getsentry/sentry-java/pull/4262))
26+
- Session Replay: Change bitmap config to `ARGB_8888` for screenshots ([#4282](https://github.com/getsentry/sentry-java/pull/4282))
27+
28+
### Internal
29+
30+
- Added `platform` to SentryEnvelopeItemHeader ([#4287](https://github.com/getsentry/sentry-java/pull/4287))
31+
- Set `android` platform to ProfileChunk envelope item header
2232

2333
### Dependencies
2434

2535
- Bump Native SDK from v0.8.1 to v0.8.2 ([#4267](https://github.com/getsentry/sentry-java/pull/4267))
2636
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#082)
2737
- [diff](https://github.com/getsentry/sentry-native/compare/0.8.1...0.8.2)
38+
- Bump Spring Boot from 2.7.5 to 2.7.18 ([#3496](https://github.com/getsentry/sentry-java/pull/3496))
2839

2940
## 8.5.0
3041

@@ -580,6 +591,12 @@ If you have been using `8.0.0-rc.4` of the Java SDK, here's the new changes that
580591
- We are planning to improve this in the future but opted for this fix first.
581592
- Fix swallow NDK loadLibrary errors ([#4082](https://github.com/getsentry/sentry-java/pull/4082))
582593

594+
## 7.22.5
595+
596+
### Fixes
597+
598+
- Session Replay: Change bitmap config to `ARGB_8888` for screenshots ([#4282](https://github.com/getsentry/sentry-java/pull/4282))
599+
583600
## 7.22.4
584601

585602
### Fixes

buildSrc/src/main/java/Config.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object Config {
66
val kotlinVersion = "1.9.24"
77
val kotlinStdLib = "stdlib-jdk8"
88

9-
val springBootVersion = "2.7.5"
9+
val springBootVersion = "2.7.18"
1010
val springBoot3Version = "3.4.2"
1111
val kotlinCompatibleLanguageVersion = "1.6"
1212

sentry-android-core/api/sentry-android-core.api

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ public final class io/sentry/android/core/AndroidDateUtils {
6363
public static fun getCurrentSentryDateTime ()Lio/sentry/SentryDate;
6464
}
6565

66+
public final class io/sentry/android/core/AndroidFatalLogger : io/sentry/ILogger {
67+
public fun <init> ()V
68+
public fun <init> (Ljava/lang/String;)V
69+
public fun isEnabled (Lio/sentry/SentryLevel;)Z
70+
public fun log (Lio/sentry/SentryLevel;Ljava/lang/String;Ljava/lang/Throwable;)V
71+
public fun log (Lio/sentry/SentryLevel;Ljava/lang/String;[Ljava/lang/Object;)V
72+
public fun log (Lio/sentry/SentryLevel;Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
73+
}
74+
6675
public final class io/sentry/android/core/AndroidLogger : io/sentry/ILogger {
6776
public fun <init> ()V
6877
public fun <init> (Ljava/lang/String;)V

sentry-android-core/src/main/java/io/sentry/android/core/AndroidFatalLogger.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
package io.sentry.android.core;
22

33
import android.util.Log;
4-
4+
import io.sentry.ILogger;
5+
import io.sentry.SentryLevel;
56
import org.jetbrains.annotations.ApiStatus;
67
import org.jetbrains.annotations.NotNull;
78
import org.jetbrains.annotations.Nullable;
89

9-
import io.sentry.ILogger;
10-
import io.sentry.SentryLevel;
11-
1210
@ApiStatus.Internal
1311
public final class AndroidFatalLogger implements ILogger {
1412

sentry-android-core/src/test/java/io/sentry/android/core/InternalSentrySdkTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ class InternalSentrySdkTest {
523523
val propagationContext = scope.propagationContext
524524
assertEquals(SentryId(traceId), propagationContext.traceId)
525525
assertEquals(SpanId(spanId), propagationContext.parentSpanId)
526-
assertEquals(sampleRate, propagationContext.baggage.sampleRateDouble)
527-
assertEquals(sampleRand, propagationContext.baggage.sampleRandDouble)
526+
assertEquals(sampleRate, propagationContext.baggage.sampleRate!!, 0.0001)
527+
assertEquals(sampleRand, propagationContext.baggage.sampleRand!!, 0.0001)
528528
}
529529
}
530530
}

sentry-android-replay/src/main/java/io/sentry/android/replay/ScreenshotRecorder.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ internal class ScreenshotRecorder(
5252
Bitmap.createBitmap(
5353
1,
5454
1,
55-
Bitmap.Config.RGB_565
55+
Bitmap.Config.ARGB_8888
5656
)
5757
}
5858
private val screenshot = Bitmap.createBitmap(
5959
config.recordingWidth,
6060
config.recordingHeight,
61-
Bitmap.Config.RGB_565
61+
Bitmap.Config.ARGB_8888
6262
)
6363
private val singlePixelBitmapCanvas: Canvas by lazy(NONE) { Canvas(singlePixelBitmap) }
6464
private val prescaledMatrix by lazy(NONE) {
@@ -216,7 +216,9 @@ internal class ScreenshotRecorder(
216216
fun close() {
217217
unbind(rootView?.get())
218218
rootView?.clear()
219-
screenshot.recycle()
219+
if (!screenshot.isRecycled) {
220+
screenshot.recycle()
221+
}
220222
isCapturing.set(false)
221223
}
222224

sentry-apollo-4/src/test/java/io/sentry/apollo4/SentryApollo4HttpInterceptorTest.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,6 @@ abstract class SentryApollo4HttpInterceptorTest(
331331
fun `sets SDKVersion Info`() {
332332
assertNotNull(fixture.scopes.options.sdkVersion)
333333
assert(fixture.scopes.options.sdkVersion!!.integrationSet.contains("Apollo4"))
334-
val packageInfo = fixture.scopes.options.sdkVersion!!.packageSet.firstOrNull { pkg -> pkg.name == "maven:io.sentry:sentry-apollo-4" }
335-
assertNotNull(packageInfo)
336-
assert(packageInfo.version == BuildConfig.VERSION_NAME)
337334
}
338335

339336
@Test

sentry-opentelemetry/sentry-opentelemetry-core/src/test/kotlin/SentrySpanProcessorTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class SentrySpanProcessorTest {
406406
assertTrue(it.parentSamplingDecision!!.sampled)
407407
if (continuesWithFilledBaggage) {
408408
assertEquals("2722d9f6ec019ade60c776169d9a8904", it.baggage?.traceId)
409-
assertEquals("1", it.baggage?.sampleRate)
409+
assertEquals(1.0, it.baggage?.sampleRate)
410410
assertEquals("HTTP GET", it.baggage?.transaction)
411411
assertEquals("502f25099c204a2fbf4cb16edc5975d1", it.baggage?.publicKey)
412412
assertFalse(it.baggage!!.isMutable)

0 commit comments

Comments
 (0)