Skip to content

Commit 374f177

Browse files
authored
Merge pull request #186 from immutable/fix/nullables-unity-2019
[DX-2793] fix: nullables not working for unity 2019
2 parents 0731409 + f1a00ae commit 374f177

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Packages/Passport/Runtime/Scripts/Private/Event/AnalyticsEvent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static class Properties
4242
}
4343

4444
public async UniTask Track(IBrowserCommunicationsManager communicationsManager, string eventName,
45-
bool? success = null, Dictionary<string, object>? properties = null)
45+
bool? success = null, Dictionary<string, object> properties = null)
4646
{
4747
try
4848
{

src/Packages/Passport/Runtime/Scripts/Private/PassportImpl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class PassportImpl
2222
{
2323
private const string TAG = "[Passport Implementation]";
2424
public readonly IBrowserCommunicationsManager communicationsManager;
25-
private PassportAnalytics analytics = new();
25+
private PassportAnalytics analytics = new PassportAnalytics();
2626

2727
// Used for device code auth
2828
private DeviceConnectResponse deviceConnectResponse;
@@ -829,7 +829,7 @@ public void ClearStorage()
829829
}
830830
#endif
831831

832-
protected virtual async void Track(string eventName, bool? success = null, Dictionary<string, object>? properties = null)
832+
protected virtual async void Track(string eventName, bool? success = null, Dictionary<string, object> properties = null)
833833
{
834834
await analytics.Track(communicationsManager, eventName, success, properties);
835835
}

src/Packages/Passport/Tests/Runtime/Scripts/PassportTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected override void OpenUrl(string url)
2424
urlsOpened.Add(url);
2525
}
2626

27-
protected override void Track(string eventName, bool? success = null, Dictionary<string, object>? properties = null)
27+
protected override void Track(string eventName, bool? success = null, Dictionary<string, object> properties = null)
2828
{
2929
}
3030
}

0 commit comments

Comments
 (0)