Skip to content

Commit c2aefd5

Browse files
authored
fix: require 5.2 for android/ios attributes (#107)
1 parent 5405d09 commit c2aefd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/BugSplatRuntime/Private/BugSplatRuntime.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ TMap<FString, FString> FBugSplatRuntimeModule::GetCrashAttributes() const
4444
{
4545
TMap<FString, FString> Attributes;
4646

47+
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION >= 2
4748
// Add engine information
4849
Attributes.Add(TEXT("EngineVersion"), FEngineVersion::Current().ToString());
4950
Attributes.Add(TEXT("EngineBranch"), FEngineVersion::Current().GetBranch());
@@ -205,6 +206,9 @@ TMap<FString, FString> FBugSplatRuntimeModule::GetCrashAttributes() const
205206
LogFilePath = FPaths::ConvertRelativePathToFull(LogFilePath);
206207
Attributes.Add(TEXT("LogFilePath"), LogFilePath);
207208
#endif
209+
#else
210+
UE_LOG(LogBugsplat, Warning, TEXT("Crash attributes are only supported in Unreal Engine 5.2 or greater. Current engine version: %d.%d"), ENGINE_MAJOR_VERSION, ENGINE_MINOR_VERSION);
211+
#endif
208212

209213
return Attributes;
210214
}

0 commit comments

Comments
 (0)