Skip to content

Commit 445f5e4

Browse files
committed
build: Keep Robolectric at 4.15 and leave its test environment untouched
1 parent d663f01 commit 445f5e4

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎build-logic/src/main/kotlin/io.sentry.jvm-targets.gradle.kts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,5 @@ listOf("com.android.library", "com.android.application").forEach { pluginId ->
3434
// leaves their test tasks on the toolchain; AGP has no such split, as compileOptions applies to
3535
// every variant, so its unit tests need this.
3636
applyToolchainToCompileTasks { it.name.contains("UnitTest") }
37-
38-
// Robolectric's SDK 37 sandbox (the default, as targetSdk is 37) reflectively writes
39-
// FileDescriptor fields in ApplicationSharedMemory; without this, setup fails with
40-
// "Failed to interact with raw FileDescriptor internals".
41-
tasks.withType<Test>().configureEach { jvmArgs("--add-opens=java.base/java.io=ALL-UNNAMED") }
4237
}
4338
}

‎gradle/libs.versions.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ okhttp-mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.
281281
# apollo-runtime 5.x pulls in okhttp 5.x; mockwebserver 4.x is incompatible with that classpath
282282
okhttp-mockwebserver5 = { module = "com.squareup.okhttp3:mockwebserver", version = "5.3.0" }
283283
okio = { module = "com.squareup.okio:okio", version = "1.13.0" }
284-
roboelectric = { module = "org.robolectric:robolectric", version = "4.17" }
284+
roboelectric = { module = "org.robolectric:robolectric", version = "4.15" }
285285

286286
[bundles]
287287
androidx-room2 = ["androidx-room-runtime", "androidx-room-ktx"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sdk=23
1+
sdk=21
22
application=io.sentry.android.core.ApplicationStub

0 commit comments

Comments
 (0)