summaryrefslogtreecommitdiff
path: root/sentry-stub/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'sentry-stub/src/main/kotlin')
-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
3 files changed, 30 insertions, 0 deletions
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,
+)