From 274b2564f1ad9894efc553de3373eadcd24719b3 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Thu, 8 Feb 2024 18:54:13 +1300 Subject: [PATCH] feat: track function --- sample/ProjectSettings/ProjectSettings.asset | 2 +- .../Passport/Runtime/Resources/index.html | 6 +-- .../Scripts/Private/Event/AnalyticsEvent.cs | 19 ++++++++++ .../AnalyticsEvent.cs.meta} | 2 +- .../Scripts/Private/Helpers/JsonHelpers.cs | 37 +++++++++++++++++++ .../Private/Model/Request/TrackData.cs | 14 +++++++ .../Private/Model/Request/TrackData.cs.meta | 11 ++++++ .../Scripts/Private/PassportConstants.cs | 13 ------- .../Scripts/Private/PassportFunction.cs | 2 +- .../Runtime/Scripts/Private/PassportImpl.cs | 29 ++++++++++++++- .../Scripts/Helpers/JsonHelpersTests.cs | 30 +++++++++++++++ .../Scripts/Helpers/JsonHelpersTests.cs.meta | 11 ++++++ .../Tests/Runtime/Scripts/PassportTests.cs | 4 +- 13 files changed, 158 insertions(+), 22 deletions(-) create mode 100644 src/Packages/Passport/Runtime/Scripts/Private/Event/AnalyticsEvent.cs rename src/Packages/Passport/Runtime/Scripts/Private/{PassportConstants.cs.meta => Event/AnalyticsEvent.cs.meta} (83%) create mode 100644 src/Packages/Passport/Runtime/Scripts/Private/Model/Request/TrackData.cs create mode 100644 src/Packages/Passport/Runtime/Scripts/Private/Model/Request/TrackData.cs.meta delete mode 100644 src/Packages/Passport/Runtime/Scripts/Private/PassportConstants.cs create mode 100644 src/Packages/Passport/Tests/Runtime/Scripts/Helpers/JsonHelpersTests.cs create mode 100644 src/Packages/Passport/Tests/Runtime/Scripts/Helpers/JsonHelpersTests.cs.meta diff --git a/sample/ProjectSettings/ProjectSettings.asset b/sample/ProjectSettings/ProjectSettings.asset index 857d3a41..ee03aa7a 100644 --- a/sample/ProjectSettings/ProjectSettings.asset +++ b/sample/ProjectSettings/ProjectSettings.asset @@ -792,7 +792,7 @@ PlayerSettings: allowUnsafeCode: 0 useDeterministicCompilation: 1 enableRoslynAnalyzers: 1 - selectedPlatform: 2 + selectedPlatform: 0 additionalIl2CppArgs: scriptingRuntimeVersion: 1 gcIncremental: 1 diff --git a/src/Packages/Passport/Runtime/Resources/index.html b/src/Packages/Passport/Runtime/Resources/index.html index 6e2f5426..09573c1c 100644 --- a/src/Packages/Passport/Runtime/Resources/index.html +++ b/src/Packages/Passport/Runtime/Resources/index.html @@ -1,17 +1,17 @@ -GameSDK Bridge