Files
UnrealEngineUWP/Engine/Source/Developer/Android/AndroidPlatformEditor/Private/AndroidTargetSettingsCustomization.h
Ryan Gerleve 122667ec99 #UE4
- Add Google Play support on Android
- Add editor settings for Google Play - enabled/disabled, and the app id for the games service
- Hack in Google Play leaderboards, including blueprint support, proper online subsystem implementation will come in the future
- These leaderboards work in TappyChicken

#codereview josh.adams, jj.hoesing, michael.noland

[CL 2050175 by Ryan Gerleve in Main branch]
2014-04-23 19:40:10 -04:00

77 lines
2.1 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "EditorStyle.h"
#include "PropertyEditorModule.h"
#include "AndroidRuntimeSettings.h"
//////////////////////////////////////////////////////////////////////////
// FAndroidTargetSettingsCustomization
class FAndroidTargetSettingsCustomization : public IDetailCustomization
{
public:
// Makes a new instance of this detail layout class for a specific detail view requesting it
static TSharedRef<IDetailCustomization> MakeInstance();
// IDetailCustomization interface
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailLayout) OVERRIDE;
// End of IDetailCustomization interface
private:
FAndroidTargetSettingsCustomization();
void BuildAppManifestSection(IDetailLayoutBuilder& DetailLayout);
void BuildIconSection(IDetailLayoutBuilder& DetailLayout);
// Navigates to the manifest in the explorer or finder
FReply OpenManifestFolder();
// Copies the setup files for the platform into the project
void CopySetupFilesIntoProject();
// Copies the strings.xml file for the platform into the project
void CopyGooglePlayAppIDFileIntoProject();
// Called when the orientation is modified
void OnOrientationModified();
// Called when the app id is modified
void OnAppIDModified();
private:
const FString AndroidRelativePath;
const FString EngineAndroidPath;
const FString GameAndroidPath;
const FString EngineManifestPath;
const FString GameManifestPath;
const FString EngineGooglePlayAppIDPath;
const FString GameGooglePlayAppIDPath;
const FString EngineSigningConfigPath;
const FString GameSigningConfigPath;
const FString EngineProguardPath;
const FString GameProguardPath;
const FString EngineProjectPropertiesPath;
const FString GameProjectPropertiesPath;
TArray<struct FPlatformIconInfo> IconNames;
// Is the manifest writable?
TAttribute<bool> SetupForPlatformAttribute;
// Is the App ID string writable?
TAttribute<bool> SetupForGooglePlayAttribute;
// Converts an orientation enum to the associated string value
static FString OrientationToString(const EAndroidScreenOrientation::Type Orientation);
IDetailLayoutBuilder* SavedLayoutBuilder;
};