mirror of
https://github.com/square/okhttp.git
synced 2025-11-05 12:17:34 +08:00
Sentry too
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
plugins {
|
||||
alias(libs.plugins.kotlin.jvm)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("io.sentry:sentry-okhttp:8.16.0")
|
||||
implementation(project(":lib-depends-on-latest"))
|
||||
testImplementation(libs.assertk)
|
||||
testImplementation(project(":classpathscanner"))
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package artifacttests
|
||||
|
||||
import assertk.assertThat
|
||||
import assertk.assertions.contains
|
||||
import assertk.assertions.exactly
|
||||
import kotlin.test.Test
|
||||
|
||||
class DependsOnSentryAndLatestTest {
|
||||
@Test
|
||||
fun exactlyOneOkHttpJvmDependency() {
|
||||
assertThat(ClasspathScanner.roots)
|
||||
.exactly(1) { assert ->
|
||||
assert
|
||||
.transform { path -> path.toString() }
|
||||
.contains("/com.squareup.okhttp3/okhttp-jvm/")
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun noOkHttp4Dependency() {
|
||||
assertThat(ClasspathScanner.roots)
|
||||
.exactly(0) { assert ->
|
||||
assert
|
||||
.transform { path -> path.toString() }
|
||||
.contains("/com.squareup.okhttp3/okhttp/")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,5 +30,6 @@ include("lib-depends-on-ld-and-latest")
|
||||
include("lib-depends-on-latest")
|
||||
include("lib-depends-on-latest-jvm")
|
||||
include("lib-depends-on-retrofit-and-latest")
|
||||
include("lib-depends-on-sentry-and-latest")
|
||||
include("lib-depends-on-wire-and-latest")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user