getsentry / sentry-java

A Sentry SDK for Java, Android and other JVM languages.
https://docs.sentry.io/
MIT License
1.16k stars 435 forks source link

[Android] Add internal hybrid sdk api for fetching debug images that were referenced in the stacktrace #3925

Open buenaflor opened 1 day ago

buenaflor commented 1 day ago

Problem Statement

In Flutter when loading debug images on Android we fetch all (up to 82) but most of the time only libapp.so and libflutter.so is needed so it makes sense to only fetch images that are referenced in the stacktrace

Solution Brainstorm

Similar to cocoa: https://github.com/getsentry/team-mobile/issues/158

Implementation how we access it in Cocoa on Flutter: https://github.com/getsentry/sentry-dart/blob/8549081071fd2bf85331d9988710b968ced8b2f1/flutter/ios/Classes/SentryFlutterPluginApple.swift#L280C1-L307C1