File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
pythonforandroid/bootstraps/common/build/templates Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ android {
51
51
manifestPlaceholders = {{ args. manifest_placeholders}}
52
52
}
53
53
54
+ {% if args. enable_crashlytics_native_symbol_upload -% }
55
+ tasks. whenTaskAdded { task ->
56
+ if (task. name. startsWith(' assemble' ) && task. name != " assembleReleaseAndroidTest" && task. name != " assembleDebugAndroidTest" ) {
57
+ task. finalizedBy " uploadCrashlyticsSymbolFile" + task. name. substring(' assemble' . length())
58
+ }
59
+ }
60
+ {%- endif % }
54
61
55
62
packagingOptions {
56
63
jniLibs {
@@ -87,6 +94,12 @@ android {
87
94
88
95
buildTypes {
89
96
debug {
97
+ {% if args. enable_crashlytics_native_symbol_upload -% }
98
+ firebaseCrashlytics {
99
+ nativeSymbolUploadEnabled true
100
+ unstrippedNativeLibsDir ' obj/local'
101
+ }
102
+ {%- endif % }
90
103
}
91
104
release {
92
105
{% if args. sign -% }
@@ -95,8 +108,7 @@ android {
95
108
{% if args. enable_crashlytics_native_symbol_upload -% }
96
109
firebaseCrashlytics {
97
110
nativeSymbolUploadEnabled true
98
- strippedNativeLibsDir ' build/intermediates/stripped_native_libs/release/out/lib'
99
- unstrippedNativeLibsDir ' build/intermediates/merged_native_libs/release/out/lib'
111
+ unstrippedNativeLibsDir ' obj/local'
100
112
}
101
113
{%- endif % }
102
114
}
You can’t perform that action at this time.
0 commit comments