You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are targeting Apple platforms (iOS, macOS, watchOS, tvOS), then you need to use CocoaPods to include [Sentry Cocoa](https://github.com/getsentry/sentry-cocoa) into this SDK.
56
-
One way to achieve this is to include the Sentry Cocoa SDK via the Kotlin CocoaPods extension. Be aware that your Sentry Cocoa version has to match the SDK's version. Currently the supported version is `~> 7.21.0`
52
+
If you are targeting Apple platforms (iOS, macOS, watchOS, tvOS), then you can use CocoaPods to include [Sentry Cocoa](https://github.com/getsentry/sentry-cocoa) into this SDK.
53
+
One way to achieve this is to include the Sentry Cocoa SDK via the Kotlin CocoaPods extension. Be aware that your Sentry Cocoa version has to match the version used in the KMP SDK.
57
54
58
55
```gradle
59
56
cocoapods {
@@ -66,7 +63,7 @@ cocoapods {
66
63
baseName = "shared"
67
64
68
65
// Export the SDK in order to be able to access it directly in the iOS project
There are two main strategies for initializing the SDK:
77
74
- Shared initializer
78
-
- Platformspecific initializers
75
+
- Platform-specific initializers
79
76
80
77
Shared initializer will initialize the SDK in your shared codebase but you will use the same configuration options for all platforms.
81
78
82
-
Platformspecific initializers initialize the SDK directly in the target platform. The benefit is being able to customize the configuration options specific to the platforms.
79
+
Platform-specific initializers initialize the SDK directly in the target platform. The benefit is being able to customize the configuration options specific to the platforms.
83
80
84
81
It is also possible to mix those two strategies based on your needs and project setup.
85
82
@@ -140,7 +137,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
0 commit comments