Skip to content

Commit

Permalink
Updated to v7.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dorin-ga committed Sep 20, 2024
1 parent c2a8ffa commit c557813
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
---------
<!--(CHANGELOG_TOP)-->
**7.10.2**
* fixed legacy FPS warning if events were sent before sdk was initialized:fixed webgl string marshaling bug

**7.10.1**
* fixed error event validation on iOS

Expand Down
7 changes: 5 additions & 2 deletions Runtime/Scripts/Events/GA_SpecialEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ public static void SubmitFPS()

if (fpsSinceUpdate > 0)
{
GameAnalytics.NewDesignEvent("GA:AverageFPS", ((int)fpsSinceUpdate));
if(GameAnalytics.Initialized)
GameAnalytics.NewDesignEvent("GA:AverageFPS", ((int)fpsSinceUpdate));
}
}
}
Expand All @@ -130,7 +131,9 @@ public static void SubmitFPS()
{
if (_criticalFpsCount > 0)
{
GameAnalytics.NewDesignEvent("GA:CriticalFPS", _criticalFpsCount);
if(GameAnalytics.Initialized)
GameAnalytics.NewDesignEvent("GA:CriticalFPS", _criticalFpsCount);

_criticalFpsCount = 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Setup/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public struct HelpInfo
/// The version of the GA Unity Wrapper plugin
/// </summary>
[HideInInspector]
public static string VERSION = "7.10.1";
public static string VERSION = "7.10.2";

[HideInInspector]
public static bool CheckingForUpdates = false;
Expand Down
8 changes: 4 additions & 4 deletions Runtime/WebGL/GameAnalyticsUnity.jslib
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ var GameAnalyticsUnity = {
getRemoteConfigsValueAsString: function(key, defaultValue)
{
var returnStr = gameanalytics.GameAnalytics.getRemoteConfigsValueAsString(UTF8ToString(key), UTF8ToString(defaultValue));
var buffer = stringToUTF8(returnStr);
var buffer = allocateStringBuffer(returnStr);
return buffer;
},
isRemoteConfigsReady: function()
Expand All @@ -156,19 +156,19 @@ var GameAnalyticsUnity = {
getRemoteConfigsContentAsString: function()
{
var returnStr = gameanalytics.GameAnalytics.getRemoteConfigsContentAsString();
var buffer = stringToUTF8(returnStr);
var buffer = allocateStringBuffer(returnStr);
return buffer;
},
getABTestingId: function()
{
var returnStr = gameanalytics.GameAnalytics.getABTestingId();
var buffer = stringToUTF8(returnStr);
var buffer = allocateStringBuffer(returnStr);
return buffer;
},
getABTestingVariantId: function()
{
var returnStr = gameanalytics.GameAnalytics.getABTestingVariantId();
var buffer = stringToUTF8(returnStr);
var buffer = allocateStringBuffer(returnStr);
return buffer;
}
};
Expand Down
6 changes: 6 additions & 0 deletions Runtime/WebGL/GameAnalyticsUtils.jspre
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function allocateStringBuffer(str) {
const bufferSize = lengthBytesUTF8(str) + 1;
const buffer = _malloc(bufferSize);
stringToUTF8(str, buffer, bufferSize);
return buffer;
}
32 changes: 32 additions & 0 deletions Runtime/WebGL/GameAnalyticsUtils.jspre.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Runtime/iOS/libGameAnalytics.a
Binary file not shown.
Binary file modified Runtime/tvOS/libGameAnalyticsTVOS.a
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.gameanalytics.sdk",
"version": "7.10.1",
"version": "7.10.2",
"displayName": "GameAnalytics",
"description": "GameAnalytics collects and stores your data with no limits. You can then view your core KPI's in order to see what areas of your game need to improvements. If you want to find out more about how gamers play, then add in funnels, progression events and resource tracking. ",
"unity": "2018.1",
Expand Down

0 comments on commit c557813

Please sign in to comment.