hi all, question about crash/error reporting. How ...
# kotlin-native
j
hi all, question about crash/error reporting. How do i get the proper dsym files for the shared module? Added this to the gradle file of the shared module:
Copy code
kotlin{
  targets.withType<KotlinNativeTarget> {
    binaries.all {
      freeCompilerArgs += "-Xadd-light-debug=enable"
    }
    binaries.withType<org.jetbrains.kotlin.gradle.plugin.mpp.Framework> {
      isStatic = true
    }
  }
}
I just hooked up my app to sentry and was testing things out, I see that I uploaded the dsym files, but everything's looking like this:
I know there's CrashKios to help with this kind of thing, but I guess I was wondering if there was something wrong with my setup, or if symbolication is something that's still lacking
k
Sentry doesn't work because you need to be able to send a custom exception report with function pointers (see what CrashKios is doing). I gave a talk about CrashKios at Droidcon SF last year and talked to the Sentry team at their booth, and spent a few hours that morning trying to get the Sentry client to work, but I failed. I don't know if the Sentry client has the ability to create the proper type of custom report. As far as Sentry is concerned, that screenshot above is the crash stack trace.
Sorry, left out the conclusion to one part. "I don't know if the Sentry client has the ability to create the proper type of custom report." But! I also barely tried, and whoever I talked to at the booth didn't seem to understand what I was talking about. Not all clients work. Tried New Relic a couple weeks ago, and they also apparently don't expose the right sdk to handle full Kotlin stacks.
j
ah, thank you. trying to get crashkios working with crashyltics now
by any chance is the talk up online? went looking for it on youtube and didn't find anything
oh my god, i just got crashkios to work with crashlytics. holding back the tears. thanks @kpgalligan and all the other touchlab folks, this library is a godsend
🚀 1
🎸 1
k
The talk. Was mostly about kotlin libraries, but at 20:28 I start talking about CrashKiOS. At 21:54 I talk about Sentry, and how I was confident I would figure it out before leaving SF. Ha ha. Feels like that was years ago. https://www.droidcon.com/media-detail?video=380843862
p
@kpgalligan did you ever found a way to make it work?
k
Sentry?
p
Yes
k
I haven't tried since 2019. I did discuss it with somebody recently (last week I think) that was considering a PR, but I don't think they've started. The Sentry SDK looks like it's maybe expanded (since 2019) to support the kind of thing you'd need to do (send custom reports), but unless we have a need internally I don't think we'll be looking at it soon.