Files
UnrealEngineUWP/Engine/Source/Runtime/Android/AndroidRuntimeSettings/Private/AndroidRuntimeSettings.cpp
Robert Jones 36cf4f99af UE-17404 - AdMob multiple ad units
- Changed code to support multiple ad units and the selecting thereof via blueprints including aditional nodes

#codereview chris.babcock
#jira ue-17404

[CL 2641722 by Robert Jones in Main branch]
2015-08-03 05:25:13 -04:00

43 lines
991 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "AndroidRuntimeSettingsPrivatePCH.h"
#include "AndroidRuntimeSettings.h"
UAndroidRuntimeSettings::UAndroidRuntimeSettings(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
, Orientation(EAndroidScreenOrientation::Landscape)
, bEnableGooglePlaySupport(false)
{
}
#if WITH_EDITOR
void UAndroidRuntimeSettings::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
// Ensure that at least one architecture is supported
if (!bBuildForArmV7 && !bBuildForX86 && !bBuildForX8664)// && !bBuildForArm64)
{
bBuildForArmV7 = true;
}
// Ensure that at least one GPU architecture is supported
if (!bBuildForES2 && !bBuildForES31)
{
bBuildForES2 = true;
}
}
void UAndroidRuntimeSettings::MigrateData()
{
if (!AdMobAdUnitID.IsEmpty())
{
AdMobAdUnitIDs.Add(AdMobAdUnitID);
AdMobAdUnitID.Empty();
}
}
#endif