File tree Expand file tree Collapse file tree 10 files changed +24
-14
lines changed
sentry-kotlin-multiplatform
androidMain/kotlin/io/sentry/kotlin/multiplatform/extensions
commonIosMain/kotlin/io/sentry/kotlin/multiplatform/extensions
commonMain/kotlin/io/sentry/kotlin/multiplatform
src/commonMain/kotlin/sample.kmp.app Expand file tree Collapse file tree 10 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 55### Features
66
77- Improve Objc/Swift experience with @HiddenFromObjc ([ #62 ] ( https://github.com/getsentry/sentry-kotlin-multiplatform/pull/62 ) )
8+ - feat: add view hierarchy ([ #53 ] ( https://github.com/getsentry/sentry-kotlin-multiplatform/pull/53 ) )
89
910### Fixes
1011
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ cocoapods {
5959 // ...
6060
6161 // Make sure Sentry Cocoa in your project matches this version
62- pod("Sentry", "~> 8.2 .0")
62+ pod("Sentry", "~> 8.4 .0")
6363
6464 framework {
6565 baseName = "shared"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ object Config {
2727 val sentryAndroid = " io.sentry:sentry-android:$sentryJavaVersion "
2828 val sentryJava = " io.sentry:sentry:$sentryJavaVersion "
2929
30- val sentryCocoaVersion = " 8.2 .0"
30+ val sentryCocoaVersion = " 8.4 .0"
3131 val sentryCocoa = " Sentry"
3232 }
3333
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Pod::Spec.new do |spec|
1212 spec . osx . deployment_target = '10.13'
1313 spec . tvos . deployment_target = '11.0'
1414 spec . watchos . deployment_target = '4.0'
15- spec . dependency 'Sentry' , '~> 8.2 .0'
15+ spec . dependency 'Sentry' , '~> 8.4 .0'
1616
1717 spec . pod_target_xcconfig = {
1818 'KOTLIN_PROJECT_PATH' => ':sentry-kotlin-multiplatform' ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ internal fun SentryOptions.toAndroidSentryOptionsCallback(): (SentryAndroidOptio
1010
1111 // Apply Android specific options
1212 it.isAttachScreenshot = this .attachScreenshot
13+ it.isAttachViewHierarchy = this .attachViewHierarchy
1314
1415 it.sdkVersion?.name = this .sdk?.name ? : BuildKonfig .SENTRY_KMP_ANDROID_SDK_NAME
1516 it.sdkVersion?.version = this .sdk?.version ? : BuildKonfig .VERSION_NAME
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ internal fun SentryOptions.toIosOptionsConfiguration(): (CocoaSentryOptions?) ->
99
1010 // Apply iOS specific options
1111 it?.attachScreenshot = this .attachScreenshot
12+ it?.attachViewHierarchy = this .attachViewHierarchy
1213}
Original file line number Diff line number Diff line change @@ -66,4 +66,10 @@ public open class SentryOptions {
6666
6767 /* * This variable controls the max attachment size in bytes */
6868 public var maxAttachmentSize: Long = 20 * 1024 * 1024
69+
70+ /* *
71+ * Enables or disables the attach view hierarchy feature when an error happened.
72+ * This is only available on iOS and Android.
73+ */
74+ public var attachViewHierarchy: Boolean = false
6975}
Original file line number Diff line number Diff line change 11PODS:
2- - Sentry (8.2 .0):
3- - Sentry/Core (= 8.2 .0)
4- - SentryPrivate (= 8.2 .0)
5- - Sentry/Core (8.2 .0):
6- - SentryPrivate (= 8.2 .0)
7- - SentryPrivate (8.2 .0)
2+ - Sentry (8.4 .0):
3+ - Sentry/Core (= 8.4 .0)
4+ - SentryPrivate (= 8.4 .0)
5+ - Sentry/Core (8.4 .0):
6+ - SentryPrivate (= 8.4 .0)
7+ - SentryPrivate (8.4 .0)
88 - shared (1.0):
9- - Sentry (~> 8.2 .0)
9+ - Sentry (~> 8.4 .0)
1010
1111DEPENDENCIES:
1212 - shared (from `../shared`)
@@ -21,9 +21,9 @@ EXTERNAL SOURCES:
2121 :path: "../shared"
2222
2323SPEC CHECKSUMS:
24- Sentry: cf1d35c866266da58964fe7b62526bda93ffcb38
25- SentryPrivate: 2909bcc7b19a827b49e9bde0e56116b08d40dfdf
26- shared: 58db2d6937fef39d8b2c4c237ae769c9fef453f2
24+ Sentry: 16d46dd5ca10e7f4469a2611805a3de123188add
25+ SentryPrivate: 2bb4f8d9ff558b25ac70b66c1dedc58a7c43630b
26+ shared: 0dca2e824df822c0e0186869c320e4ba675f23ed
2727
2828PODFILE CHECKSUM: f282da88f39e69507b0a255187c8a6b644477756
2929
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Pod::Spec.new do |spec|
99 spec . vendored_frameworks = 'build/cocoapods/framework/shared.framework'
1010 spec . libraries = 'c++'
1111 spec . ios . deployment_target = '14.1'
12- spec . dependency 'Sentry' , '~> 8.2 .0'
12+ spec . dependency 'Sentry' , '~> 8.4 .0'
1313
1414 spec . pod_target_xcconfig = {
1515 'KOTLIN_PROJECT_PATH' => ':sentry-samples:kmp-app:shared' ,
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ private fun optionsConfiguration(): OptionsConfiguration {
4343 it.attachStackTrace = true
4444 it.attachThreads = true
4545 it.attachScreenshot = true
46+ it.attachViewHierarchy = true
4647 it.release = " kmp-release@0.0.1"
4748 it.beforeBreadcrumb = { breadcrumb ->
4849 breadcrumb.message = " Add message before every breadcrumb"
You can’t perform that action at this time.
0 commit comments