From d4bdce82d1e22037f561af2ad4c1bc254e3b28c1 Mon Sep 17 00:00:00 2001 From: NinjoOnline <70191246+NinjoOnline@users.noreply.github.com> Date: Thu, 14 Dec 2023 21:44:22 +0800 Subject: [PATCH 1/2] fix duplicate LocalScript being created --- .../GameAnalyticsClient.client.lua | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 gameanalytics-sdk/GameAnalyticsClient.client.lua diff --git a/gameanalytics-sdk/GameAnalyticsClient.client.lua b/gameanalytics-sdk/GameAnalyticsClient.client.lua deleted file mode 100644 index 975457e..0000000 --- a/gameanalytics-sdk/GameAnalyticsClient.client.lua +++ /dev/null @@ -1,49 +0,0 @@ -local module = {} - -local GuiService = game:GetService("GuiService") -local UserInputService = game:GetService("UserInputService") -local ReplicatedStorage = game:GetService("ReplicatedStorage") -local ScriptContext = game:GetService("ScriptContext") - ---[[ - The modules are required inside each function because we wouldn't - want to load the GameAnalytics library if we're just requiring this - ModuleScript on the client side, and we don't need to hard code - a require to Postie on the server side because the networking implementation could change. -]] - -function module.initClient() - local Postie = require(script.Parent.GameAnalytics.Postie) - - ScriptContext.Error:Connect(function(message, stackTrace, scriptInst) - if not scriptInst then - return - end - - local scriptName = nil - local ok, _ = pcall(function() - scriptName = scriptInst:GetFullName() -- Can't get name of some scripts because of security permission - end) - if not ok then - return - end - - ReplicatedStorage.GameAnalyticsError:FireServer(message, stackTrace, scriptName) - end) - - --Functions - local function getPlatform() - if GuiService:IsTenFootInterface() then - return "Console" - elseif UserInputService.TouchEnabled and not UserInputService.MouseEnabled then - return "Mobile" - else - return "Desktop" - end - end - - --Filtering - Postie.setCallback("getPlatform", getPlatform) -end - -return module From cf898414e23758f0f316be76ca71135ff1e64644 Mon Sep 17 00:00:00 2001 From: NinjoOnline <70191246+NinjoOnline@users.noreply.github.com> Date: Fri, 15 Dec 2023 10:38:29 +0800 Subject: [PATCH 2/2] apply 2.2.4 changes --- README.md | 3 +++ wally.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f32c1c1..864bbf4 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,9 @@ If you have any issues or feedback regarding the SDK, please contact our friendl Changelog --------- <!--(CHANGELOG_TOP)--> +**2.2.4** +* removed LocalScript that was added in 2.2.3, causing errors on requiring GameAnalyticsClient module + **2.2.3** * fixed bug where PlayerData would reference BasePlayerData tables instead of making copies * added datastore queue diff --git a/wally.toml b/wally.toml index d9b8c0b..d959eab 100644 --- a/wally.toml +++ b/wally.toml @@ -1,7 +1,7 @@ [package] name = "gameanalytics/gameanalytics-sdk" description = "Official Roblox SDK for GameAnalytics. GameAnalytics is a free analytics platform that helps game developers understand their players' behaviour by delivering relevant insights." -version = "2.2.3" +version = "2.2.4" license = "MIT" authors = ["GameAnalytics <sdk@gameanalytics.com>"] realm = "shared"