Skip to content

Commit

Permalink
Add link xml file for Crashlytics (#394)
Browse files Browse the repository at this point in the history
* Add link xml file for Crashlytics

Add a link xml file for Crashlytics to prevent symbols from being stripped when using il2cpp

* Update readme.md

* Update link.xml
  • Loading branch information
a-maurice authored Jul 6, 2022
1 parent e1a21a8 commit e6a84ca
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crashlytics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ endif()

unity_pack_cs(firebase_crashlytics_cs)

# Crashlytics has a special file to prevent il2cpp from stripping symbols.
unity_pack_file(
"link.xml"
PACK_PATH "Firebase/Plugins/Crashlytics"
)

if (FIREBASE_INCLUDE_UNITY)
generate_dependencies_xml(Crashlytics
IOS_DEPS
Expand Down
5 changes: 5 additions & 0 deletions crashlytics/link.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<linker>
<assembly fullname="Firebase.Crashlytics" ignoreIfMissing="1">
<namespace fullname="Firebase.Crashlytics" preserve="all"/>
</assembly>
</linker>
4 changes: 4 additions & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ Support

Release Notes
-------------
### 9.2.0
- Changes
- Crashlytics: Fix requiring user code to reference Crashlytics when using il2cpp.

### 9.1.0
- Changes
- General: Added a missing namespace to the Google.MiniJson.dll.
Expand Down

0 comments on commit e6a84ca

Please sign in to comment.