git clone https://github.com/godotengine/godot.git
cd godot
git checkout 4.xRun SCons from the Godot source folder. The Godot documentation and Sentry docs both use scons to compile export templates with debug symbols .
For the flags you mentioned (assuming your Godot version supports generate_android_binaries and gradle_do_not_strip):
scons platform=android target=template_debug generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yesSentry's documentation confirms that Android export templates can be compiled with target=template_debug, platform=android, arch=arm32, and debug_symbols=yes .
For the build you actually upload to Play Console, it is recommended to use target=template_release rather than template_debug:
scons platform=android target=template_release generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yesIf you want separate debug symbol files (instead of them being embedded in the binary), add the separate_debug_symbols=yes flag :
scons platform=android target=template_release generate_android_binaries=yes debug_symbols=yes gradle_do_not_strip=yes separate_debug_symbols=yes
Comments
0 comments