0004-Port-to-tvOS.patch 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. From 4dd134c01bf6de8c040def7241472f007099c650 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Thu, 22 Oct 2015 21:30:16 +0200
  4. Subject: [PATCH 4/4] Port to tvOS
  5. ---
  6. src/LiveSDK.xcodeproj/project.pbxproj | 156 +++++++++++++++++++++
  7. .../Library/Internal/LiveConnectClientCore.h | 6 +
  8. .../Library/Internal/LiveConnectClientCore.m | 10 ++
  9. 3 files changed, 172 insertions(+)
  10. diff --git a/src/LiveSDK.xcodeproj/project.pbxproj b/src/LiveSDK.xcodeproj/project.pbxproj
  11. index c4772ce..29f0f9f 100755
  12. --- a/src/LiveSDK.xcodeproj/project.pbxproj
  13. +++ b/src/LiveSDK.xcodeproj/project.pbxproj
  14. @@ -97,6 +97,25 @@
  15. 52C47514149B38D1007E646F /* LiveOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6D7146C7550000973C1 /* LiveOperation.m */; };
  16. 52C47515149B38D1007E646F /* LiveOperationProgress.m in Sources */ = {isa = PBXBuildFile; fileRef = 52B4944C1487625C001EA573 /* LiveOperationProgress.m */; };
  17. 52C47518149B390F007E646F /* LiveAuthDialog.m in Sources */ = {isa = PBXBuildFile; fileRef = 5210CF951494445E00C525F3 /* LiveAuthDialog.m */; };
  18. + 7D0C34FD1BD967FB0058CD19 /* LiveAuthStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = 52B54AE514909F16001E1E17 /* LiveAuthStorage.m */; };
  19. + 7D0C35041BD967FB0058CD19 /* LiveDownloadOperationCore.m in Sources */ = {isa = PBXBuildFile; fileRef = 52B494521488BDF5001EA573 /* LiveDownloadOperationCore.m */; };
  20. + 7D0C35071BD967FB0058CD19 /* LiveOperationCore.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6EC146C7A39000973C1 /* LiveOperationCore.m */; };
  21. + 7D0C350A1BD967FB0058CD19 /* LiveUploadOperationCore.m in Sources */ = {isa = PBXBuildFile; fileRef = 52B4946E148B7D67001EA573 /* LiveUploadOperationCore.m */; };
  22. + 7D0C350D1BD968040058CD19 /* LiveConnectClient.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6D0146C7550000973C1 /* LiveConnectClient.m */; };
  23. + 7D0C350F1BD968040058CD19 /* LiveConnectSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6D2146C7550000973C1 /* LiveConnectSession.m */; };
  24. + 7D0C35121BD968040058CD19 /* LiveDownloadOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6D4146C7550000973C1 /* LiveDownloadOperation.m */; };
  25. + 7D0C35151BD968040058CD19 /* LiveOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6D7146C7550000973C1 /* LiveOperation.m */; };
  26. + 7D0C35181BD968040058CD19 /* LiveOperationProgress.m in Sources */ = {isa = PBXBuildFile; fileRef = 52B4944C1487625C001EA573 /* LiveOperationProgress.m */; };
  27. + 7D0C35231BD9684F0058CD19 /* JsonParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D0C351B1BD9684E0058CD19 /* JsonParser.m */; };
  28. + 7D0C35241BD9684F0058CD19 /* JsonWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D0C351C1BD9684E0058CD19 /* JsonWriter.m */; };
  29. + 7D0C35251BD9684F0058CD19 /* LiveApiHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D0C351D1BD9684E0058CD19 /* LiveApiHelper.m */; };
  30. + 7D0C35261BD9684F0058CD19 /* LiveAuthHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D0C351E1BD9684E0058CD19 /* LiveAuthHelper.m */; };
  31. + 7D0C35271BD9684F0058CD19 /* LiveConnectionHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D0C351F1BD9684E0058CD19 /* LiveConnectionHelper.m */; };
  32. + 7D0C35281BD9684F0058CD19 /* StreamReader.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D0C35201BD9684E0058CD19 /* StreamReader.m */; };
  33. + 7D0C35291BD9684F0058CD19 /* StringHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D0C35211BD9684E0058CD19 /* StringHelper.m */; };
  34. + 7D0C352A1BD9684F0058CD19 /* UrlHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7D0C35221BD9684F0058CD19 /* UrlHelper.m */; };
  35. + 7D0C352B1BD969510058CD19 /* LiveConnectClientCore.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6EF146C7AEE000973C1 /* LiveConnectClientCore.m */; };
  36. + 7D0C352C1BD9696F0058CD19 /* LiveAuthRefreshRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 52B54AEE14912DB8001E1E17 /* LiveAuthRefreshRequest.m */; };
  37. 7D2AC5B71B67723A00A8D9DD /* LiveOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6D7146C7550000973C1 /* LiveOperation.m */; };
  38. 7D2AC5B81B67723E00A8D9DD /* LiveDownloadOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6D4146C7550000973C1 /* LiveDownloadOperation.m */; };
  39. 7D2AC5B91B67724200A8D9DD /* LiveConnectSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 529DB6D2146C7550000973C1 /* LiveConnectSession.m */; };
  40. @@ -121,6 +140,15 @@
  41. /* End PBXBuildFile section */
  42. /* Begin PBXCopyFilesBuildPhase section */
  43. + 7D0C34EC1BD967470058CD19 /* CopyFiles */ = {
  44. + isa = PBXCopyFilesBuildPhase;
  45. + buildActionMask = 2147483647;
  46. + dstPath = "include/$(PRODUCT_NAME)";
  47. + dstSubfolderSpec = 16;
  48. + files = (
  49. + );
  50. + runOnlyForDeploymentPostprocessing = 0;
  51. + };
  52. 7D2AC5AC1B6771D000A8D9DD /* CopyFiles */ = {
  53. isa = PBXCopyFilesBuildPhase;
  54. buildActionMask = 2147483647;
  55. @@ -222,6 +250,15 @@
  56. 52F76E8F147A308500DA0A46 /* LiveApiHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LiveApiHelper.h; path = LiveSDK/Library/Internal/Helpers/LiveApiHelper.h; sourceTree = SOURCE_ROOT; };
  57. 52F76E90147A308500DA0A46 /* LiveApiHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LiveApiHelper.m; path = LiveSDK/Library/Internal/Helpers/LiveApiHelper.m; sourceTree = SOURCE_ROOT; };
  58. 52F76E94147A3FA500DA0A46 /* LiveAuthDialog_iPad.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = LiveAuthDialog_iPad.xib; path = Library/Internal/LiveAuthDialog_iPad.xib; sourceTree = "<group>"; };
  59. + 7D0C34EE1BD967470058CD19 /* libLiveTVSDK.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libLiveTVSDK.a; sourceTree = BUILT_PRODUCTS_DIR; };
  60. + 7D0C351B1BD9684E0058CD19 /* JsonParser.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = JsonParser.m; path = LiveSDK/Library/Internal/Helpers/JsonParser.m; sourceTree = "<group>"; };
  61. + 7D0C351C1BD9684E0058CD19 /* JsonWriter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = JsonWriter.m; path = LiveSDK/Library/Internal/Helpers/JsonWriter.m; sourceTree = "<group>"; };
  62. + 7D0C351D1BD9684E0058CD19 /* LiveApiHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = LiveApiHelper.m; path = LiveSDK/Library/Internal/Helpers/LiveApiHelper.m; sourceTree = "<group>"; };
  63. + 7D0C351E1BD9684E0058CD19 /* LiveAuthHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = LiveAuthHelper.m; path = LiveSDK/Library/Internal/Helpers/LiveAuthHelper.m; sourceTree = "<group>"; };
  64. + 7D0C351F1BD9684E0058CD19 /* LiveConnectionHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = LiveConnectionHelper.m; path = LiveSDK/Library/Internal/Helpers/LiveConnectionHelper.m; sourceTree = "<group>"; };
  65. + 7D0C35201BD9684E0058CD19 /* StreamReader.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = StreamReader.m; path = LiveSDK/Library/Internal/Helpers/StreamReader.m; sourceTree = "<group>"; };
  66. + 7D0C35211BD9684E0058CD19 /* StringHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = StringHelper.m; path = LiveSDK/Library/Internal/Helpers/StringHelper.m; sourceTree = "<group>"; };
  67. + 7D0C35221BD9684F0058CD19 /* UrlHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = UrlHelper.m; path = LiveSDK/Library/Internal/Helpers/UrlHelper.m; sourceTree = "<group>"; };
  68. 7D2AC5AE1B6771D000A8D9DD /* libLiveSDK-static.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libLiveSDK-static.a"; sourceTree = BUILT_PRODUCTS_DIR; };
  69. /* End PBXFileReference section */
  70. @@ -243,6 +280,13 @@
  71. );
  72. runOnlyForDeploymentPostprocessing = 0;
  73. };
  74. + 7D0C34EB1BD967470058CD19 /* Frameworks */ = {
  75. + isa = PBXFrameworksBuildPhase;
  76. + buildActionMask = 2147483647;
  77. + files = (
  78. + );
  79. + runOnlyForDeploymentPostprocessing = 0;
  80. + };
  81. 7D2AC5AB1B6771D000A8D9DD /* Frameworks */ = {
  82. isa = PBXFrameworksBuildPhase;
  83. buildActionMask = 2147483647;
  84. @@ -283,6 +327,14 @@
  85. 5297DDCE145E102B005B463E = {
  86. isa = PBXGroup;
  87. children = (
  88. + 7D0C351B1BD9684E0058CD19 /* JsonParser.m */,
  89. + 7D0C351C1BD9684E0058CD19 /* JsonWriter.m */,
  90. + 7D0C351D1BD9684E0058CD19 /* LiveApiHelper.m */,
  91. + 7D0C351E1BD9684E0058CD19 /* LiveAuthHelper.m */,
  92. + 7D0C351F1BD9684E0058CD19 /* LiveConnectionHelper.m */,
  93. + 7D0C35201BD9684E0058CD19 /* StreamReader.m */,
  94. + 7D0C35211BD9684E0058CD19 /* StringHelper.m */,
  95. + 7D0C35221BD9684F0058CD19 /* UrlHelper.m */,
  96. 526B94AD17692E5F000E29D2 /* Default-568h@2x.png */,
  97. 5297DDE3145E102B005B463E /* LiveSDK */,
  98. 5297DDFB145E102B005B463E /* UnitTests */,
  99. @@ -298,6 +350,7 @@
  100. 5297DDF4145E102B005B463E /* LiveSDKTests.octest */,
  101. 5285182E14727FE6009E8BD6 /* LiveSDK.framework */,
  102. 7D2AC5AE1B6771D000A8D9DD /* libLiveSDK-static.a */,
  103. + 7D0C34EE1BD967470058CD19 /* libLiveTVSDK.a */,
  104. );
  105. name = Products;
  106. sourceTree = "<group>";
  107. @@ -529,6 +582,23 @@
  108. productReference = 5297DDF4145E102B005B463E /* LiveSDKTests.octest */;
  109. productType = "com.apple.product-type.bundle.ocunit-test";
  110. };
  111. + 7D0C34ED1BD967470058CD19 /* LiveTVSDK */ = {
  112. + isa = PBXNativeTarget;
  113. + buildConfigurationList = 7D0C34F61BD967470058CD19 /* Build configuration list for PBXNativeTarget "LiveTVSDK" */;
  114. + buildPhases = (
  115. + 7D0C34EA1BD967470058CD19 /* Sources */,
  116. + 7D0C34EB1BD967470058CD19 /* Frameworks */,
  117. + 7D0C34EC1BD967470058CD19 /* CopyFiles */,
  118. + );
  119. + buildRules = (
  120. + );
  121. + dependencies = (
  122. + );
  123. + name = LiveTVSDK;
  124. + productName = LiveTVSDK;
  125. + productReference = 7D0C34EE1BD967470058CD19 /* libLiveTVSDK.a */;
  126. + productType = "com.apple.product-type.library.static";
  127. + };
  128. 7D2AC5AD1B6771D000A8D9DD /* LiveSDK-static */ = {
  129. isa = PBXNativeTarget;
  130. buildConfigurationList = 7D2AC5B61B6771D000A8D9DD /* Build configuration list for PBXNativeTarget "LiveSDK-static" */;
  131. @@ -555,6 +625,9 @@
  132. LastTestingUpgradeCheck = 0600;
  133. LastUpgradeCheck = 0600;
  134. TargetAttributes = {
  135. + 7D0C34ED1BD967470058CD19 = {
  136. + CreatedOnToolsVersion = 7.1;
  137. + };
  138. 7D2AC5AD1B6771D000A8D9DD = {
  139. CreatedOnToolsVersion = 7.0;
  140. };
  141. @@ -575,6 +648,7 @@
  142. 5297DDF3145E102B005B463E /* LiveSDKTests */,
  143. 5285182D14727FE6009E8BD6 /* LiveSDK */,
  144. 7D2AC5AD1B6771D000A8D9DD /* LiveSDK-static */,
  145. + 7D0C34ED1BD967470058CD19 /* LiveTVSDK */,
  146. );
  147. };
  148. /* End PBXProject section */
  149. @@ -682,6 +756,32 @@
  150. );
  151. runOnlyForDeploymentPostprocessing = 0;
  152. };
  153. + 7D0C34EA1BD967470058CD19 /* Sources */ = {
  154. + isa = PBXSourcesBuildPhase;
  155. + buildActionMask = 2147483647;
  156. + files = (
  157. + 7D0C35271BD9684F0058CD19 /* LiveConnectionHelper.m in Sources */,
  158. + 7D0C35251BD9684F0058CD19 /* LiveApiHelper.m in Sources */,
  159. + 7D0C352C1BD9696F0058CD19 /* LiveAuthRefreshRequest.m in Sources */,
  160. + 7D0C34FD1BD967FB0058CD19 /* LiveAuthStorage.m in Sources */,
  161. + 7D0C35041BD967FB0058CD19 /* LiveDownloadOperationCore.m in Sources */,
  162. + 7D0C350A1BD967FB0058CD19 /* LiveUploadOperationCore.m in Sources */,
  163. + 7D0C35281BD9684F0058CD19 /* StreamReader.m in Sources */,
  164. + 7D0C35181BD968040058CD19 /* LiveOperationProgress.m in Sources */,
  165. + 7D0C352B1BD969510058CD19 /* LiveConnectClientCore.m in Sources */,
  166. + 7D0C35071BD967FB0058CD19 /* LiveOperationCore.m in Sources */,
  167. + 7D0C35231BD9684F0058CD19 /* JsonParser.m in Sources */,
  168. + 7D0C35241BD9684F0058CD19 /* JsonWriter.m in Sources */,
  169. + 7D0C35261BD9684F0058CD19 /* LiveAuthHelper.m in Sources */,
  170. + 7D0C35291BD9684F0058CD19 /* StringHelper.m in Sources */,
  171. + 7D0C352A1BD9684F0058CD19 /* UrlHelper.m in Sources */,
  172. + 7D0C350D1BD968040058CD19 /* LiveConnectClient.m in Sources */,
  173. + 7D0C350F1BD968040058CD19 /* LiveConnectSession.m in Sources */,
  174. + 7D0C35121BD968040058CD19 /* LiveDownloadOperation.m in Sources */,
  175. + 7D0C35151BD968040058CD19 /* LiveOperation.m in Sources */,
  176. + );
  177. + runOnlyForDeploymentPostprocessing = 0;
  178. + };
  179. 7D2AC5AA1B6771D000A8D9DD /* Sources */ = {
  180. isa = PBXSourcesBuildPhase;
  181. buildActionMask = 2147483647;
  182. @@ -877,6 +977,53 @@
  183. };
  184. name = Release;
  185. };
  186. + 7D0C34F41BD967470058CD19 /* Debug */ = {
  187. + isa = XCBuildConfiguration;
  188. + buildSettings = {
  189. + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  190. + CLANG_CXX_LIBRARY = "libc++";
  191. + CLANG_ENABLE_MODULES = YES;
  192. + CLANG_ENABLE_OBJC_ARC = NO;
  193. + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  194. + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  195. + DEBUG_INFORMATION_FORMAT = dwarf;
  196. + ENABLE_TESTABILITY = YES;
  197. + GCC_NO_COMMON_BLOCKS = YES;
  198. + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  199. + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  200. + MTL_ENABLE_DEBUG_INFO = YES;
  201. + OTHER_LDFLAGS = "-ObjC";
  202. + PRODUCT_NAME = "$(TARGET_NAME)";
  203. + SDKROOT = appletvos;
  204. + SKIP_INSTALL = YES;
  205. + TVOS_DEPLOYMENT_TARGET = 9.0;
  206. + };
  207. + name = Debug;
  208. + };
  209. + 7D0C34F51BD967470058CD19 /* Release */ = {
  210. + isa = XCBuildConfiguration;
  211. + buildSettings = {
  212. + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  213. + CLANG_CXX_LIBRARY = "libc++";
  214. + CLANG_ENABLE_MODULES = YES;
  215. + CLANG_ENABLE_OBJC_ARC = NO;
  216. + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  217. + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  218. + COPY_PHASE_STRIP = NO;
  219. + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
  220. + ENABLE_NS_ASSERTIONS = NO;
  221. + GCC_NO_COMMON_BLOCKS = YES;
  222. + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  223. + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  224. + MTL_ENABLE_DEBUG_INFO = NO;
  225. + OTHER_LDFLAGS = "-ObjC";
  226. + PRODUCT_NAME = "$(TARGET_NAME)";
  227. + SDKROOT = appletvos;
  228. + SKIP_INSTALL = YES;
  229. + TVOS_DEPLOYMENT_TARGET = 9.0;
  230. + };
  231. + name = Release;
  232. + };
  233. 7D2AC5B41B6771D000A8D9DD /* Debug */ = {
  234. isa = XCBuildConfiguration;
  235. buildSettings = {
  236. @@ -966,6 +1113,14 @@
  237. defaultConfigurationIsVisible = 0;
  238. defaultConfigurationName = Release;
  239. };
  240. + 7D0C34F61BD967470058CD19 /* Build configuration list for PBXNativeTarget "LiveTVSDK" */ = {
  241. + isa = XCConfigurationList;
  242. + buildConfigurations = (
  243. + 7D0C34F41BD967470058CD19 /* Debug */,
  244. + 7D0C34F51BD967470058CD19 /* Release */,
  245. + );
  246. + defaultConfigurationIsVisible = 0;
  247. + };
  248. 7D2AC5B61B6771D000A8D9DD /* Build configuration list for PBXNativeTarget "LiveSDK-static" */ = {
  249. isa = XCConfigurationList;
  250. buildConfigurations = (
  251. @@ -973,6 +1128,7 @@
  252. 7D2AC5B51B6771D000A8D9DD /* Release */,
  253. );
  254. defaultConfigurationIsVisible = 0;
  255. + defaultConfigurationName = Release;
  256. };
  257. /* End XCConfigurationList section */
  258. };
  259. diff --git a/src/LiveSDK/Library/Internal/LiveConnectClientCore.h b/src/LiveSDK/Library/Internal/LiveConnectClientCore.h
  260. index 44c3fd2..72f2871 100644
  261. --- a/src/LiveSDK/Library/Internal/LiveConnectClientCore.h
  262. +++ b/src/LiveSDK/Library/Internal/LiveConnectClientCore.h
  263. @@ -26,7 +26,9 @@
  264. #import <Foundation/Foundation.h>
  265. #import "LiveAuthDelegate.h"
  266. +#if TARGET_OS_IOS
  267. #import "LiveAuthRequest.h"
  268. +#endif
  269. #import "LiveAuthRefreshRequest.h"
  270. #import "LiveAuthStorage.h"
  271. #import "LiveConnectSession.h"
  272. @@ -52,7 +54,9 @@
  273. @property (nonatomic) LiveConnectSessionStatus status;
  274. @property (nonatomic, retain) LiveConnectSession *session;
  275. +#if TARGET_OS_IOS
  276. @property (nonatomic, retain) LiveAuthRequest *authRequest;
  277. +#endif
  278. @property (nonatomic, retain) LiveAuthRefreshRequest *authRefreshRequest;
  279. @property (nonatomic, readonly) BOOL hasPendingUIRequest;
  280. @@ -61,10 +65,12 @@
  281. delegate:(id<LiveAuthDelegate>)delegate
  282. userState:(id)userState;
  283. +#if TARGET_OS_IOS
  284. - (void) login:(UIViewController *)currentViewController
  285. scopes:(NSArray *)scopes
  286. delegate:(id<LiveAuthDelegate>)delegate
  287. userState:(id)userState;
  288. +#endif
  289. - (void) logoutWithDelegate:(id<LiveAuthDelegate>)delegate
  290. userState:(id)userState;
  291. diff --git a/src/LiveSDK/Library/Internal/LiveConnectClientCore.m b/src/LiveSDK/Library/Internal/LiveConnectClientCore.m
  292. index 2c50c82..61d40c5 100644
  293. --- a/src/LiveSDK/Library/Internal/LiveConnectClientCore.m
  294. +++ b/src/LiveSDK/Library/Internal/LiveConnectClientCore.m
  295. @@ -38,7 +38,9 @@
  296. scopes = _scopes,
  297. session = _session,
  298. status = _status,
  299. +#if TARGET_OS_IOS
  300. authRequest = _authRequest,
  301. +#endif
  302. authRefreshRequest = _authRefreshRequest;
  303. @@ -77,7 +79,9 @@
  304. [_clientId release];
  305. [_scopes release];
  306. [_session release];
  307. +#if TARGET_OS_IOS
  308. [_authRequest release];
  309. +#endif
  310. [_storage release];
  311. [super dealloc];
  312. @@ -85,6 +89,7 @@
  313. #pragma mark Auth methods
  314. +#if TARGET_OS_IOS
  315. - (void) login:(UIViewController *)currentViewController
  316. scopes:(NSArray *)scopes
  317. delegate:(id<LiveAuthDelegate>)delegate
  318. @@ -109,10 +114,15 @@
  319. [authRequest execute];
  320. }
  321. +#endif
  322. - (BOOL) hasPendingUIRequest
  323. {
  324. +#if TARGET_OS_IOS
  325. return (self.authRequest != nil && self.authRequest.isUserInvolved);
  326. +#else
  327. + return NO;
  328. +#endif
  329. }
  330. - (void) logoutWithDelegate:(id<LiveAuthDelegate>)delegate
  331. --
  332. 2.6.1