Commit graph

12 commits

Author SHA1 Message Date
Denis Lebedev
4e71d2c9d4 Swiftify rest of the code 2016-10-21 22:59:33 +01:00
Andrew Naylor
ce51cea8c6 Improve error messages 2016-09-25 22:13:23 +01:00
Andrew Naylor
94f3cea428 Improve upgrade routine
- Select upgrades directly
2016-09-25 21:24:09 +01:00
Andrew Naylor
634dbd87dd Initial port to Swift 3 2016-09-17 13:58:38 +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
3ccfd93f80 Remove the need for casting 2015-09-21 00:00:05 +01:00
Andrew Naylor
4bbd964c2e Update to Swift 2 2015-09-14 09:51:09 +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
4ebd0ebb17 Collect together the AppStore interfaces 2015-08-22 02:48:00 +08:00
Renamed from mas-cli/Downloader.swift (Browse further)