Skip to content

Commit d93271d

Browse files
authored
Merge branch 'main' into ryan/version-catalog-8
2 parents f42ee32 + 306c533 commit d93271d

61 files changed

Lines changed: 564 additions & 90 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@
77
- Add debug mode for Session Replay masking ([#4357](https://github.com/getsentry/sentry-java/pull/4357))
88
- Use `Sentry.replay().enableDebugMaskingOverlay()` to overlay the screen with the Session Replay masks.
99
- The masks will be invalidated at most once per `frameRate` (default 1 fps).
10+
- Extend Logs API to allow passing in `attributes` ([#4402](https://github.com/getsentry/sentry-java/pull/4402))
11+
- `Sentry.logger.log` now takes a `SentryLogParameters`
12+
- Use `SentryLogParameters.create(SentryAttributes.of(...))` to pass attributes
13+
- Attribute values may be of type `string`, `boolean`, `integer` or `double`.
14+
- Other types will be converted to `string`. Currently we simply call `toString()` but we might offer more in the future.
15+
- You may manually flatten complex types into multiple separate attributes of simple types.
16+
- e.g. intead of `SentryAttribute.named("point", Point(10, 20))` you may store it as `SentryAttribute.integerAttribute("point.x", point.x)` and `SentryAttribute.integerAttribute("point.y", point.y)`
17+
- `SentryAttribute.named()` will automatically infer the type or fall back to `string`.
18+
- `SentryAttribute.booleanAttribute()` takes a `Boolean` value
19+
- `SentryAttribute.integerAttribute()` takes a `Integer` value
20+
- `SentryAttribute.doubleAttribute()` takes a `Double` value
21+
- `SentryAttribute.stringAttribute()` takes a `String` value
22+
- We opted for handling parameters via `SentryLogParameters` to avoid creating tons of overloads that are ambiguous.
1023

1124
## 8.12.0
1225

buildSrc/src/main/java/Config.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@ object Config {
1313

1414
object BuildPlugins {
1515
val androidGradle = "com.android.tools.build:gradle:$AGP"
16-
val gretty = "org.gretty"
17-
val grettyVersion = "4.0.0"
1816
val commonsCompressOverride = "org.apache.commons:commons-compress:1.25.0"
1917
}
2018

2119
object Android {
22-
private val sdkVersion = 34
23-
24-
val minSdkVersion = 21
25-
val targetSdkVersion = sdkVersion
26-
val compileSdkVersion = sdkVersion
27-
2820
val abiFilters = listOf("x86", "armeabi-v7a", "x86_64", "arm64-v8a")
2921

3022
fun shouldSkipDebugVariant(name: String?): Boolean {
@@ -160,8 +152,6 @@ object Config {
160152

161153
object QualityPlugins {
162154
object Jacoco {
163-
val version = "0.8.7"
164-
165155
// TODO [POTEL] add tests and restore
166156
val minimumCoverage = BigDecimal.valueOf(0.1)
167157
}

gradle/libs.versions.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ kotlin = "1.9.24"
1010
okhttp = "4.9.2"
1111
springTwo = "2.7.18"
1212
springThree = "3.4.2"
13+
targetSdk = "34"
14+
compileSdk = "34"
15+
minSdk = "21"
16+
jacoco = "0.8.7"
1317

1418
[plugins]
1519
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
@@ -29,6 +33,7 @@ vanniktech-maven-publish = { id = "com.vanniktech.maven.publish", version = "0.3
2933
spring-boot-two = { id = "org.springframework.boot", version.ref = "springTwo" }
3034
spring-boot-three = { id = "org.springframework.boot", version.ref = "springThree" }
3135
spring-dependency-management = { id = "io.spring.dependency-management", version = "1.0.11.RELEASE" }
36+
gretty = { id = "org.gretty", version = "4.0.0" }
3237

3338
[libraries]
3439
androidx-activity-compose = { module = "androidx.activity:activity-compose", version = "1.8.2" }

sentry-android-core/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ plugins {
1111
}
1212

1313
android {
14-
compileSdk = Config.Android.compileSdkVersion
14+
compileSdk = libs.versions.compileSdk.get().toInt()
1515
namespace = "io.sentry.android.core"
1616

1717
defaultConfig {
18-
minSdk = Config.Android.minSdkVersion
18+
minSdk = libs.versions.minSdk.get().toInt()
1919

2020
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2121

sentry-android-fragment/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ plugins {
1010
}
1111

1212
android {
13-
compileSdk = Config.Android.compileSdkVersion
13+
compileSdk = libs.versions.compileSdk.get().toInt()
1414
namespace = "io.sentry.android.fragment"
1515

1616
defaultConfig {
17-
minSdk = Config.Android.minSdkVersion
17+
minSdk = libs.versions.minSdk.get().toInt()
1818

1919
// for AGP 4.1
2020
buildConfigField("String", "VERSION_NAME", "\"${project.version}\"")

sentry-android-integration-tests/sentry-uitest-android-benchmark/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ plugins {
1010
}
1111

1212
android {
13-
compileSdk = Config.Android.compileSdkVersion
13+
compileSdk = libs.versions.compileSdk.get().toInt()
1414
namespace = "io.sentry.uitest.android.benchmark"
1515

1616
defaultConfig {
1717
applicationId = "io.sentry.uitest.android.benchmark"
18-
minSdk = Config.Android.minSdkVersion
19-
targetSdk = Config.Android.targetSdkVersion
18+
minSdk = libs.versions.minSdk.get().toInt()
19+
targetSdk = libs.versions.targetSdk.get().toInt()
2020
versionCode = 1
2121
versionName = "1.0.0"
2222

sentry-android-integration-tests/sentry-uitest-android-critical/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
android {
9-
compileSdk = Config.Android.compileSdkVersion
9+
compileSdk = libs.versions.compileSdk.get().toInt()
1010
namespace = "io.sentry.uitest.android.critical"
1111

1212
signingConfigs {
@@ -17,8 +17,8 @@ android {
1717

1818
defaultConfig {
1919
applicationId = "io.sentry.uitest.android.critical"
20-
minSdk = Config.Android.minSdkVersion
21-
targetSdk = Config.Android.targetSdkVersion
20+
minSdk = libs.versions.minSdk.get().toInt()
21+
targetSdk = libs.versions.targetSdk.get().toInt()
2222
versionCode = 1
2323
versionName = "1.0"
2424
}

sentry-android-integration-tests/sentry-uitest-android/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ plugins {
1010
}
1111

1212
android {
13-
compileSdk = Config.Android.compileSdkVersion
13+
compileSdk = libs.versions.compileSdk.get().toInt()
1414
namespace = "io.sentry.uitest.android"
1515

1616
defaultConfig {
17-
minSdk = Config.Android.minSdkVersion
18-
targetSdk = Config.Android.targetSdkVersion
17+
minSdk = libs.versions.minSdk.get().toInt()
18+
targetSdk = libs.versions.compileSdk.get().toInt()
1919
versionCode = 1
2020
versionName = "1.0.0"
2121

sentry-android-integration-tests/test-app-plain/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ plugins {
33
}
44

55
android {
6-
compileSdk = Config.Android.compileSdkVersion
6+
compileSdk = libs.versions.compileSdk.get().toInt()
77
namespace = "io.sentry.java.tests.perf.appplain"
88

99
defaultConfig {
1010
applicationId = "io.sentry.java.tests.perf.appplain"
11-
minSdk = Config.Android.minSdkVersion
12-
targetSdk = Config.Android.targetSdkVersion
11+
minSdk = libs.versions.minSdk.get().toInt()
12+
targetSdk = libs.versions.targetSdk.get().toInt()
1313
versionCode = 1
1414
versionName = "1.0"
1515
}

sentry-android-integration-tests/test-app-sentry/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ plugins {
33
}
44

55
android {
6-
compileSdk = Config.Android.compileSdkVersion
6+
compileSdk = libs.versions.compileSdk.get().toInt()
77
namespace = "io.sentry.java.tests.perf.appsentry"
88

99
defaultConfig {
1010
applicationId = "io.sentry.java.tests.perf.appsentry"
11-
minSdk = Config.Android.minSdkVersion
12-
targetSdk = Config.Android.targetSdkVersion
11+
minSdk = libs.versions.minSdk.get().toInt()
12+
targetSdk = libs.versions.targetSdk.get().toInt()
1313
versionCode = 1
1414
versionName = "1.0"
1515
}

0 commit comments

Comments
 (0)