2022-02-25 13:24:48 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "AndroidFileServerRuntimeSettings.generated.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Implements the settings for the AndroidFileServer plugin.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
UENUM()
|
|
|
|
|
namespace EAFSConnectionType
|
|
|
|
|
{
|
2022-12-06 19:43:59 -05:00
|
|
|
enum Type : int
|
2022-02-25 13:24:48 -05:00
|
|
|
{
|
|
|
|
|
USBOnly = 0 UMETA(DisplayName = "USB only"),
|
|
|
|
|
NetworkOnly = 1 UMETA(DisplayName = "Network only"),
|
|
|
|
|
Combined = 2 UMETA(DisplayName = "USB and Network combined"),
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UCLASS(Config = Engine, DefaultConfig)
|
|
|
|
|
class UAndroidFileServerRuntimeSettings : public UObject
|
|
|
|
|
{
|
|
|
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
|
|
2022-04-20 14:49:43 -04:00
|
|
|
// Enable Android FileServer for packaged builds and quick launch
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Packaging, Meta = (DisplayName = "Use AndroidFileServer"))
|
2022-02-25 13:24:48 -05:00
|
|
|
bool bEnablePlugin;
|
|
|
|
|
|
|
|
|
|
// Allow FileServer connection using network
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Packaging, Meta = (EditCondition = "bEnablePlugin"))
|
|
|
|
|
bool bAllowNetworkConnection;
|
|
|
|
|
|
|
|
|
|
// Optional security token required to start FileServer (leave empty to disable)
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Packaging, Meta = (EditCondition = "bEnablePlugin"))
|
|
|
|
|
FString SecurityToken;
|
|
|
|
|
|
|
|
|
|
// Embed FileServer in Shipping builds
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Packaging, Meta=(EditCondition = "bEnablePlugin"))
|
|
|
|
|
bool bIncludeInShipping;
|
|
|
|
|
|
|
|
|
|
// Allow FileServer to be started in Shipping builds with UnrealAndroidFileTool
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Packaging, Meta = (EditCondition = "bEnablePlugin && bIncludeInShipping"))
|
|
|
|
|
bool bAllowExternalStartInShipping;
|
|
|
|
|
|
|
|
|
|
// Compile standalone AFS project
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Packaging, Meta=(EditCondition = "bEnablePlugin"))
|
|
|
|
|
bool bCompileAFSProject;
|
|
|
|
|
|
|
|
|
|
// Enable compression during data transfer
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Deployment, Meta=(EditCondition = "bEnablePlugin"))
|
|
|
|
|
bool bUseCompression;
|
|
|
|
|
|
|
|
|
|
// Log files transferred
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Deployment, Meta=(EditCondition = "bEnablePlugin"))
|
|
|
|
|
bool bLogFiles;
|
|
|
|
|
|
|
|
|
|
// Report transfer rate statistics
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Deployment, Meta=(EditCondition = "bEnablePlugin"))
|
|
|
|
|
bool bReportStats;
|
|
|
|
|
|
|
|
|
|
// How to connect to file server (USB cable, Network, or combined)
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Connection, Meta=(EditCondition = "bEnablePlugin"))
|
|
|
|
|
TEnumAsByte<EAFSConnectionType::Type> ConnectionType;
|
|
|
|
|
|
|
|
|
|
// Use manual IP address instead of automatic query from device (only for single device deploys!)
|
2022-04-20 14:49:43 -04:00
|
|
|
UPROPERTY(EditAnywhere, config, Category = Connection, Meta=(EditCondition = "ConnectionType == EAFSConnectionType::NetworkOnly || ConnectionType == EAFSConnectionType::Combined"), Meta=(DisplayName = "Use Manual IP Address?"))
|
2022-02-25 13:24:48 -05:00
|
|
|
bool bUseManualIPAddress;
|
|
|
|
|
|
|
|
|
|
// IP address of device to use
|
|
|
|
|
UPROPERTY(EditAnywhere, config, Category = Connection, Meta=(EditCondition = "bUseManualIPAddress"), Meta=(DisplayName = "Manual IP Address"))
|
|
|
|
|
FString ManualIPAddress;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
// UObject interface
|
|
|
|
|
virtual void PostInitProperties() override;
|
|
|
|
|
};
|
2023-01-13 01:54:01 -05:00
|
|
|
|
|
|
|
|
#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_2
|
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "Engine/EngineTypes.h"
|
|
|
|
|
#endif
|