public virtual bool Initialize(BuildToolLogger buildToolLogger)
        {
            _isGradleBuild = EditorUserBuildSettings.androidBuildSystem == AndroidBuildSystem.Gradle;
            // Cache minSdkVersion because PlayerSettings.Android is only accessible from the main thread.
            _minSdkVersion = PlayerSettings.Android.minSdkVersion;
            _packageName   = PlayerSettings.GetApplicationIdentifier(BuildTargetGroup.Android);

            _assetPackManifestTransformers = AssetPackManifestTransformerRegistry.Registry.ConstructInstances();
            var initializedManifestTransformers = true;

            foreach (var transformer in _assetPackManifestTransformers)
            {
                initializedManifestTransformers &= transformer.Initialize(buildToolLogger);
            }

            return(initializedManifestTransformers &&
                   _androidAssetPackagingTool.Initialize(buildToolLogger) &&
                   _androidBuilder.Initialize(buildToolLogger) &&
                   _apkSigner.Initialize(buildToolLogger) &&
                   _bundletool.Initialize(buildToolLogger) &&
                   _releaseBuildHelper.Initialize(buildToolLogger) &&
                   _zipUtils.Initialize(buildToolLogger));
        }
Example #2
0
 public virtual bool Initialize(BuildToolLogger buildToolLogger)
 {
     _buildToolLogger = buildToolLogger;
     return(_androidSdkPlatform.Initialize(buildToolLogger) && _apkSigner.Initialize(buildToolLogger));
 }