Missing cinterop for SentrySessionReplayIntegration
Problem Statement
I want to use session replay on mobile, but on ios the cinterop is missing some types.
Solution Brainstorm
I want to be able to configure session replay in kotlin multiplatform code. Or atleast have access to the objectc definitions
hey which sentry cocoa and kmp version are you using?
kmp 0.9.0 and cocoa 8.36.0
can you check if the same problem exists on 0.8.0
I cannot downgrade, because i use the mobile replay which is only available in 0.9.0
0.8.0 internally uses cocoa version 8.36.0 to create the cinterop bindings so theoretically it should also have the replay options
how do you use the KMP init btw?
Sentry.init or Sentry.initWithPlatformOptions
I use Sentry.initWithPlatformOptions to access the replay API which is not available in common code.
it is available for me locally:
actual fun createPlatformOptionsConfiguration(): PlatformOptionsConfiguration = {
it.dsn = "..."
it.experimental.sessionReplay().setOnErrorSampleRate(1.0f)
}
this is tested in the sample app in the kmp repo
if you want to access it in common code I'll add it soon