Пример #1
0
 public static void UploadIpa()
 {
     CloudBuildToHockeyApp.StartUploading(tempIPAfile);
 }
Пример #2
0
        void OnGUI()
        {
            GUILayout.Label("Unity Cloud to Hockeyapp Status", EditorStyles.boldLabel);
            GUILayout.Label("Last iOS uploaded: " + LastIosVersionUploaded);
            GUILayout.Label("Last Android uploaded: " + LastAndroidVersionUploaded);
//            GUILayout.Label("iOS version on UCB: " + LastIosVersionSeen);
//            GUILayout.Label("Android version on UCB: " + LastAndroidVersionSeen);

            EditorGUILayout.Space();
            EditorGUILayout.Space();
            GUILayout.Label("Unity Cloud Build Settings", EditorStyles.boldLabel);
            CloudBuildInfo.CloudBuildApiKey     = EditorGUILayout.TextField("CloudBuildApiKey", CloudBuildInfo.CloudBuildApiKey);
            CloudBuildInfo.OrganizationId       = EditorGUILayout.TextField("OrganizationId", CloudBuildInfo.OrganizationId.ToLower());
            CloudBuildInfo.ProjectId            = EditorGUILayout.TextField("ProjectId", CloudBuildInfo.ProjectId.ToLower());
            CloudBuildInfo.iOSBuildTargetId     = EditorGUILayout.TextField("iOS Build Id", CloudBuildInfo.iOSBuildTargetId.ToLower());
            CloudBuildInfo.AndroidBuildTargetId = EditorGUILayout.TextField("Android Build Id", CloudBuildInfo.AndroidBuildTargetId.ToLower());

            EditorGUILayout.Space();
            EditorGUILayout.Space();
            GUILayout.Label("Hockeyapp Settings", EditorStyles.boldLabel);
            HockeyAppInfo.HockeyappAppID_Android = EditorGUILayout.TextField("AppID Android", HockeyAppInfo.HockeyappAppID_Android);
            HockeyAppInfo.HockeyappAppID_iOS     = EditorGUILayout.TextField("AppID iOS", HockeyAppInfo.HockeyappAppID_iOS);
            HockeyAppInfo.HockeyappApiKey        = EditorGUILayout.TextField("HockeyappApiKey", HockeyAppInfo.HockeyappApiKey);
            status = (HockeyAppStatus)EditorGUILayout.EnumPopup("Status", status);
            //HockeyAppStrategyMethod = (HockeyAppStrategy)EditorGUILayout.EnumPopup("Strategy", HockeyAppStrategyMethod);
            HockeyAppNotifyMethod = (HockeyAppNotify)EditorGUILayout.EnumPopup("NotifyMethod", HockeyAppNotifyMethod);

            EditorGUILayout.Space();
            EditorGUILayout.Space();
            GUILayout.Label("Release notes", EditorStyles.boldLabel);
            AutoReleaseNotes = EditorGUILayout.Toggle("Automatic release notes", AutoReleaseNotes);
            EditorGUI.BeginDisabledGroup(AutoReleaseNotes);
            if (!AutoReleaseNotes)
            {
                ReleaseNotes = EditorGUILayout.TextField("Release Notes", ReleaseNotes, GUILayout.Width(Window.position.width * 0.99f), GUILayout.Height(100));
                note_type    = (HockeyAppNoteType)EditorGUILayout.EnumPopup("note_type", note_type);
            }
            EditorGUI.EndDisabledGroup();

//            EditorGUILayout.Space();
//            EditorGUILayout.Space();
//            if (!Running)
//            {
//                if (GUILayout.Button("Sync", GUILayout.Width(Window.position.width * 0.99f)))
//                {
//                    CloudBuildToHockeyApp.GetLatestVersion(CloudBuildInfo.iOSBuildTargetId);
//                }
//            }
//            else
//            {
//                GUI.enabled = false;
//                if (GUILayout.Button("Sync", GUILayout.Width(Window.position.width * 0.99f)))
//                {
//                }
//            }

            EditorGUILayout.Space();
            EditorGUILayout.Space();

            if (!Running)
            {
                if (GUILayout.Button("Transfer iOS", GUILayout.Width(Window.position.width * 0.99f)))
                {
                    CloudBuildToHockeyApp.RunTransfer(CloudBuildInfo.iOSBuildTargetId);
                }
            }
            else
            {
                GUI.enabled = false;
                if (GUILayout.Button("Transfer iOS", GUILayout.Width(Window.position.width * 0.99f)))
                {
                }
            }

            if (!Running)
            {
                if (GUILayout.Button("Transfer Android", GUILayout.Width(Window.position.width * 0.99f)))
                {
                    CloudBuildToHockeyApp.RunTransfer(CloudBuildInfo.AndroidBuildTargetId);
                }
            }
            else
            {
                GUI.enabled = false;
                if (GUILayout.Button("Transfer Android", GUILayout.Width(Window.position.width * 0.99f)))
                {
                }
            }

            if (Running)
            {
                EditorUtility.DisplayProgressBar(ProgressBarTitle, ProgressDescription, Progress);
            }
            else
            {
                EditorUtility.ClearProgressBar();
            }
        }
Пример #3
0
 public static void UploadAPk()
 {
     CloudBuildToHockeyApp.StartUploading(tempAPKfile);
 }