Commit graph

20 commits

Author SHA1 Message Date
Andrew Naylor
634dbd87dd Initial port to Swift 3 2016-09-17 13:58:38 +01:00
Andrew Naylor
997aa80bf9 Merge pull request #42 from argon/feature/install-multiple-apps-at-once
Install/Upgrade multiple apps
2016-09-15 10:19:08 +01:00
Andrew Naylor
e7750c4637 Fix downloading free apps 2016-09-15 01:40:55 +01:00
Dmitry Rodionov
319300e7a1 Fix #28: install multiple apps at once
The fix was pretty straightforward except for one interesting caveat:
since we add a new download observer every time we start downloading a
new purchase, we also have to remove it when the download finishes.
Otherwise there will be multiple observers reporting download progress
for the same purchase (i.e. user will see duplicate output)
2016-09-06 20:37:12 +07:00
Andrew Naylor
1a4af7a897 Ensure we don't blow up
If we're going to depend on the dispatch_group we should ensure we enter
before it could possibly be exited. In reality it should never happy as
`purchase.perform` does an XPC call but there's no harm in being
cautious.
2016-02-21 22:14:14 +00:00
Andrew Naylor
490c73c6ac Use a guard instead to make it tidier 2016-02-14 01:34:32 +00:00
Andrew Naylor
d80ad6e866 Add sign in functionality 2016-02-14 01:34:27 +00:00
Andrew Naylor
3e8f48ad32 Ensure the clearLine method works properly 2015-09-21 00:47:16 +01:00
Andrew Naylor
3ccfd93f80 Remove the need for casting 2015-09-21 00:00:05 +01:00
Andrew Naylor
111383fdb2 Don't show progress until we have a state 2015-09-20 23:10:46 +01:00
Andrew Naylor
de1d921ba3 Ensure we flush when the line is cleared 2015-09-20 23:03:06 +01:00
Andrew Naylor
44da5a3638 Switch to a guard 2015-09-20 22:58:58 +01:00
Andrew Naylor
dc935e0d15 Ensure we only display terminal codes in a tty 2015-09-20 19:10:43 +01:00
Andrew Naylor
f380bca601 Clear the line in case the progress bar was shown 2015-09-20 19:10:13 +01:00
Andrew Naylor
4bbd964c2e Update to Swift 2 2015-09-14 09:51:09 +01:00
Andrew Naylor
69828f6404 Write the error to stderr for ease-of-use 2015-09-04 00:38:54 +01:00
Andrew Naylor
9205b94155 Add a little more order to the download process 2015-09-04 00:13:47 +01:00
Andrew Naylor
41ceab2c3a Begin to refactor the download process 2015-08-25 02:45:54 +08:00
Andrew Naylor
83291f2fc6 Guard against not being signed in with an error 2015-08-25 02:45:27 +08:00
Andrew Naylor
4ebd0ebb17 Collect together the AppStore interfaces 2015-08-22 02:48:00 +08:00