From ee4d8ebcfb216cae1060461614d79ed469b32eb1 Mon Sep 17 00:00:00 2001 From: Dorin Date: Tue, 23 Jun 2026 14:44:14 +0300 Subject: [PATCH 1/4] truncate linux version to pass GA validation --- source/gameanalytics/Platform/GALinux.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/source/gameanalytics/Platform/GALinux.cpp b/source/gameanalytics/Platform/GALinux.cpp index 417afb8..56dad87 100644 --- a/source/gameanalytics/Platform/GALinux.cpp +++ b/source/gameanalytics/Platform/GALinux.cpp @@ -81,9 +81,19 @@ std::string gameanalytics::GAPlatformLinux::getOSVersion() std::string version; int const strSize = strlen(info.release); + int dotCount = 0; for (size_t i = 0; i < strSize; ++i) - { - if (!isdigit(info.release[i]) && info.release[i] != '.') + { + if (info.release[i] == '.') + { + ++dotCount; + if (dotCount == 3) + { + version = std::string(info.release, info.release + i); + break; + } + } + else if (!isdigit(info.release[i])) { version = std::string(info.release, info.release + i); break; From 8901556cb7985df350bd902a16d326a0f11ae2b3 Mon Sep 17 00:00:00 2001 From: Dorin Date: Tue, 23 Jun 2026 14:45:00 +0300 Subject: [PATCH 2/4] correct check for clang --- sample_shared/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample_shared/CMakeLists.txt b/sample_shared/CMakeLists.txt index ed1e782..059856c 100644 --- a/sample_shared/CMakeLists.txt +++ b/sample_shared/CMakeLists.txt @@ -9,7 +9,7 @@ set(CMAKE_CXX_STANDARD 17) if(LINUX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") - if(CLANG) + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") endif() endif() From f450bae3c1c4841f7f0eea2102fc6b974453a1ff Mon Sep 17 00:00:00 2001 From: Dorin Date: Tue, 23 Jun 2026 14:46:47 +0300 Subject: [PATCH 3/4] discard incompatible sdk state --- source/gameanalytics/GAState.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/gameanalytics/GAState.cpp b/source/gameanalytics/GAState.cpp index f1e8d8d..d17e578 100644 --- a/source/gameanalytics/GAState.cpp +++ b/source/gameanalytics/GAState.cpp @@ -638,6 +638,7 @@ namespace gameanalytics catch (json::exception& e) { logging::GALogger::e(e.what()); + store::GAStore::setState("sdk_config_cached", ""); } } From 34f8eaa8d647f17dbddb2d2cb36968af86bdc696 Mon Sep 17 00:00:00 2001 From: Dorin Date: Wed, 24 Jun 2026 15:40:57 +0300 Subject: [PATCH 4/4] update version num --- source/gameanalytics/GACommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gameanalytics/GACommon.h b/source/gameanalytics/GACommon.h index 37cdb79..225a7f6 100644 --- a/source/gameanalytics/GACommon.h +++ b/source/gameanalytics/GACommon.h @@ -85,7 +85,7 @@ namespace gameanalytics class GAState; } - constexpr const char* GA_VERSION_STR = "cpp 5.2.0"; + constexpr const char* GA_VERSION_STR = "cpp 5.3.1"; constexpr int MAX_CUSTOM_FIELDS_COUNT = 50; constexpr int MAX_CUSTOM_FIELDS_KEY_LENGTH = 64;