summaryrefslogtreecommitdiff
path: root/sentry-stub
diff options
context:
space:
mode:
Diffstat (limited to 'sentry-stub')
-rw-r--r--sentry-stub/build.gradle.kts4
-rw-r--r--sentry-stub/src/main/kotlin/io/sentry/Scope.kt10
-rw-r--r--sentry-stub/src/main/kotlin/io/sentry/Sentry.kt8
-rw-r--r--sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt12
4 files changed, 34 insertions, 0 deletions
diff --git a/sentry-stub/build.gradle.kts b/sentry-stub/build.gradle.kts
new file mode 100644
index 00000000..f91458dd
--- /dev/null
+++ b/sentry-stub/build.gradle.kts
@@ -0,0 +1,4 @@
+plugins {
+ kotlin("jvm")
+ id("com.github.android-password-store.kotlin-library")
+}
diff --git a/sentry-stub/src/main/kotlin/io/sentry/Scope.kt b/sentry-stub/src/main/kotlin/io/sentry/Scope.kt
new file mode 100644
index 00000000..34557a84
--- /dev/null
+++ b/sentry-stub/src/main/kotlin/io/sentry/Scope.kt
@@ -0,0 +1,10 @@
+@file:Suppress("Unused", "UNUSED_PARAMETER")
+
+package io.sentry
+
+import io.sentry.protocol.User
+
+public class Scope {
+ public var user: User? = null
+ public fun setTag(tag: String, value: String) {}
+}
diff --git a/sentry-stub/src/main/kotlin/io/sentry/Sentry.kt b/sentry-stub/src/main/kotlin/io/sentry/Sentry.kt
new file mode 100644
index 00000000..e64f176e
--- /dev/null
+++ b/sentry-stub/src/main/kotlin/io/sentry/Sentry.kt
@@ -0,0 +1,8 @@
+@file:Suppress("Unused", "UNUSED_PARAMETER")
+
+package io.sentry
+
+/** Stubs for the Sentry SDK */
+public object Sentry {
+ public fun configureScope(callback: (Scope) -> Unit) {}
+}
diff --git a/sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt b/sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt
new file mode 100644
index 00000000..5b60ba72
--- /dev/null
+++ b/sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt
@@ -0,0 +1,12 @@
+@file:Suppress("Unused", "UNUSED_PARAMETER")
+
+package io.sentry.protocol
+
+public data class User(
+ public var email: String? = null,
+ public var id: String? = null,
+ public var username: String? = null,
+ public var ipAddress: String? = null,
+ public var others: Map<String?, String>? = null,
+ public var unknown: Map<String?, String>? = null,
+)