diff --git a/example/BugsnagExample/.gitignore b/example/BugsnagExample/.gitignore
new file mode 100644
index 00000000..7d9c0e48
--- /dev/null
+++ b/example/BugsnagExample/.gitignore
@@ -0,0 +1,18 @@
+*.iml
+.kotlin
+.gradle
+**/build/
+xcuserdata
+!src/**/build/
+local.properties
+.idea
+.DS_Store
+captures
+.externalNativeBuild
+.cxx
+*.xcodeproj/*
+!*.xcodeproj/project.pbxproj
+!*.xcodeproj/xcshareddata/
+!*.xcodeproj/project.xcworkspace/
+!*.xcworkspace/contents.xcworkspacedata
+**/xcshareddata/WorkspaceSettings.xcsettings
diff --git a/example/BugsnagExample/build.gradle.kts b/example/BugsnagExample/build.gradle.kts
new file mode 100644
index 00000000..a03ad4e5
--- /dev/null
+++ b/example/BugsnagExample/build.gradle.kts
@@ -0,0 +1,8 @@
+plugins {
+ alias(libs.plugins.androidApplication) apply false
+ alias(libs.plugins.androidLibrary) apply false
+ alias(libs.plugins.composeMultiplatform) apply false
+ alias(libs.plugins.composeCompiler) apply false
+ alias(libs.plugins.kotlinMultiplatform) apply false
+ alias(libs.plugins.bugsnag.gradle) apply false
+}
\ No newline at end of file
diff --git a/example/BugsnagExample/composeApp/build.gradle.kts b/example/BugsnagExample/composeApp/build.gradle.kts
new file mode 100644
index 00000000..3dace604
--- /dev/null
+++ b/example/BugsnagExample/composeApp/build.gradle.kts
@@ -0,0 +1,101 @@
+import org.jetbrains.kotlin.gradle.dsl.JvmTarget
+import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
+
+plugins {
+ alias(libs.plugins.kotlinMultiplatform)
+ alias(libs.plugins.androidApplication)
+ alias(libs.plugins.composeMultiplatform)
+ alias(libs.plugins.composeCompiler)
+ alias(libs.plugins.bugsnag.gradle)
+}
+
+kotlin {
+ androidTarget {
+ compilerOptions {
+ jvmTarget.set(JvmTarget.JVM_11)
+ }
+ }
+
+ listOf(
+ iosX64(),
+ iosArm64(),
+ iosSimulatorArm64(),
+ ).forEach { iosTarget ->
+ iosTarget.binaries.framework {
+ baseName = "ComposeApp"
+ isStatic = true
+ }
+ }
+
+ js(IR) {
+ moduleName = "composeApp"
+ useEsModules()
+ browser {
+ commonWebpackConfig {
+ mode = KotlinWebpackConfig.Mode.PRODUCTION
+ }
+ }
+ binaries.executable()
+ }
+
+ applyDefaultHierarchyTemplate()
+
+ sourceSets {
+ androidMain.dependencies {
+ implementation(compose.preview)
+ implementation(libs.androidx.activity.compose)
+ }
+ commonMain.dependencies {
+ implementation(compose.runtime)
+ implementation(compose.foundation)
+ implementation(compose.material3)
+ implementation(compose.ui)
+ implementation(compose.components.resources)
+ implementation(compose.components.uiToolingPreview)
+ implementation(libs.androidx.lifecycle.viewmodel)
+ implementation(libs.androidx.lifecycle.runtimeCompose)
+ implementation(libs.bugsnag.kmp)
+ }
+ jsMain.dependencies {
+ implementation(libs.compose.html)
+ implementation(npm("@bugsnag/browser", "=${libs.versions.bugsnag.js.get()}"))
+ }
+ }
+}
+
+android {
+ namespace = "com.example.bugsnag.kmp.android"
+ compileSdk = 35
+ defaultConfig {
+ applicationId = "com.example.bugsnag.kmp.android"
+ minSdk = 24
+ targetSdk = 35
+ versionCode = 1
+ versionName = "1.0"
+ }
+ buildFeatures {
+ compose = true
+ }
+ packaging {
+ resources {
+ excludes += "/META-INF/{AL2.0,LGPL2.1}"
+ }
+ }
+ buildTypes {
+ getByName("release") {
+ isMinifyEnabled = false
+ }
+ }
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_11
+ targetCompatibility = JavaVersion.VERSION_11
+ }
+}
+
+dependencies {
+ debugImplementation(compose.uiTooling)
+
+ implementation(libs.androidx.appcompat)
+ implementation(libs.bugsnag.android)
+ implementation(libs.bugsnag.kmp)
+}
diff --git a/example/BugsnagExample/composeApp/src/androidMain/AndroidManifest.xml b/example/BugsnagExample/composeApp/src/androidMain/AndroidManifest.xml
new file mode 100644
index 00000000..c71a9694
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/androidMain/AndroidManifest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/example/BugsnagExample/composeApp/src/androidMain/kotlin/com/example/bugsnag/kmp/KmpApplication.kt b/example/BugsnagExample/composeApp/src/androidMain/kotlin/com/example/bugsnag/kmp/KmpApplication.kt
new file mode 100644
index 00000000..dedf379f
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/androidMain/kotlin/com/example/bugsnag/kmp/KmpApplication.kt
@@ -0,0 +1,12 @@
+package com.example.bugsnag.kmp
+
+import android.app.Application
+import com.bugsnag.kmp.Configuration
+
+class KmpApplication : Application() {
+ override fun onCreate() {
+ super.onCreate()
+ val config = Configuration(applicationContext, BUGSNAG_API_KEY)
+ startBugsnag(config)
+ }
+}
diff --git a/example/BugsnagExample/composeApp/src/androidMain/kotlin/com/example/bugsnag/kmp/MainActivity.kt b/example/BugsnagExample/composeApp/src/androidMain/kotlin/com/example/bugsnag/kmp/MainActivity.kt
new file mode 100644
index 00000000..036bc753
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/androidMain/kotlin/com/example/bugsnag/kmp/MainActivity.kt
@@ -0,0 +1,23 @@
+package com.example.bugsnag.kmp
+
+import android.os.Bundle
+import androidx.activity.ComponentActivity
+import androidx.activity.compose.setContent
+import androidx.compose.foundation.layout.fillMaxSize
+import androidx.compose.material3.MaterialTheme
+import androidx.compose.material3.Surface
+import androidx.compose.ui.Modifier
+
+class MainActivity : ComponentActivity() {
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ setContent {
+ Surface(
+ modifier = Modifier.fillMaxSize(),
+ color = MaterialTheme.colorScheme.background,
+ ) {
+ App()
+ }
+ }
+ }
+}
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-anydpi-v26/ic_launcher.xml b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 00000000..036d09bc
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-anydpi-v26/ic_launcher_round.xml b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 00000000..036d09bc
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-hdpi/ic_launcher.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-hdpi/ic_launcher.png
new file mode 100755
index 00000000..6646c295
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-hdpi/ic_launcher_foreground.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-hdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..4faa659c
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-hdpi/ic_launcher_round.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 00000000..611be91c
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-mdpi/ic_launcher.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-mdpi/ic_launcher.png
new file mode 100755
index 00000000..5881191e
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-mdpi/ic_launcher_foreground.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-mdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..eece0530
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-mdpi/ic_launcher_round.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 00000000..86f0553f
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xhdpi/ic_launcher.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xhdpi/ic_launcher.png
new file mode 100755
index 00000000..2c7092de
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xhdpi/ic_launcher_foreground.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..4f5b05f7
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xhdpi/ic_launcher_round.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..20b2caf5
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100755
index 00000000..e8a4d364
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher_foreground.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..de4d9e5a
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher_round.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..c69078ac
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100755
index 00000000..ba2883c1
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_foreground.png
new file mode 100644
index 00000000..05a81fc4
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_round.png b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 00000000..add7c83c
Binary files /dev/null and b/example/BugsnagExample/composeApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/values/colors.xml b/example/BugsnagExample/composeApp/src/androidMain/res/values/colors.xml
new file mode 100644
index 00000000..8d460a9a
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/androidMain/res/values/colors.xml
@@ -0,0 +1,7 @@
+
+
+ #010E44
+ #20212C
+ #5BB6CB
+ #010E44
+
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/values/ic_launcher_background.xml b/example/BugsnagExample/composeApp/src/androidMain/res/values/ic_launcher_background.xml
new file mode 100644
index 00000000..a93ace9f
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/androidMain/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+
+
+ #010E44
+
\ No newline at end of file
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/values/strings.xml b/example/BugsnagExample/composeApp/src/androidMain/res/values/strings.xml
new file mode 100644
index 00000000..907e8734
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/androidMain/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ Bugsnag Example
+
\ No newline at end of file
diff --git a/example/BugsnagExample/composeApp/src/androidMain/res/values/styles.xml b/example/BugsnagExample/composeApp/src/androidMain/res/values/styles.xml
new file mode 100644
index 00000000..5da78f6c
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/androidMain/res/values/styles.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/example/BugsnagExample/composeApp/src/commonMain/kotlin/com/example/bugsnag/kmp/App.kt b/example/BugsnagExample/composeApp/src/commonMain/kotlin/com/example/bugsnag/kmp/App.kt
new file mode 100644
index 00000000..3fb27877
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/commonMain/kotlin/com/example/bugsnag/kmp/App.kt
@@ -0,0 +1,91 @@
+package com.example.bugsnag.kmp
+
+import androidx.compose.foundation.layout.Arrangement
+import androidx.compose.foundation.layout.Column
+import androidx.compose.foundation.layout.fillMaxSize
+import androidx.compose.foundation.layout.fillMaxWidth
+import androidx.compose.foundation.layout.padding
+import androidx.compose.material3.Button
+import androidx.compose.material3.MaterialTheme
+import androidx.compose.material3.Text
+import androidx.compose.runtime.Composable
+import androidx.compose.runtime.LaunchedEffect
+import androidx.compose.runtime.getValue
+import androidx.compose.runtime.mutableStateOf
+import androidx.compose.runtime.remember
+import androidx.compose.runtime.setValue
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.graphics.Color
+import androidx.compose.ui.unit.dp
+import com.bugsnag.kmp.Bugsnag
+import kotlinx.coroutines.delay
+
+@Composable
+fun App() {
+ var message by remember { mutableStateOf("") }
+
+ MaterialTheme {
+ Column(
+ modifier = Modifier
+ .fillMaxSize()
+ .padding(16.dp),
+ verticalArrangement = Arrangement
+ .spacedBy(12.dp),
+ ) {
+ Text("Bugsnag KMP - Example app")
+
+ TextButton(
+ text = "Throw An Unhandled Exception",
+ onClick = {
+ message = "Unhandled Kotlin Exception triggered"
+ throw RuntimeException("Unhandled Kotlin Exception")
+ },
+ )
+ TextButton(
+ text = "A Handled Exception",
+ onClick = {
+ Bugsnag.notify(RuntimeException("Handled Kotlin Exception"))
+ message = "Handled Kotlin Exception reported"
+ },
+ )
+
+ TextButton(
+ text = "Attach Custom Breadcrumbs",
+ onClick = {
+ Bugsnag.leaveBreadcrumb(
+ "WebAuthFailure",
+ mapOf("reason" to "incorrect password"),
+ )
+ Bugsnag.notify(RuntimeException("Error Report with Breadcrumbs"))
+ message = "Custom Breadcrumbs attached"
+ },
+ )
+
+ if (message.isNotEmpty()) {
+ Text(
+ text = message,
+ modifier = Modifier.padding(top = 16.dp),
+ style = MaterialTheme.typography.bodyLarge,
+ color = Color.Red,
+ )
+ LaunchedEffect(message) {
+ delay(1500)
+ message = ""
+ }
+ }
+ }
+ }
+}
+
+@Composable
+fun TextButton(
+ text: String,
+ onClick: () -> Unit,
+) {
+ Button(
+ onClick = { onClick() },
+ modifier = Modifier.fillMaxWidth(),
+ ) {
+ Text(text)
+ }
+}
diff --git a/example/BugsnagExample/composeApp/src/commonMain/kotlin/com/example/bugsnag/kmp/BugsnagCommons.kt b/example/BugsnagExample/composeApp/src/commonMain/kotlin/com/example/bugsnag/kmp/BugsnagCommons.kt
new file mode 100644
index 00000000..a9d112f9
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/commonMain/kotlin/com/example/bugsnag/kmp/BugsnagCommons.kt
@@ -0,0 +1,3 @@
+package com.example.bugsnag.kmp
+
+const val BUGSNAG_API_KEY = "add_your_bugsnag_api_key_here"
diff --git a/example/BugsnagExample/composeApp/src/commonMain/kotlin/com/example/bugsnag/kmp/StartBugsnag.kt b/example/BugsnagExample/composeApp/src/commonMain/kotlin/com/example/bugsnag/kmp/StartBugsnag.kt
new file mode 100644
index 00000000..aeac9f7a
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/commonMain/kotlin/com/example/bugsnag/kmp/StartBugsnag.kt
@@ -0,0 +1,8 @@
+package com.example.bugsnag.kmp
+
+import com.bugsnag.kmp.Bugsnag
+import com.bugsnag.kmp.Configuration
+
+fun startBugsnag(configuration: Configuration) {
+ Bugsnag.start(configuration)
+}
diff --git a/example/BugsnagExample/composeApp/src/iosMain/kotlin/com/example/bugsnag/kmp/MainViewController.kt b/example/BugsnagExample/composeApp/src/iosMain/kotlin/com/example/bugsnag/kmp/MainViewController.kt
new file mode 100644
index 00000000..d3e85a65
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/iosMain/kotlin/com/example/bugsnag/kmp/MainViewController.kt
@@ -0,0 +1,10 @@
+package com.example.bugsnag.kmp
+
+import androidx.compose.ui.window.ComposeUIViewController
+import com.bugsnag.kmp.Configuration
+
+@Suppress("FunctionName", "unused")
+fun MainViewController() = ComposeUIViewController {
+ startBugsnag(Configuration(BUGSNAG_API_KEY))
+ App()
+}
diff --git a/example/BugsnagExample/composeApp/src/jsMain/kotlin/com/example/bugsnag/kmp/js/JsApp.kt b/example/BugsnagExample/composeApp/src/jsMain/kotlin/com/example/bugsnag/kmp/js/JsApp.kt
new file mode 100644
index 00000000..43b6992f
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/jsMain/kotlin/com/example/bugsnag/kmp/js/JsApp.kt
@@ -0,0 +1,83 @@
+package com.example.bugsnag.kmp.js
+
+import androidx.compose.runtime.Composable
+import com.bugsnag.kmp.Bugsnag
+import com.bugsnag.kmp.Configuration
+import com.example.bugsnag.kmp.BUGSNAG_API_KEY
+import com.example.bugsnag.kmp.startBugsnag
+import kotlinx.browser.window
+import org.jetbrains.compose.web.css.DisplayStyle
+import org.jetbrains.compose.web.css.FlexDirection
+import org.jetbrains.compose.web.css.display
+import org.jetbrains.compose.web.css.flexDirection
+import org.jetbrains.compose.web.css.percent
+import org.jetbrains.compose.web.css.width
+import org.jetbrains.compose.web.dom.Button
+import org.jetbrains.compose.web.dom.Div
+import org.jetbrains.compose.web.dom.H1
+import org.jetbrains.compose.web.dom.Text
+import org.jetbrains.compose.web.renderComposable
+
+@JsExport
+@OptIn(ExperimentalJsExport::class)
+fun StartJsApp(rootId: String) {
+ startBugsnag(Configuration(BUGSNAG_API_KEY))
+ renderComposable(rootId) {
+ Div {
+ H1 {
+ Text("Bugsnag KMP - Example app")
+ }
+ Div(
+ attrs = {
+ style {
+ display(DisplayStyle.Flex)
+ flexDirection(FlexDirection.Column)
+ width(20.percent)
+ }
+ },
+ ) {
+ TextButton(
+ text = "Throw An Unhandled Exception",
+ onClick = {
+ window.alert("Unhandled Exception sent to Bugsnag")
+ throw Exception("Unhandled Kotlin Exception")
+ },
+ )
+
+ TextButton(
+ text = "A Handled Exception",
+ onClick = {
+ Bugsnag.notify(Exception("Handled Kotlin Exception"))
+ window.alert("Handled Exception sent to Bugsnag")
+ },
+ )
+
+ TextButton(
+ text = "Attach Custom Breadcrumbs",
+ onClick = {
+ Bugsnag.leaveBreadcrumb(
+ "WebAuthFailure",
+ mapOf("reason" to "incorrect password"),
+ )
+ Bugsnag.notify(RuntimeException("Error Report with Breadcrumbs"))
+ window.alert("Breadcrumbs sent to Bugsnag")
+ },
+ )
+ }
+ }
+ }
+}
+
+@Composable
+fun TextButton(
+ text: String,
+ onClick: () -> Unit,
+) {
+ Button(
+ attrs = {
+ onClick { onClick() }
+ },
+ ) {
+ Text(text)
+ }
+}
diff --git a/example/BugsnagExample/composeApp/src/jsMain/resources/index.html b/example/BugsnagExample/composeApp/src/jsMain/resources/index.html
new file mode 100644
index 00000000..382d65f0
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/jsMain/resources/index.html
@@ -0,0 +1,17 @@
+
+
+
+ BugSnag Example
+
+
+
+
+
+
+
+
+
diff --git a/example/BugsnagExample/composeApp/src/jsMain/resources/styles.css b/example/BugsnagExample/composeApp/src/jsMain/resources/styles.css
new file mode 100644
index 00000000..0549b10f
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/jsMain/resources/styles.css
@@ -0,0 +1,7 @@
+html, body {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
+}
\ No newline at end of file
diff --git a/example/BugsnagExample/composeApp/src/webpack.config.d/configModuleName.js b/example/BugsnagExample/composeApp/src/webpack.config.d/configModuleName.js
new file mode 100644
index 00000000..3f623367
--- /dev/null
+++ b/example/BugsnagExample/composeApp/src/webpack.config.d/configModuleName.js
@@ -0,0 +1,2 @@
+config.output = config.output || {};
+config.output.library = "composeApp";
diff --git a/example/BugsnagExample/gradle.properties b/example/BugsnagExample/gradle.properties
new file mode 100644
index 00000000..919c971a
--- /dev/null
+++ b/example/BugsnagExample/gradle.properties
@@ -0,0 +1,14 @@
+#Kotlin
+kotlin.code.style=official
+kotlin.daemon.jvmargs=-Xmx3072M
+
+#Gradle
+org.gradle.jvmargs=-Xmx4096M -Dfile.encoding=UTF-8
+org.gradle.configuration-cache=true
+org.gradle.caching=true
+
+#Android
+android.nonTransitiveRClass=true
+android.useAndroidX=true
+
+org.jetbrains.compose.experimental.jscanvas.enabled=true
\ No newline at end of file
diff --git a/example/BugsnagExample/gradle/libs.versions.toml b/example/BugsnagExample/gradle/libs.versions.toml
new file mode 100644
index 00000000..79842c18
--- /dev/null
+++ b/example/BugsnagExample/gradle/libs.versions.toml
@@ -0,0 +1,28 @@
+[versions]
+agp = "8.7.3"
+androidx-activity = "1.10.1"
+androidx-appcompat = "1.7.1"
+androidx-lifecycle = "2.9.1"
+bugsnag-android = "6.13.0"
+bugsnag-gradle = "0.4.0"
+composeMultiplatform = "1.8.2"
+kotlin = "2.1.0"
+kmp = "+"
+bugsnag-js = "8.2.0"
+
+[libraries]
+androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
+androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activity" }
+androidx-lifecycle-viewmodel = { module = "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel", version.ref = "androidx-lifecycle" }
+androidx-lifecycle-runtimeCompose = { module = "org.jetbrains.androidx.lifecycle:lifecycle-runtime-compose", version.ref = "androidx-lifecycle" }
+bugsnag-android = { group = "com.bugsnag", name = "bugsnag-android", version.ref = "bugsnag-android" }
+bugsnag-kmp = { module = "com.bugsnag:bugsnag-kmp", version.ref = "kmp" }
+compose-html = { module = "org.jetbrains.compose.html:html-core-js", version = "1.7.3" }
+
+[plugins]
+androidApplication = { id = "com.android.application", version.ref = "agp" }
+androidLibrary = { id = "com.android.library", version.ref = "agp" }
+bugsnag-gradle = { id = "com.bugsnag.gradle", version.ref = "bugsnag-gradle" }
+composeMultiplatform = { id = "org.jetbrains.compose", version.ref = "composeMultiplatform" }
+composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
+kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
diff --git a/example/BugsnagExample/gradle/wrapper/gradle-wrapper.jar b/example/BugsnagExample/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..2c352119
Binary files /dev/null and b/example/BugsnagExample/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/example/BugsnagExample/gradle/wrapper/gradle-wrapper.properties b/example/BugsnagExample/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..09523c0e
--- /dev/null
+++ b/example/BugsnagExample/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,7 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
+networkTimeout=10000
+validateDistributionUrl=true
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/example/BugsnagExample/gradlew b/example/BugsnagExample/gradlew
new file mode 100755
index 00000000..f5feea6d
--- /dev/null
+++ b/example/BugsnagExample/gradlew
@@ -0,0 +1,252 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+##############################################################################
+#
+# Gradle start up script for POSIX generated by Gradle.
+#
+# Important for running:
+#
+# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+# noncompliant, but you have some other compliant shell such as ksh or
+# bash, then to run this script, type that shell name before the whole
+# command line, like:
+#
+# ksh Gradle
+#
+# Busybox and similar reduced shells will NOT work, because this script
+# requires all of these POSIX shell features:
+# * functions;
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
+#
+# Important for patching:
+#
+# (2) This script targets any POSIX shell, so it avoids extensions provided
+# by Bash, Ksh, etc; in particular arrays are avoided.
+#
+# The "traditional" practice of packing multiple parameters into a
+# space-separated string is a well documented source of bugs and security
+# problems, so this is (mostly) avoided, by progressively accumulating
+# options in "$@", and eventually passing that to Java.
+#
+# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+# see the in-line comments for details.
+#
+# There are tweaks for specific operating systems such as AIX, CygWin,
+# Darwin, MinGW, and NonStop.
+#
+# (3) This script is generated from the Groovy template
+# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+# within the Gradle project.
+#
+# You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+ APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
+ [ -h "$app_path" ]
+do
+ ls=$( ls -ld "$app_path" )
+ link=${ls#*' -> '}
+ case $link in #(
+ /*) app_path=$link ;; #(
+ *) app_path=$APP_HOME$link ;;
+ esac
+done
+
+# This is normally unused
+# shellcheck disable=SC2034
+APP_BASE_NAME=${0##*/}
+# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
+APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
+' "$PWD" ) || exit
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+ echo "$*"
+} >&2
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in #(
+ CYGWIN* ) cygwin=true ;; #(
+ Darwin* ) darwin=true ;; #(
+ MSYS* | MINGW* ) msys=true ;; #(
+ NONSTOP* ) nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD=$JAVA_HOME/jre/sh/java
+ else
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD=java
+ if ! command -v java >/dev/null 2>&1
+ then
+ die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+ case $MAX_FD in #(
+ max*)
+ # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ MAX_FD=$( ulimit -H -n ) ||
+ warn "Could not query maximum file descriptor limit"
+ esac
+ case $MAX_FD in #(
+ '' | soft) :;; #(
+ *)
+ # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
+ # shellcheck disable=SC2039,SC3045
+ ulimit -n "$MAX_FD" ||
+ warn "Could not set maximum file descriptor limit to $MAX_FD"
+ esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+# * args from the command line
+# * the main class name
+# * -classpath
+# * -D...appname settings
+# * --module-path (only if needed)
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+ APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+ CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+ JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ for arg do
+ if
+ case $arg in #(
+ -*) false ;; # don't mess with options #(
+ /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
+ [ -e "$t" ] ;; #(
+ *) false ;;
+ esac
+ then
+ arg=$( cygpath --path --ignore --mixed "$arg" )
+ fi
+ # Roll the args list around exactly as many times as the number of
+ # args, so each arg winds up back in the position where it started, but
+ # possibly modified.
+ #
+ # NB: a `for` loop captures its iteration list before it begins, so
+ # changing the positional parameters here affects neither the number of
+ # iterations, nor the values presented in `arg`.
+ shift # remove old arg
+ set -- "$@" "$arg" # push replacement arg
+ done
+fi
+
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Collect all arguments for the java command:
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
+# and any embedded shellness will be escaped.
+# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
+# treated as '${Hostname}' itself on the command line.
+
+set -- \
+ "-Dorg.gradle.appname=$APP_BASE_NAME" \
+ -classpath "$CLASSPATH" \
+ org.gradle.wrapper.GradleWrapperMain \
+ "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+# set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+ printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+ xargs -n1 |
+ sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+ tr '\n' ' '
+ )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/example/BugsnagExample/gradlew.bat b/example/BugsnagExample/gradlew.bat
new file mode 100644
index 00000000..9d21a218
--- /dev/null
+++ b/example/BugsnagExample/gradlew.bat
@@ -0,0 +1,94 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+@rem SPDX-License-Identifier: Apache-2.0
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+@rem This is normally unused
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/example/BugsnagExample/iosApp/Configuration/Config.xcconfig b/example/BugsnagExample/iosApp/Configuration/Config.xcconfig
new file mode 100644
index 00000000..2c83e6a7
--- /dev/null
+++ b/example/BugsnagExample/iosApp/Configuration/Config.xcconfig
@@ -0,0 +1,7 @@
+TEAM_ID=
+
+PRODUCT_NAME=Bugsnag Example
+PRODUCT_BUNDLE_IDENTIFIER=com.example.bugsnag.kmp.BugsnagExample$(TEAM_ID)
+
+CURRENT_PROJECT_VERSION=1
+MARKETING_VERSION=1.0
\ No newline at end of file
diff --git a/example/BugsnagExample/iosApp/iosApp.xcodeproj/project.pbxproj b/example/BugsnagExample/iosApp/iosApp.xcodeproj/project.pbxproj
new file mode 100644
index 00000000..9baca3b4
--- /dev/null
+++ b/example/BugsnagExample/iosApp/iosApp.xcodeproj/project.pbxproj
@@ -0,0 +1,415 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 77;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 5D3BF4452E28F3290070A673 /* Bugsnag in Frameworks */ = {isa = PBXBuildFile; productRef = 5D3BF4442E28F3290070A673 /* Bugsnag */; };
+ 5D3BF4472E28F3290070A673 /* BugsnagNetworkRequestPlugin in Frameworks */ = {isa = PBXBuildFile; productRef = 5D3BF4462E28F3290070A673 /* BugsnagNetworkRequestPlugin */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ B9DA97B12DC1472C00A4DA20 /* Bugsnag Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Bugsnag Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
+ B99700CA2DC9B8D800C7335B /* Exceptions for "iosApp" folder in "iosApp" target */ = {
+ isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
+ membershipExceptions = (
+ Info.plist,
+ );
+ target = B9DA97B02DC1472C00A4DA20 /* iosApp */;
+ };
+/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
+
+/* Begin PBXFileSystemSynchronizedRootGroup section */
+ B9DA97B32DC1472C00A4DA20 /* iosApp */ = {
+ isa = PBXFileSystemSynchronizedRootGroup;
+ exceptions = (
+ B99700CA2DC9B8D800C7335B /* Exceptions for "iosApp" folder in "iosApp" target */,
+ );
+ path = iosApp;
+ sourceTree = "";
+ };
+ B9DA98002DC14AA900A4DA20 /* Configuration */ = {
+ isa = PBXFileSystemSynchronizedRootGroup;
+ path = Configuration;
+ sourceTree = "";
+ };
+/* End PBXFileSystemSynchronizedRootGroup section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ B9DA97AE2DC1472C00A4DA20 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 5D3BF4472E28F3290070A673 /* BugsnagNetworkRequestPlugin in Frameworks */,
+ 5D3BF4452E28F3290070A673 /* Bugsnag in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ B9DA97A82DC1472C00A4DA20 = {
+ isa = PBXGroup;
+ children = (
+ B9DA98002DC14AA900A4DA20 /* Configuration */,
+ B9DA97B32DC1472C00A4DA20 /* iosApp */,
+ B9DA97B22DC1472C00A4DA20 /* Products */,
+ );
+ sourceTree = "";
+ };
+ B9DA97B22DC1472C00A4DA20 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ B9DA97B12DC1472C00A4DA20 /* Bugsnag Example.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ B9DA97B02DC1472C00A4DA20 /* iosApp */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = B9DA97BF2DC1472D00A4DA20 /* Build configuration list for PBXNativeTarget "iosApp" */;
+ buildPhases = (
+ B9DA97F42DC1497100A4DA20 /* Compile Kotlin Framework */,
+ B9DA97AD2DC1472C00A4DA20 /* Sources */,
+ B9DA97AE2DC1472C00A4DA20 /* Frameworks */,
+ B9DA97AF2DC1472C00A4DA20 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ fileSystemSynchronizedGroups = (
+ B9DA97B32DC1472C00A4DA20 /* iosApp */,
+ );
+ name = iosApp;
+ packageProductDependencies = (
+ 5D3BF4442E28F3290070A673 /* Bugsnag */,
+ 5D3BF4462E28F3290070A673 /* BugsnagNetworkRequestPlugin */,
+ );
+ productName = iosApp;
+ productReference = B9DA97B12DC1472C00A4DA20 /* Bugsnag Example.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ B9DA97A92DC1472C00A4DA20 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = 1;
+ LastSwiftUpdateCheck = 1620;
+ LastUpgradeCheck = 1620;
+ TargetAttributes = {
+ B9DA97B02DC1472C00A4DA20 = {
+ CreatedOnToolsVersion = 16.2;
+ };
+ };
+ };
+ buildConfigurationList = B9DA97AC2DC1472C00A4DA20 /* Build configuration list for PBXProject "iosApp" */;
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = B9DA97A82DC1472C00A4DA20;
+ minimizedProjectReferenceProxies = 1;
+ packageReferences = (
+ 5D3BF4432E28F3290070A673 /* XCRemoteSwiftPackageReference "bugsnag-cocoa" */,
+ );
+ preferredProjectObjectVersion = 77;
+ productRefGroup = B9DA97B22DC1472C00A4DA20 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ B9DA97B02DC1472C00A4DA20 /* iosApp */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ B9DA97AF2DC1472C00A4DA20 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ B9DA97F42DC1497100A4DA20 /* Compile Kotlin Framework */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ );
+ name = "Compile Kotlin Framework";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "if [ \"YES\" = \"$OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED\" ]; then\n echo \"Skipping Gradle build task invocation due to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED environment variable set to \\\"YES\\\"\"\n exit 0\nfi\ncd \"$SRCROOT/..\"\n./gradlew :composeApp:embedAndSignAppleFrameworkForXcode\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ B9DA97AD2DC1472C00A4DA20 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin XCBuildConfiguration section */
+ B9DA97BD2DC1472D00A4DA20 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu17;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 18.2;
+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ B9DA97BE2DC1472D00A4DA20 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu17;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 18.2;
+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ SDKROOT = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ B9DA97C02DC1472D00A4DA20 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReferenceAnchor = B9DA98002DC14AA900A4DA20 /* Configuration */;
+ baseConfigurationReferenceRelativePath = Config.xcconfig;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
+ DEVELOPMENT_TEAM = "${TEAM_ID}";
+ ENABLE_PREVIEWS = YES;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(SRCROOT)/../shared/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)\n$(SRCROOT)/../composeApp/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
+ );
+ GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_FILE = iosApp/Info.plist;
+ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+ INFOPLIST_KEY_UILaunchScreen_Generation = YES;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ B9DA97C12DC1472D00A4DA20 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReferenceAnchor = B9DA98002DC14AA900A4DA20 /* Configuration */;
+ baseConfigurationReferenceRelativePath = Config.xcconfig;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
+ DEVELOPMENT_TEAM = "${TEAM_ID}";
+ ENABLE_PREVIEWS = YES;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(SRCROOT)/../shared/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)\n$(SRCROOT)/../composeApp/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
+ );
+ GENERATE_INFOPLIST_FILE = YES;
+ INFOPLIST_FILE = iosApp/Info.plist;
+ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
+ INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
+ INFOPLIST_KEY_UILaunchScreen_Generation = YES;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ B9DA97AC2DC1472C00A4DA20 /* Build configuration list for PBXProject "iosApp" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ B9DA97BD2DC1472D00A4DA20 /* Debug */,
+ B9DA97BE2DC1472D00A4DA20 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ B9DA97BF2DC1472D00A4DA20 /* Build configuration list for PBXNativeTarget "iosApp" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ B9DA97C02DC1472D00A4DA20 /* Debug */,
+ B9DA97C12DC1472D00A4DA20 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+
+/* Begin XCRemoteSwiftPackageReference section */
+ 5D3BF4432E28F3290070A673 /* XCRemoteSwiftPackageReference "bugsnag-cocoa" */ = {
+ isa = XCRemoteSwiftPackageReference;
+ repositoryURL = "https://github.com/bugsnag/bugsnag-cocoa";
+ requirement = {
+ kind = exactVersion;
+ version = 6.32.2;
+ };
+ };
+/* End XCRemoteSwiftPackageReference section */
+
+/* Begin XCSwiftPackageProductDependency section */
+ 5D3BF4442E28F3290070A673 /* Bugsnag */ = {
+ isa = XCSwiftPackageProductDependency;
+ package = 5D3BF4432E28F3290070A673 /* XCRemoteSwiftPackageReference "bugsnag-cocoa" */;
+ productName = Bugsnag;
+ };
+ 5D3BF4462E28F3290070A673 /* BugsnagNetworkRequestPlugin */ = {
+ isa = XCSwiftPackageProductDependency;
+ package = 5D3BF4432E28F3290070A673 /* XCRemoteSwiftPackageReference "bugsnag-cocoa" */;
+ productName = BugsnagNetworkRequestPlugin;
+ };
+/* End XCSwiftPackageProductDependency section */
+ };
+ rootObject = B9DA97A92DC1472C00A4DA20 /* Project object */;
+}
diff --git a/example/BugsnagExample/iosApp/iosApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/example/BugsnagExample/iosApp/iosApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 00000000..919434a6
--- /dev/null
+++ b/example/BugsnagExample/iosApp/iosApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AccentColor.colorset/Contents.json b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AccentColor.colorset/Contents.json
new file mode 100644
index 00000000..eb878970
--- /dev/null
+++ b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AccentColor.colorset/Contents.json
@@ -0,0 +1,11 @@
+{
+ "colors" : [
+ {
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/AppIcon.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/AppIcon.png
new file mode 100644
index 00000000..80732814
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/AppIcon.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 00000000..045f085f
--- /dev/null
+++ b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,172 @@
+{
+ "images" : [
+ {
+ "filename" : "Icon-App-20x20@2x.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "Icon-App-20x20@3x.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "Icon-App-29x29@1x.png",
+ "idiom" : "iphone",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "Icon-App-29x29@2x.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "Icon-App-29x29@3x.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "Icon-App-40x40@2x.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "Icon-App-40x40@3x.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "Icon-App-60x60@2x.png",
+ "idiom" : "iphone",
+ "scale" : "2x",
+ "size" : "60x60"
+ },
+ {
+ "filename" : "Icon-App-60x60@3x.png",
+ "idiom" : "iphone",
+ "scale" : "3x",
+ "size" : "60x60"
+ },
+ {
+ "filename" : "Icon-App-20x20@1x.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "Icon-App-20x20@2x.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "20x20"
+ },
+ {
+ "filename" : "Icon-App-29x29@1x.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "Icon-App-29x29@2x.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "29x29"
+ },
+ {
+ "filename" : "Icon-App-40x40@1x.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "Icon-App-40x40@2x.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "40x40"
+ },
+ {
+ "filename" : "Icon-App-76x76@1x.png",
+ "idiom" : "ipad",
+ "scale" : "1x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "Icon-App-76x76@2x.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "76x76"
+ },
+ {
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "idiom" : "ipad",
+ "scale" : "2x",
+ "size" : "83.5x83.5"
+ },
+ {
+ "filename" : "ItunesArtwork@2x.png",
+ "idiom" : "ios-marketing",
+ "scale" : "1x",
+ "size" : "1024x1024"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "16x16"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "16x16"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "32x32"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "32x32"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "128x128"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "128x128"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "256x256"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "256x256"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "512x512"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "512x512"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 00000000..5efca42d
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 00000000..84734e38
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 00000000..5f0a59cd
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 00000000..4cb8ebb3
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 00000000..18943e04
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 00000000..c39ee6b1
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 00000000..84734e38
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 00000000..8fc9ada0
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 00000000..bd4e9218
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 00000000..bd4e9218
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 00000000..2901a7af
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 00000000..5c499e6d
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 00000000..97b4556a
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 00000000..be50c84d
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png
new file mode 100644
index 00000000..e5aa5674
Binary files /dev/null and b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png differ
diff --git a/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/Contents.json b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/Contents.json
new file mode 100644
index 00000000..73c00596
--- /dev/null
+++ b/example/BugsnagExample/iosApp/iosApp/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/example/BugsnagExample/iosApp/iosApp/ContentView.swift b/example/BugsnagExample/iosApp/iosApp/ContentView.swift
new file mode 100644
index 00000000..dc574782
--- /dev/null
+++ b/example/BugsnagExample/iosApp/iosApp/ContentView.swift
@@ -0,0 +1,18 @@
+import UIKit
+import SwiftUI
+import ComposeApp
+
+struct ComposeView: UIViewControllerRepresentable {
+ func makeUIViewController(context: Context) -> UIViewController {
+ MainViewControllerKt.MainViewController()
+ }
+
+ func updateUIViewController(_ uiViewController: UIViewController, context: Context) {}
+}
+
+struct ContentView: View {
+ var body: some View {
+ ComposeView()
+ .ignoresSafeArea(.keyboard) // Compose has own keyboard handler
+ }
+}
diff --git a/example/BugsnagExample/iosApp/iosApp/Info.plist b/example/BugsnagExample/iosApp/iosApp/Info.plist
new file mode 100644
index 00000000..11845e1d
--- /dev/null
+++ b/example/BugsnagExample/iosApp/iosApp/Info.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ CADisableMinimumFrameDurationOnPhone
+
+
+
diff --git a/example/BugsnagExample/iosApp/iosApp/Preview Content/Preview Assets.xcassets/Contents.json b/example/BugsnagExample/iosApp/iosApp/Preview Content/Preview Assets.xcassets/Contents.json
new file mode 100644
index 00000000..73c00596
--- /dev/null
+++ b/example/BugsnagExample/iosApp/iosApp/Preview Content/Preview Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/example/BugsnagExample/iosApp/iosApp/iOSApp.swift b/example/BugsnagExample/iosApp/iosApp/iOSApp.swift
new file mode 100644
index 00000000..d83dca61
--- /dev/null
+++ b/example/BugsnagExample/iosApp/iosApp/iOSApp.swift
@@ -0,0 +1,10 @@
+import SwiftUI
+
+@main
+struct iOSApp: App {
+ var body: some Scene {
+ WindowGroup {
+ ContentView()
+ }
+ }
+}
\ No newline at end of file
diff --git a/example/BugsnagExample/settings.gradle.kts b/example/BugsnagExample/settings.gradle.kts
new file mode 100644
index 00000000..0cdea399
--- /dev/null
+++ b/example/BugsnagExample/settings.gradle.kts
@@ -0,0 +1,31 @@
+rootProject.name = "BugsnagExample"
+enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
+
+pluginManagement {
+ repositories {
+ google {
+ mavenContent {
+ includeGroupAndSubgroups("androidx")
+ includeGroupAndSubgroups("com.android")
+ includeGroupAndSubgroups("com.google")
+ }
+ }
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+
+dependencyResolutionManagement {
+ repositories {
+ google {
+ mavenContent {
+ includeGroupAndSubgroups("androidx")
+ includeGroupAndSubgroups("com.android")
+ includeGroupAndSubgroups("com.google")
+ }
+ }
+ mavenCentral()
+ }
+}
+
+include(":composeApp")
\ No newline at end of file