private void Awake()
        {
            LockReload();

            _appCache = Config.Instance().Cache;

            _apiKey = ApiKey.LoadCached();

            if (_apiKey == null)
            {
                var submitKey = new Views.SubmitKey();

                submitKey.OnKeyResolve += OnKeyResolved;

                _currentView = submitKey;
            }
            else
            {
                _api = new ApiUtils(_apiKey);
                string selectedAppSecret = _appCache.AppByPlatform(EditorUserBuildSettings.activeBuildTarget);

                if (string.IsNullOrEmpty(selectedAppSecret))
                {
                    BeginSelectAppView();
                }
                else
                {
                    _selectedApp = _api.GetAppInfo(selectedAppSecret);
                    BeginSelectAppView();
                }
            }
            messagesView.OnChangeApp += BeginBuildView;
        }
        private void OnKeyResolved(ApiKey key)
        {
            _apiKey = key;

            ApiKey.Cache(_apiKey);

            _api = new ApiUtils(_apiKey);

            _selectedApp = _api.GetAppInfo(_appCache.AppByPlatform(EditorUserBuildSettings.activeBuildTarget));

            BeginSelectAppView();
        }