Skip to content

Commit f4946b7

Browse files
committed
update linker
1 parent 9f394a4 commit f4946b7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Analytics-CSharp/Resources/link.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@
77
<assembly fullname="System.Core">
88
<type fullname="System.Linq.Expressions.Interpreter.LightLambda" preserve="all" />
99
</assembly>
10+
<assembly fullname="UnityEngine">
11+
<type fullname="UnityEngine.Application" preserve="all" />
12+
</assembly>
13+
<assembly fullname="Xamarin.Forms">
14+
<type fullname="Xamarin.Forms.Device" preserve="all" />
15+
</assembly>
1016
</linker>
1117

Analytics-CSharp/Segment/Analytics/Utilities/SystemInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static string getPlatform()
2525
{
2626
type = "Xamarin";
2727
}
28-
else if (Type.GetType("UnityEngine.Device.SystemInfo, UnityEngine") != null)
28+
else if (Type.GetType("UnityEngine.Application, UnityEngine") != null)
2929
{
3030
type = "Unity";
3131
}

0 commit comments

Comments
 (0)