72 Commits

Author SHA1 Message Date
Cameron Gutman
1c1f22e047 Update the database on each server info poll 2016-01-21 12:09:49 -05:00
Cameron Gutman
fe616d86c5 Reduce usage of DataManager 2015-12-01 20:56:08 -08:00
Cameron Gutman
5ea92a7b48 Stop using CoreData-backed objects in any non-DataManager code 2015-12-01 20:31:24 -08:00
Cameron Gutman
2f31f93bf8 Add support for GFE 2.8 2015-11-11 18:24:36 -08:00
Cameron Gutman
b495246f34 Only mark a PC offline if server info failed after 3 straight tries 2015-11-11 18:14:04 -08:00
Cameron Gutman
82293a08b6 Increase the request timeout to 7 seconds to give a bit more time for slow app lists to come in 2015-11-11 17:53:13 -08:00
Diego Waxemberg
06289ac4d2 No longer use IDFA, now generate UUID and persist in Core Data. Bumped version to 1.0.0 2015-10-31 23:04:32 -07:00
Cameron Gutman
b6445295a7 Use a temporary app object and database lock to avoid saving while the database is not in a consistent state 2015-09-30 20:34:52 -07:00
Cameron Gutman
920cbadc91 Add a workaround/hack to fix duplicating machines 2015-09-29 00:04:40 -07:00
Cameron Gutman
6dbb938368 Speed up app icon load time by 2 seconds by only waiting if it failed 2015-07-12 00:43:20 -07:00
Diego Waxemberg
9c6b718be2 fixed issue with apps duplicating in app list 2015-07-11 18:47:05 -07:00
Cameron Gutman
13e894e9a3 Refactor app list to be non-static and sorted in alphabetical order 2015-07-11 01:28:52 -07:00
Cameron Gutman
38776a01e4 Only create an app if an app ID was found 2015-07-11 00:10:13 -07:00
Diego Waxemberg
37f25c1f97 fixed some bugs with saving app list to database 2015-07-10 22:19:25 -07:00
Diego Waxemberg
642085ca32 App lists are now persisted in the database 2015-07-10 21:22:57 -07:00
Cameron Gutman
b01d13976b Improve speed and reliability of host detection 2015-07-10 12:18:09 -07:00
Cameron Gutman
e5f962dc3f Perform stricter status checks during pairing to fix a crash when paired=3 2015-07-10 11:43:47 -07:00
Cameron Gutman
935fb6ffe3 Fix streaming over the external IP address when discovered via mDNS 2015-07-10 00:28:51 -07:00
Cameron Gutman
73364127d2 Fix pairing with GFE 2.4.5.57+ 2015-07-08 23:03:23 -07:00
Cameron Gutman
84a986bc88 Switch from deprecated NSURLConnection to NSURLSession 2015-07-08 22:35:25 -07:00
Cameron Gutman
f13051aa31 Prepare for HTTP requests 2015-07-08 21:31:47 -07:00
Cameron Gutman
6bb559303b Remove executeRequest from HttpManager. It has some show-stopping bugs, like leaking semaphore counts (since it never waited) and being generally thread-unsafe. Implementing it in a way that would be asynchronous and thread-safe is a non-trivial task, so I've opted to remove it and change callers to use executeRequestSynchronously. 2015-07-08 21:26:01 -07:00
Cameron Gutman
f57fa678f6 Escaping the URL strings is not required because no reserved characters are ever sent. Plus it's deprecated in iOS 9. 2015-06-23 21:58:32 -07:00
Diego Waxemberg
f90becb2f6 no longer try to parse responses when a network error occurs 2015-05-29 00:15:48 -07:00
Diego Waxemberg
2972d40d92 added limit to app asset request 2015-05-28 23:37:55 -07:00
Diego Waxemberg
8d3401f962 Changed name from Limelight to Moonlight due to C&D from Limelight
Networks, Inc.
2015-05-12 21:48:30 -04:00
Cameron Gutman
fab8d604d2 Check UUID length is non-zero before adding a new host 2015-04-06 00:27:36 -04:00
Cameron Gutman
7767ae497b Revert "Added a hack to de-duplicate hosts and some more checks when adding a host to minimize the chances for dupes"
This reverts commit fd9ee45daccb3d119218ba3dfb0a6b7f59e4121c.
2015-04-06 00:22:51 -04:00
Diego Waxemberg
796ab2bf90 should now save hosts discovered through mdns 2015-04-05 21:18:22 -07:00
Diego Waxemberg
f43c74d59b trim whitespace from server info responses 2015-04-05 20:30:13 -07:00
Diego Waxemberg
fd9ee45dac Added a hack to de-duplicate hosts and some more checks when adding a host to minimize the chances for dupes 2015-04-05 20:08:21 -07:00
Diego Waxemberg
ea231e16b6 changed log level for connection errors 2015-02-24 00:03:02 -05:00
Diego Waxemberg
e3dd4e7238 Created logger with log levels 2015-02-10 21:26:55 -05:00
Diego Waxemberg
e7dc22bb15 Host discovery is much better now 2015-02-10 17:40:49 -05:00
Cameron Gutman
d4b5ec5764 Only retry 5 times to fetch box art 2015-02-10 16:13:06 -05:00
Diego Waxemberg
0a767767fb Fixed crash if the applist did not contain certain info about the app 2015-02-10 15:48:29 -05:00
Diego Waxemberg
1313429f65 Fix static analysis warning 2015-02-01 21:09:21 -05:00
Diego Waxemberg
337e5e3d9d fixed host online state and simplified some code 2015-02-01 18:33:36 -05:00
Diego Waxemberg
879f304a79 Refactored http communications to be more abstract and OOP 2015-02-01 04:26:47 -05:00
Diego Waxemberg
14f30349a3 improved app asset management and retrying to acquire 2015-01-31 20:10:14 -05:00
Diego Waxemberg
8e721a9c6a Fixed pairing bug 2015-01-31 16:13:25 -05:00
Diego Waxemberg
e3e95c29f6 Created http response class and added error checking 2015-01-31 01:57:23 -05:00
Cameron Gutman
3e85f13e08 Fix crash on bad server response 2015-01-09 23:21:42 -05:00
Diego Waxemberg
9e054973c8 Fixed a concurrent modification error in caching app images 2015-01-09 15:17:19 -05:00
Cameron Gutman
abb0d5b8ba Fix memory leak in failure path 2015-01-09 00:34:42 -05:00
Diego Waxemberg
60cba0399d now parse server info into host object all at once 2015-01-08 23:58:04 -05:00
Diego Waxemberg
b7fcce08d6 potentially fixed an intermittent heap corruption 2015-01-08 23:44:31 -05:00
Diego Waxemberg
ec39c27498 now cache app images and reuse them when connecting to the same host 2015-01-08 22:18:26 -05:00
Diego Waxemberg
ccd8b3332e now request app image on multiple threads 2015-01-08 21:36:29 -05:00
Diego Waxemberg
55e9d2daeb removed some unnecessary logging 2015-01-08 18:04:02 -05:00