Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port the deploy code to the latest version
Major changes: - the interface is already promisified, so we don't need to wrap the calls in promises - some of the functions return slightly different values, supporting them now - the updatecheck returns a build number that we display for greater debuggability - Need to add the ionic hosts back to the CSP Testing done: - Ran the app with these changes - Clicked on the link at https://e-mission.eecs.berkeley.edu/#/client_setup?new_client=urap2017emotion - UI was updated to the emotion UI After the update, we had the following errors: ``` [Error] Failed to load resource: the server responded with a status of 404 () (others.js, line 0) [Error] Ionic Deploy: Unable to check for updates – TypeError: deploy.init is not a function. (In 'deploy.init(config, resolve, reject)', 'deploy.init' is undefined) — updatecheck.js:38 TypeError: deploy.init is not a function. (In 'deploy.init(config, resolve, reject)', 'deploy.init' is undefined) — updatecheck.js:38(anonymous function) — updatecheck.js:38Promise(anonymous function) — updatecheck.js:33(anonymous function) — updatecheck.js:163(anonymous function) — updatecheck.js:204processQueue — ionic.bundle.js:29127(anonymous function) — ionic.bundle.js:29143$digest — ionic.bundle.js:30211(anonymous function) — ionic.bundle.js:30434completeOutstandingRequest — ionic.bundle.js:19194(anonymous function) — ionic.bundle.js:19470 (anonymous function) (cordova.js:1540) (anonymous function) (updatecheck.js:199) promiseReactionJob [Error] Refused to load unsafe:ionic://localhost/img/neutralbear.gif because it does not appear in the img-src directive of the Content Security Policy. ``` These are because the channel has not yet been updated to use the new UI changes with the new updatecheck code and the `ionic:` whitelist. Some of these (like `others.js`) may also just be obsolete.
- Loading branch information