Skip to content

Commit ca747c8

Browse files
committed
Fix compilation errors on shipping builds
1 parent 2a4ab6d commit ca747c8

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.0.3
4+
5+
### Fixes
6+
7+
- Compilation errors on shipping builds
8+
39
## 1.0.2
410

511
### Fixes

Source/BetaHubBugReporter/BetaHubBugReporter.Build.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ public BetaHubBugReporter(ReadOnlyTargetRules Target) : base(Target)
4242
"SlateCore",
4343
"UMG",
4444
"InputCore",
45-
"Settings",
46-
"Http",
45+
"HTTP",
4746
"Json",
4847
"JsonUtilities",
4948
"RenderCore",

Source/BetaHubBugReporter/Private/BetaHubBugReporter.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
// Copyright Epic Games, Inc. All Rights Reserved.
22

33
#include "BetaHubBugReporter.h"
4-
#include "BH_PluginSettings.h"
4+
5+
#if WITH_EDITOR
56
#include "ISettingsModule.h"
67
#include "ISettingsSection.h"
8+
#endif
9+
10+
#include "BH_PluginSettings.h"
711
#include "Engine/Engine.h"
812

913
#define LOCTEXT_NAMESPACE "FBetaHubBugReporterModule"
1014

1115
void FBetaHubBugReporterModule::StartupModule()
1216
{
17+
#if WITH_EDITOR
1318
// This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module
1419
if (ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings"))
1520
{
@@ -19,18 +24,20 @@ void FBetaHubBugReporterModule::StartupModule()
1924
GetMutableDefault<UBH_PluginSettings>()
2025
);
2126
}
27+
#endif
2228
}
2329

2430
void FBetaHubBugReporterModule::ShutdownModule()
2531
{
2632
// This function may be called during shutdown to clean up your module. For modules that support dynamic reloading,
2733
// we call this function before unloading the module.
28-
UE_LOG(LogTemp, Warning, TEXT("Goodbye, BetaHubBugReporter Plugin 2!"));
2934

35+
#if WITH_EDITOR
3036
if (ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings"))
3137
{
3238
SettingsModule->UnregisterSettings("Project", "Plugins", "BetaHub Bug Reporter");
3339
}
40+
#endif
3441
}
3542

3643
#undef LOCTEXT_NAMESPACE

0 commit comments

Comments
 (0)