You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR: When Flutter apps use obfucation the debug symbols are not included in the .aab due to a long standing issue. This requires developers to manually generate and upload a zip file every time they want to release a build (or risk not getting readable logs/Crashylytics).
First a script can be used to generate the debug symbols zip:
rm -rf build/app/intermediates/stripped_native_libs/release/out/lib/.crashlytics \
&&cd build/app/intermediates/stripped_native_libs/release/out/lib/ && zip -r ../../../../../outputs/bundle/release/symbols.zip .&&cd - \
&& mkdir -p build/$1/android_build/ \
&& cp build/app/outputs/bundle/release/symbols.zip build/$1/android_build/ \
&&echo"Upload the following debug symbols to Play Console: 'build/$1/android_build/symbols.zip'" \
||echo"Build for Android failed!"
Then we can utilize the Google Play Developer API upload endpoint to upload this zip to the Play store. Note that we will need to specify deobfuscationFileType=nativeCode when calling this endpoint.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Use case
See https://github.com/orgs/codemagic-ci-cd/discussions/2900#discussioncomment-11818663.
TLDR: When Flutter apps use obfucation the debug symbols are not included in the
.aab
due to a long standing issue. This requires developers to manually generate and upload a zip file every time they want to release a build (or risk not getting readable logs/Crashylytics).This is a very prevalent complaint:
Idea
First a script can be used to generate the debug symbols zip:
Then we can utilize the Google Play Developer API upload endpoint to upload this zip to the Play store. Note that we will need to specify
deobfuscationFileType=nativeCode
when calling this endpoint.Beta Was this translation helpful? Give feedback.
All reactions