C# 클래스 GooglePlayServices.DefaultResolver

Default resolver base class.
This class contains the default implementation of the standard methods used to resolve the play-services dependencies. The intention is that common, stable methods are implemented here, and subsequent versions of the resolver would extend this class to modify the behavior.
상속: IResolver
파일 보기 프로젝트 열기: googlesamples/unity-jar-resolver 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ExtractAar bool
FindJavaTool string
MakeVersionNumber int
ProcessAar string

공개 메소드들

메소드 설명
AndroidPackageInstallationEnabled ( ) : bool

Returns true if Android package installation is enabled.

AutomaticResolutionEnabled ( ) : bool

Returns true if automatic resolution is enabled.

CreateTemporaryDirectory ( ) : string

Create a temporary directory.

DoResolution ( PlayServicesSupport svcSupport, string destinationDirectory, PlayServicesSupport handleOverwriteConfirmation ) : void

Compatibility method for synchronous implementations of DoResolution().

DoResolution ( PlayServicesSupport svcSupport, string destinationDirectory, PlayServicesSupport handleOverwriteConfirmation, System resolutionComplete ) : void

Does the resolution of the play-services aars.

OnBundleId ( string bundleId ) : string[]

Called during Update to allow the resolver to check the bundle ID of the application to see whether resolution should be triggered again.

SetAutomaticResolutionEnabled ( bool flag ) : void

Enables automatic resolution.

ShouldAutoResolve ( string importedAssets, string deletedAssets, string movedAssets, string movedFromAssetPaths ) : bool

Checks based on the asset changes, if resolution should occur.

The resolution only happens if a script file (.cs, or .js) was imported or if an Android plugin was deleted. This allows for changes to assets that do not affect the dependencies to happen without processing. This also avoids an infinite loop when a version of a dependency is deleted during resolution.

ShowSettingsDialog ( ) : void

Shows the settings dialog.

Version ( ) : int

Version of the resolver - 1.0.0

비공개 메소드들

메소드 설명
ExtractAar ( string aarFile, string extractFilenames, string outputDirectory ) : bool

Extract an AAR to the specified directory.

FindJavaTool ( string javaTool ) : string

Find a Java tool.

MakeVersionNumber ( int maj, int min, int pt ) : int

Makes the version number.

This combines the major/minor/point version components into an integer. If multiple resolvers are registered, then the greatest version is used.

ProcessAar ( string dir, string aarFile ) : string

Explodes a single aar file. This is done by calling the JDK "jar" command, then moving the classes.jar file.

메소드 상세

AndroidPackageInstallationEnabled() 공개 메소드

Returns true if Android package installation is enabled.
public AndroidPackageInstallationEnabled ( ) : bool
리턴 bool

AutomaticResolutionEnabled() 공개 메소드

Returns true if automatic resolution is enabled.
public AutomaticResolutionEnabled ( ) : bool
리턴 bool

CreateTemporaryDirectory() 공개 정적인 메소드

Create a temporary directory.
public static CreateTemporaryDirectory ( ) : string
리턴 string

DoResolution() 공개 추상적인 메소드

Compatibility method for synchronous implementations of DoResolution().
public abstract DoResolution ( PlayServicesSupport svcSupport, string destinationDirectory, PlayServicesSupport handleOverwriteConfirmation ) : void
svcSupport Google.JarResolver.PlayServicesSupport Svc support.
destinationDirectory string Destination directory.
handleOverwriteConfirmation Google.JarResolver.PlayServicesSupport Handle overwrite confirmation.
리턴 void

DoResolution() 공개 메소드

Does the resolution of the play-services aars.
public DoResolution ( PlayServicesSupport svcSupport, string destinationDirectory, PlayServicesSupport handleOverwriteConfirmation, System resolutionComplete ) : void
svcSupport Google.JarResolver.PlayServicesSupport Svc support.
destinationDirectory string Destination directory.
handleOverwriteConfirmation Google.JarResolver.PlayServicesSupport Handle overwrite confirmation.
resolutionComplete System Delegate called when resolution is complete.
리턴 void

OnBundleId() 공개 메소드

Called during Update to allow the resolver to check the bundle ID of the application to see whether resolution should be triggered again.
public OnBundleId ( string bundleId ) : string[]
bundleId string
리턴 string[]

SetAutomaticResolutionEnabled() 공개 메소드

Enables automatic resolution.
public SetAutomaticResolutionEnabled ( bool flag ) : void
flag bool If set to true flag.
리턴 void

ShouldAutoResolve() 공개 메소드

Checks based on the asset changes, if resolution should occur.
The resolution only happens if a script file (.cs, or .js) was imported or if an Android plugin was deleted. This allows for changes to assets that do not affect the dependencies to happen without processing. This also avoids an infinite loop when a version of a dependency is deleted during resolution.
public ShouldAutoResolve ( string importedAssets, string deletedAssets, string movedAssets, string movedFromAssetPaths ) : bool
importedAssets string Imported assets.
deletedAssets string Deleted assets.
movedAssets string Moved assets.
movedFromAssetPaths string Moved from asset paths.
리턴 bool

ShowSettingsDialog() 공개 메소드

Shows the settings dialog.
public ShowSettingsDialog ( ) : void
리턴 void

Version() 공개 메소드

Version of the resolver - 1.0.0
public Version ( ) : int
리턴 int