Skip to content

Commit

Permalink
Merge pull request #16 from configcat/iOS-marketplace-submission
Browse files Browse the repository at this point in the history
Converted iOS compile error to Fatal log
  • Loading branch information
pasotee authored Feb 2, 2024
2 parents 399ba04 + a1a7e63 commit cb825b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ConfigCat.uplugin
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"FileVersion": 3,
"VersionName": "1.0.2",
"VersionName": "1.0.3",
"EngineVersion": "5.3",
"FriendlyName": "ConfigCat",
"Description": "ConfigCat is a hosted service for feature flag and configuration management. It lets you decouple feature releases from code deployments.",
Expand Down
8 changes: 4 additions & 4 deletions Source/ConfigCat/Private/ConfigCatSubsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#include "Wrapper/ConfigCatUser.h"
#include "Wrapper/ConfigCatValue.h"

#if PLATFORM_IOS && !FORCE_ANSI_ALLOCATOR
#error "ConfigCat for iOS currently requires "FORCE_ANSI_ALLOCATOR=1" inside your PROJECTNAME.Target.cs"
#endif

using namespace configcat;

namespace
Expand Down Expand Up @@ -283,6 +279,10 @@ bool UConfigCatSubsystem::IsOffline() const

void UConfigCatSubsystem::Initialize(FSubsystemCollectionBase& Collection)
{
#if PLATFORM_IOS && !FORCE_ANSI_ALLOCATOR
UE_LOG(LogConfigCat, Fatal, TEXT("ConfigCat for iOS currently requires 'FORCE_ANSI_ALLOCATOR=1' inside your PROJECTNAME.Target.cs"));
#endif

const UConfigCatSettings* ConfigCatSettings = GetDefault<UConfigCatSettings>();
if(!ConfigCatSettings || ConfigCatSettings->SdkKey.IsEmpty())
{
Expand Down

0 comments on commit cb825b3

Please sign in to comment.