Skip to content

Commit 3f8d7b1

Browse files
authored
Merge pull request #1791 from getsentry/6.x.x
Release 6.0.0
2 parents 9f1af1c + 1519ccd commit 3f8d7b1

File tree

484 files changed

+29118
-5207
lines changed

Some content is hidden

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

484 files changed

+29118
-5207
lines changed

.craft.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ targets:
2424
maven:io.sentry:sentry-spring:
2525
maven:io.sentry:sentry-spring-boot-starter:
2626
maven:io.sentry:sentry-servlet:
27+
maven:io.sentry:sentry-servlet-jakarta:
2728
maven:io.sentry:sentry-logback:
2829
maven:io.sentry:sentry-log4j2:
2930
maven:io.sentry:sentry-jul:

.github/ISSUE_TEMPLATE/bug_report_java.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ body:
1414
- sentry-apollo
1515
- sentry-kotlin-extensions
1616
- sentry-servlet
17+
- sentry-servlet-jakarta
1718
- sentry-spring-boot-starter
1819
- sentry-spring
1920
- sentry-logback

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
force:
99
description: Force a release even when there are release-blockers (optional)
1010
required: false
11+
merge_target:
12+
description: Target branch to merge into. Uses the default branch as a fallback (optional)
13+
required: false
14+
1115
jobs:
1216
release:
1317
runs-on: ubuntu-latest
@@ -24,3 +28,4 @@ jobs:
2428
with:
2529
version: ${{ github.event.inputs.version }}
2630
force: ${{ github.event.inputs.force }}
31+
merge_target: ${{ github.event.inputs.merge_target }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.idea/
33
.gradle/
44
build/
5+
artifacts/
56
out/
67
local.properties
78
**.iml
@@ -15,3 +16,4 @@ target/
1516
bin/
1617
distributions/
1718
/Sentry/A1F16C4F5D23B2A1D281EE471D6F836BDEA23CB4/
19+
*.vscode/
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: v1alpha
2+
kind: espresso
3+
sauce:
4+
region: us-west-1
5+
# Controls how many suites are executed at the same time (sauce test env only).
6+
concurrency: 1
7+
metadata:
8+
name: Android benchmarks with Espresso
9+
tags:
10+
- benchmarks
11+
- android
12+
espresso:
13+
app: ./sentry-android-integration-tests/sentry-uitest-android-benchmark/build/outputs/apk/release/sentry-uitest-android-benchmark-release.apk
14+
testApp: ./sentry-android-integration-tests/sentry-uitest-android-benchmark/build/outputs/apk/androidTest/release/sentry-uitest-android-benchmark-release-androidTest.apk
15+
suites:
16+
name: "Android Benchmarks"
17+
devices:
18+
- name: "Google Pixel 2"
19+
platformVersion: 11
20+
- id: Google_Pixel_2_real_us
21+
testOptions:
22+
useTestOrchestrator: true
23+
# Controls what artifacts to fetch when the suite on Sauce Cloud has finished.
24+
artifacts:
25+
download:
26+
when: always
27+
match:
28+
- junit.xml
29+
directory: ./artifacts/
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apiVersion: v1alpha
2+
kind: espresso
3+
sauce:
4+
region: us-west-1
5+
# Controls how many suites are executed at the same time (sauce test env only).
6+
concurrency: 1
7+
metadata:
8+
name: Android end2end tests with Espresso
9+
tags:
10+
- e2e
11+
- android
12+
espresso:
13+
app: ./sentry-android-integration-tests/sentry-uitest-android/build/outputs/apk/release/sentry-uitest-android-release.apk
14+
testApp: ./sentry-android-integration-tests/sentry-uitest-android/build/outputs/apk/androidTest/release/sentry-uitest-android-release-androidTest.apk
15+
suites:
16+
name: "Android End2end"
17+
emulators:
18+
- name: "Android GoogleApi Emulator"
19+
orientation: portrait
20+
platformVersions:
21+
- "11.0"
22+
- "10.0"
23+
testOptions:
24+
useTestOrchestrator: true
25+
# Controls what artifacts to fetch when the suite on Sauce Cloud has finished.
26+
artifacts:
27+
download:
28+
when: always
29+
match:
30+
- junit.xml
31+
directory: ./artifacts/

CHANGELOG.md

Lines changed: 119 additions & 31 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Contributing to sentry-java
22

3-
We love pull requests from everyone.
3+
We love pull requests from everyone.
44
We suggest opening an issue to discuss bigger changes before investing on a big PR.
55

66
# Requirements
77

8-
The project currently requires you run JDK version `1.8.x`.
8+
The project currently requires you run JDK 11.
99

10-
## Android
10+
## Android
1111

1212
This repository is a monorepo which includes Java and Android libraries.
1313
If you'd like to contribute to Java and don't have an Android SDK with NDK installed,

build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ apiValidation {
5656
"sentry-samples-spring-boot",
5757
"sentry-samples-spring-boot-webflux",
5858
"sentry-samples-netflix-dgs",
59+
"sentry-uitest-android",
60+
"sentry-uitest-android-benchmark",
5961
)
6062
)
6163
}
@@ -86,7 +88,7 @@ allprojects {
8688
}
8789

8890
subprojects {
89-
if (!this.name.contains("sample") && this.name != "sentry-test-support") {
91+
if (!this.name.contains("sample") && !this.name.contains("integration-tests") && this.name != "sentry-test-support") {
9092
apply<DistributionPlugin>()
9193

9294
val sep = File.separator
@@ -137,7 +139,7 @@ spotless {
137139
target("**/*.java")
138140
removeUnusedImports()
139141
googleJavaFormat()
140-
targetExclude("**/generated/**")
142+
targetExclude("**/generated/**", "**/vendor/**")
141143
}
142144

143145
kotlin {
@@ -165,7 +167,7 @@ gradle.projectsEvaluated {
165167
"https://docs.spring.io/spring-boot/docs/current/api/"
166168
)
167169
subprojects
168-
.filter { !it.name.contains("sample") }
170+
.filter { !it.name.contains("sample") && !it.name.contains("integration-tests") }
169171
.forEach { proj ->
170172
proj.tasks.withType<Javadoc>().forEach { javadocTask ->
171173
source += javadocTask.source

buildSrc/src/main/java/Config.kt

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import java.math.BigDecimal
22

33
object Config {
4-
val kotlinVersion = "1.4.32"
4+
val kotlinVersion = "1.5.31"
55
val kotlinStdLib = "stdlib-jdk8"
66

7-
val springBootVersion = "2.4.4"
8-
// Spring is currently not compatible with Kotlin 1.4
9-
val springKotlinCompatibleLanguageVersion = "1.3"
7+
val springBootVersion = "2.6.8"
8+
val kotlinCompatibleLanguageVersion = "1.4"
109

1110
object BuildPlugins {
12-
val androidGradle = "com.android.tools.build:gradle:7.1.2"
11+
val androidGradle = "com.android.tools.build:gradle:7.2.0"
1312
val kotlinGradlePlugin = "gradle-plugin"
1413
val buildConfig = "com.github.gmazzo.buildconfig"
1514
val buildConfigVersion = "3.0.3"
@@ -40,15 +39,12 @@ object Config {
4039

4140
object Libs {
4241
val okHttpVersion = "4.9.2"
43-
val appCompat = "androidx.appcompat:appcompat:1.2.0"
42+
val appCompat = "androidx.appcompat:appcompat:1.3.0"
4443
val timber = "com.jakewharton.timber:timber:4.7.1"
4544
val okhttpBom = "com.squareup.okhttp3:okhttp-bom:$okHttpVersion"
4645
val okhttp = "com.squareup.okhttp3:okhttp"
47-
// only bump gson if https://github.com/google/gson/issues/1597 is fixed
48-
private val gsonVersion = "2.8.5"
49-
val gsonDep = "com.google.code.gson:gson"
50-
val gson = "$gsonDep:$gsonVersion"
5146
val leakCanary = "com.squareup.leakcanary:leakcanary-android:2.8.1"
47+
val constraintLayout = "androidx.constraintlayout:constraintlayout:2.1.3"
5248

5349
private val lifecycleVersion = "2.2.0"
5450
val lifecycleProcess = "androidx.lifecycle:lifecycle-process:$lifecycleVersion"
@@ -57,6 +53,7 @@ object Config {
5753
val androidxRecylerView = "androidx.recyclerview:recyclerview:1.2.1"
5854

5955
val slf4jApi = "org.slf4j:slf4j-api:1.7.30"
56+
val slf4jJdk14 = "org.slf4j:slf4j-jdk14:1.7.30"
6057
val logbackVersion = "1.2.9"
6158
val logbackClassic = "ch.qos.logback:logback-classic:$logbackVersion"
6259

@@ -79,6 +76,7 @@ object Config {
7976
val springAop = "org.springframework:spring-aop"
8077
val aspectj = "org.aspectj:aspectjweaver"
8178
val servletApi = "javax.servlet:javax.servlet-api:3.1.0"
79+
val servletApiJakarta = "jakarta.servlet:jakarta.servlet-api:5.0.0"
8280

8381
val apacheHttpClient = "org.apache.httpcomponents.client5:httpclient5:5.0.4"
8482

@@ -114,12 +112,19 @@ object Config {
114112
}
115113

116114
object TestLibs {
117-
private val androidxTestVersion = "1.4.0-rc01"
115+
private val androidxTestVersion = "1.4.0"
116+
private val espressoVersion = "3.4.0"
118117

118+
val androidJUnitRunner = "androidx.test.runner.AndroidJUnitRunner"
119119
val kotlinTestJunit = "org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion"
120120
val androidxCore = "androidx.test:core:$androidxTestVersion"
121121
val androidxRunner = "androidx.test:runner:$androidxTestVersion"
122-
val androidxJunit = "androidx.test.ext:junit:1.1.3-rc01"
122+
val androidxTestCoreKtx = "androidx.test:core-ktx:$androidxTestVersion"
123+
val androidxTestRules = "androidx.test:rules:$androidxTestVersion"
124+
val espressoCore = "androidx.test.espresso:espresso-core:$espressoVersion"
125+
val espressoIdlingResource = "androidx.test.espresso:espresso-idling-resource:$espressoVersion"
126+
val androidxTestOrchestrator = "androidx.test:orchestrator:1.4.1"
127+
val androidxJunit = "androidx.test.ext:junit:1.1.3"
123128
val androidxCoreKtx = "androidx.core:core-ktx:1.7.0"
124129
val robolectric = "org.robolectric:robolectric:4.7.3"
125130
val mockitoKotlin = "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"

0 commit comments

Comments
 (0)