newrelic / newrelic-flutter-agent

New Relic agent SDK for Flutter hybrid mobile apps
Apache License 2.0
6 stars 12 forks source link

Support for Flutter Obfuscation and Symbols File Upload #46

Open chrisdlangham opened 1 year ago

chrisdlangham commented 1 year ago

Issue Description:

From what I can see New Relic does not support .symbols file uploads that are created when a flutter app is obfuscated. https://docs.flutter.dev/deployment/obfuscate

This creates challenges for accurately monitoring and diagnosing issues in production environments where Flutter code is obfuscated. Otherwise, to see many of the benefits of using New Relic, we have to turn off flutter obfuscation.

Obfuscation is an important security measure to protect code from being viewed and reverse engineering. Without support for obfuscation, the New Relic reporting is unable to provide accurate data about crashes, exceptions, and log events.

Expected Behavior:

It would be beneficial to have a similar tool like run-symbol-tool that is in the iOS agent, but for Flutter apps.

flutter build ipa --obfuscate --split-debug-info=/<project-name>/<directory> upload-symbols --symbols-file=/<project-name>/<directory>

JohnnyBravoFromTexas commented 1 year ago

Hi, Chris. Thanks for reaching out. We are on the same page. Unpacking obfuscated crashes is high on our list of priorities. We will be adding this often requested feature to all of our mobile platforms (React Native, Flutter, Xamarin, Maui, Cordova etc..) throughout the remainder of the year. Again, thank you for submitting this feedback. John

falt008 commented 4 months ago

[...] We will be adding this often requested feature to all of our mobile platforms [...]

Any updates on this @JohnnyBravoFromTexas?

SAGARSURI commented 4 months ago

Looking forward for an update on this

Sp4Rx commented 2 months ago

Is there any public tracker for the development of this feature?

JohnnyBravoFromTexas commented 2 months ago

We continue to work towards unlocking symbolication of crashes across all of our hybrid agents. Unfortunately progress last year did not play out the way we had hoped. Our symbolication pipeline needed to be rewritten from the ground up to support the variety of hybrid agents capturing crashes. Teams have picked this work back up again with the goal of releasing one or more agents with symbolication support over the next few quarters. I certainly understand the frustration. Please feel free to reach out to me directly to discuss further. Thank you!

chrisdlangham commented 2 months ago

the goal of releasing one or more agents with symbolication support over the next few quarters.

@JohnnyBravoFromTexas is the flutter agent one of these agents?

alicja-ogonowska commented 1 week ago

Any updates on this feature request? I thought that I will be able to achieve this by following documentation for Android/iOS apps, I successfully sent to NR the same files that I am sending to Crashlytics, but the crashes in NewRelic are still obfuscated.

This is a very needed feature 🙏