File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,18 @@ if(ANDROID)
72
72
set (FIREBASE_CPP_CRASHLYTICS_PROGUARD ${CMAKE_CURRENT_BINARY_DIR} /crashlytics.pro
73
73
CACHE FILEPATH "Proguard file for Crashlytics" FORCE )
74
74
75
+ # The Crashlytics NDK symbols aren't properly caught by the usual strings logic,
76
+ # so we explicitly append it at the end.
75
77
add_custom_command (
76
78
OUTPUT ${FIREBASE_CPP_CRASHLYTICS_PROGUARD}
77
79
COMMAND strings $< TARGET_FILE:firebase_crashlytics> |
78
80
grep %PG% |
79
81
sed -r 'sI/I.Ig' |
80
- sed -r 's/%PG%/-keep,includedescriptorclasses public class /g'
81
- > ${FIREBASE_CPP_CRASHLYTICS_PROGUARD}
82
+ sed -r 's/%PG%/-keep,includedescriptorclasses public class /g' |
83
+ sed -r 'sI\$\$ I { *\; }Ig'
84
+ > ${FIREBASE_CPP_CRASHLYTICS_PROGUARD} &&
85
+ echo '-keep class com.google.firebase.crashlytics.ndk.** { *\; }'
86
+ >> ${FIREBASE_CPP_CRASHLYTICS_PROGUARD}
82
87
DEPENDS firebase_crashlytics
83
88
COMMENT "Generating Crashlytics Proguard file."
84
89
)
Original file line number Diff line number Diff line change @@ -161,6 +161,8 @@ Release Notes
161
161
- General (Editor, macOS): Add support for Apple Silicon chips.
162
162
- General (iOS): Firebase Unity on iOS is now built using Xcode 13.3.1.
163
163
- Analytics: Removed deprecated event names and parameters.
164
+ - Crashlytics (Android): Fixed a bug with missing symbols when enabling
165
+ minification via proguard.
164
166
- Realtime Database (Desktop): Fixed a bug handling server timestamps
165
167
on 32-bit CPUs.
166
168
- Storage (Desktop): Set Content-Type HTTP header when uploading with
You can’t perform that action at this time.
0 commit comments