コード例 #1
0
        public string Transform(XDocument document)
        {
            if (!_initialized)
            {
                throw new BuildToolNotInitializedException(this);
            }

            if (!_isInstant)
            {
                return(null);
            }

            if (PlayInstantBuildConfig.PlayGamesEnabled)
            {
                return
                    ("\n\nAsset packs aren't compatible with full Instant play games. As a workaround, deselect the " +
                     "\"Full Instant play game\" checkbox and contact the Instant play team via " +
                     "http://g.co/play/instant");
            }

            var error = AndroidManifestHelper.ConvertAssetPackManifestToInstant(document);

            if (!string.IsNullOrEmpty(error))
            {
                return("Asset Module AndroidManifest could not be converted to instant: " + error);
            }

            return(null);
        }
        public string Transform(XDocument document)
        {
            if (!_initialized)
            {
                throw new BuildToolNotInitializedException(this);
            }

            if (!_isInstant)
            {
                return(null);
            }

            var error = AndroidManifestHelper.ConvertAssetPackManifestToInstant(document);

            if (!string.IsNullOrEmpty(error))
            {
                return("Asset Module AndroidManifest could not be converted to instant: " + error);
            }

            return(null);
        }