ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.26k stars 1.01k forks source link

[Feature]: Capacitor Android: Missing Debug Symbols in Generated App Bundle #7687

Open tarektaamali opened 1 month ago

tarektaamali commented 1 month ago

Description

The App Bundle should include native debug symbols (BUNDLE-METADATA/com.android.tools.debugsymbols) to facilitate debugging and crash reporting.

Platforms

Request or proposed solution

The App Bundle should include native debug symbols (BUNDLE-METADATA/com.android.tools.debugsymbols) to facilitate debugging and crash reporting.

Alternatives

No response

Additional Information

No response

tarektaamali commented 1 month ago

https://github.com/ionic-team/capacitor/issues/7673#issue-2545141945

jcesarmobile commented 1 month ago

The other issue was closed because it looked like you were referring to appflow builds, not to regular Capacitor local builds. Some questions were asked there, can you answer them here and provide more information and a sample app that reproduces the issue with steps to reproduce? this new issue have even less information that the first one.

tarektaamali commented 1 month ago

@jcesarmobile @eric-horodyski The issue is not related to Appflow. Whether in Appflow or when building on the local laptop, the same issue and result occur. I don't understand why the bug was closed, as it's easy to reproduce this bug.

tarektaamali commented 1 month ago

To reproduce this issue, create a Capacitor project and deploy it to the Google Play Console.

jcesarmobile commented 1 month ago

Please, provide a sample app and steps to reproduce or this issue will be closed too.

tarektaamali commented 1 month ago

Create a project ionic + capacitor . Generate a signed bundle with Build -> Generate Signed App Bundle / APK and press analyze in the popup that appears.

image

after upload bundle in google play
image

The bundle does not include debug symbols. @jcesarmobile Would you like to upload a sample project to GitHub?

jcesarmobile commented 1 month ago

yes, please

tarektaamali commented 1 month ago

This is a sample project to reproduce the issue. @jcesarmobile @eric-horodyski https://github.com/tarektaamali/sampleAppReproduceBugCapacitor

tarektaamali commented 1 month ago

Note: @jcesarmobile For example, when building a bundle using the Flutter framework, the bundle includes debug symbol files (*.so). I don't understand why this isn't the case when using Capacitor for the same process.

image

tarektaamali commented 1 week ago

Hello @jcesarmobile, Regarding moving debug symbols into the App Bundle: I can use a script or Gradle task to copy the debug symbols into the App Bundle’s metadata directory. I’ll try this solution. Do you think it will work, and is it considered best practice? cc @eric-horodyski