Skip to content

Commit d818be3

Browse files
committed
enable processing and uploading of native symbols to Firebase servers
1 parent 934cf66 commit d818be3

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

doc/source/buildoptions.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ ready.
162162
project directory.
163163
- ``--add-gradle-plugins``: Add a plugin for gradle. The format of the option
164164
is ``<plugin-id>:<classpath>``. The option can be specified multiple times.
165+
- ``--enable-crashlytics-native-symbol-upload``: Enable processing and uploading
166+
of native symbols to Firebase servers. This flag must be enabled to see
167+
properly-symbolicated native stack traces in the Crashlytics dashboard.
165168

166169

167170
service_library

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,9 @@ def parse_args_and_make_package(args=None):
889889
ap.add_argument('--google-services-json', dest='google_services_json',
890890
default='google-services.json',
891891
help='Path to google-services.json file')
892+
ap.add_argument('--enable-crashlytics-native-symbol-upload', dest='enable_crashlytics_native_symbol_upload',
893+
action='store-true',
894+
help='Enable processing and uploading of native symbols to Firebase servers.')
892895

893896
# Put together arguments, and add those from .p4a config file:
894897
if args is None:

pythonforandroid/bootstraps/common/build/templates/build.tmpl.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ android {
9292
{% if args.sign -%}
9393
signingConfig signingConfigs.release
9494
{%- endif %}
95+
{$ if args.enable_crashlytics_native_symbol_upload -%}
96+
firebaseCrashlytics {
97+
nativeSymbolUploadEnabled true
98+
}
99+
{%- endif %}
95100
}
96101
}
97102

0 commit comments

Comments
 (0)