Exemplo n.º 1
0
        protected virtual void DrawBuilderInfo(IProjectBuilder builder)
        {
            if (builder.BuildApplication)
            {
                string productName     = builder.ProductName;
                string version         = builder.Version;
                string fullVersionCode = BuildPathUtils.GetVersionCodeLong(builder);

                string titleText = string.Format("{0} ver.{1} ({2})", productName, version, fullVersionCode);

                GUILayout.Label(
                    new GUIContent(titleText, GetBuildTargetIcon(builder)), EditorStyles.largeLabel);
            }
            else if (builder.BuildAssetBundle)
            {
                var assetBundles      = AssetDatabase.GetAllAssetBundleNames();
                int assetBundlesCount = assetBundles.Length;

                string titleText = string.Format("{0} AssetBundles", assetBundlesCount);

                GUILayout.Label(
                    new GUIContent(titleText, GetBuildTargetIcon(builder)), EditorStyles.largeLabel);
            }
        }
        public virtual void ApplyBuildVersionSettings(IProjectBuilder builder)
        {
            string versionCodeLong = BuildPathUtils.GetVersionCodeLong(builder);

            PlayerSettings.Android.bundleVersionCode = int.Parse(versionCodeLong);
        }
Exemplo n.º 3
0
        public virtual void ApplyBuildVersionSettings(IProjectBuilder builder)
        {
            string versionCodeLong = BuildPathUtils.GetVersionCodeLong(builder);

            PlayerSettings.iOS.buildNumber = versionCodeLong;
        }