C# Class Google.IOSResolver

Show file Open project: googlesamples/unity-jar-resolver Class Usage Examples

Public Properties

Property Type Description
TARGET_NAME string

Private Properties

Property Type Description
FindFile List
FindPodTool string
FindPodsWithBitcodeDisabled List
IOSResolver GooglePlayServices
InitializeTargetName void
InjectDependencies bool
Log void
OnPostProcessGenPodfile void
OnPostProcessInstallPods void
OnPostProcessPatchProject void
OnPostProcessUpdateProjectDeps void
ResolveUnityEditoriOSXcodeExtension System.Reflection.Assembly
TargetSdkNeedsUpdate List>.KeyValuePair
TargetSdkStringToVersion int
TargetSdkVersionToString string
UpdateTargetSdk bool

Public Methods

Method Description
AddPod ( string podName, string version = null, bool bitcodeEnabled = true, string minTargetSdk = null ) : void

Tells the app what pod dependencies are needed. This is called from a deps file in each API to aggregate all of the dependencies to automate the Podfile generation.

GetProjectPath ( string relativeTo ) : string

Get the generated xcode project path relative to the specified directory.

PodPresent ( string pod ) : bool

Determine whether a Pod is present in the list of dependencies.

RemapXcodeExtension ( ) : void
UpdateTargetSdk ( ) : bool

Update the target SDK if it's required.

Private Methods

Method Description
FindFile ( string searchPath, string fileToFind, int maxDepth, int currentDepth ) : List
FindPodTool ( ) : string

Find the "pod" tool.

FindPodsWithBitcodeDisabled ( ) : List

Determine whether any pods need bitcode disabled.

IOSResolver ( ) : GooglePlayServices

Initialize the module.

InitializeTargetName ( ) : void

Initialize the TARGET_NAME property.

InjectDependencies ( ) : bool

Whether to inject iOS dependencies in the Unity generated Xcode project.

Log ( string message, bool verbose = false, LogLevel level = LogLevel.Info ) : void

Log a message.

OnPostProcessGenPodfile ( BuildTarget buildTarget, string pathToBuiltProject ) : void
OnPostProcessInstallPods ( BuildTarget buildTarget, string pathToBuiltProject ) : void
OnPostProcessPatchProject ( BuildTarget buildTarget, string pathToBuiltProject ) : void
OnPostProcessUpdateProjectDeps ( BuildTarget buildTarget, string pathToBuiltProject ) : void
ResolveUnityEditoriOSXcodeExtension ( object sender, ResolveEventArgs args ) : Assembly
TargetSdkNeedsUpdate ( ) : List>.KeyValuePair

Determine whether the target SDK needs to be updated based upon pod dependencies.

TargetSdkStringToVersion ( string targetSdk ) : int

Convert a target SDK string into a value of the form (major * 10) + minor.

TargetSdkVersionToString ( int version ) : string

Convert an integer target SDK value into a string.

UpdateTargetSdk ( Pod pod, bool notifyUser = true ) : bool

Update the iOS target SDK if it's lower than the minimum SDK version specified by the pod.

Method Details

AddPod() public static method

Tells the app what pod dependencies are needed. This is called from a deps file in each API to aggregate all of the dependencies to automate the Podfile generation.
public static AddPod ( string podName, string version = null, bool bitcodeEnabled = true, string minTargetSdk = null ) : void
podName string pod path, for example "Google-Mobile-Ads-SDK" to /// be included
version string Version specification. See Pod.version.
bitcodeEnabled bool Whether the pod was compiled with bitcode /// enabled. If this is set to false on a pod, the entire project will /// be configured with bitcode disabled.
minTargetSdk string Minimum SDK revision required by this /// pod.
return void

GetProjectPath() public static method

Get the generated xcode project path relative to the specified directory.
public static GetProjectPath ( string relativeTo ) : string
relativeTo string Path the project is relative to.
return string

PodPresent() public static method

Determine whether a Pod is present in the list of dependencies.
public static PodPresent ( string pod ) : bool
pod string
return bool

RemapXcodeExtension() public static method

public static RemapXcodeExtension ( ) : void
return void

UpdateTargetSdk() public static method

Update the target SDK if it's required.
public static UpdateTargetSdk ( ) : bool
return bool

Property Details

TARGET_NAME public static property

Main executable target of the Xcode project generated by Unity.
public static string TARGET_NAME
return string