Skip to content

Commit c557813

Browse files
committed
Updated to v7.10.2
1 parent c2a8ffa commit c557813

File tree

9 files changed

+52
-8
lines changed

9 files changed

+52
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Changelog
22
---------
33
<!--(CHANGELOG_TOP)-->
4+
**7.10.2**
5+
* fixed legacy FPS warning if events were sent before sdk was initialized:fixed webgl string marshaling bug
6+
47
**7.10.1**
58
* fixed error event validation on iOS
69

Runtime/Scripts/Events/GA_SpecialEvents.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public static void SubmitFPS()
121121

122122
if (fpsSinceUpdate > 0)
123123
{
124-
GameAnalytics.NewDesignEvent("GA:AverageFPS", ((int)fpsSinceUpdate));
124+
if(GameAnalytics.Initialized)
125+
GameAnalytics.NewDesignEvent("GA:AverageFPS", ((int)fpsSinceUpdate));
125126
}
126127
}
127128
}
@@ -130,7 +131,9 @@ public static void SubmitFPS()
130131
{
131132
if (_criticalFpsCount > 0)
132133
{
133-
GameAnalytics.NewDesignEvent("GA:CriticalFPS", _criticalFpsCount);
134+
if(GameAnalytics.Initialized)
135+
GameAnalytics.NewDesignEvent("GA:CriticalFPS", _criticalFpsCount);
136+
134137
_criticalFpsCount = 0;
135138
}
136139
}

Runtime/Scripts/Setup/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public struct HelpInfo
5353
/// The version of the GA Unity Wrapper plugin
5454
/// </summary>
5555
[HideInInspector]
56-
public static string VERSION = "7.10.1";
56+
public static string VERSION = "7.10.2";
5757

5858
[HideInInspector]
5959
public static bool CheckingForUpdates = false;

Runtime/WebGL/GameAnalyticsUnity.jslib

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ var GameAnalyticsUnity = {
146146
getRemoteConfigsValueAsString: function(key, defaultValue)
147147
{
148148
var returnStr = gameanalytics.GameAnalytics.getRemoteConfigsValueAsString(UTF8ToString(key), UTF8ToString(defaultValue));
149-
var buffer = stringToUTF8(returnStr);
149+
var buffer = allocateStringBuffer(returnStr);
150150
return buffer;
151151
},
152152
isRemoteConfigsReady: function()
@@ -156,19 +156,19 @@ var GameAnalyticsUnity = {
156156
getRemoteConfigsContentAsString: function()
157157
{
158158
var returnStr = gameanalytics.GameAnalytics.getRemoteConfigsContentAsString();
159-
var buffer = stringToUTF8(returnStr);
159+
var buffer = allocateStringBuffer(returnStr);
160160
return buffer;
161161
},
162162
getABTestingId: function()
163163
{
164164
var returnStr = gameanalytics.GameAnalytics.getABTestingId();
165-
var buffer = stringToUTF8(returnStr);
165+
var buffer = allocateStringBuffer(returnStr);
166166
return buffer;
167167
},
168168
getABTestingVariantId: function()
169169
{
170170
var returnStr = gameanalytics.GameAnalytics.getABTestingVariantId();
171-
var buffer = stringToUTF8(returnStr);
171+
var buffer = allocateStringBuffer(returnStr);
172172
return buffer;
173173
}
174174
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function allocateStringBuffer(str) {
2+
const bufferSize = lengthBytesUTF8(str) + 1;
3+
const buffer = _malloc(bufferSize);
4+
stringToUTF8(str, buffer, bufferSize);
5+
return buffer;
6+
}

Runtime/WebGL/GameAnalyticsUtils.jspre.meta

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/iOS/libGameAnalytics.a

-14.9 KB
Binary file not shown.
-8.12 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.gameanalytics.sdk",
3-
"version": "7.10.1",
3+
"version": "7.10.2",
44
"displayName": "GameAnalytics",
55
"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. ",
66
"unity": "2018.1",

0 commit comments

Comments
 (0)