Skip to content

Commit e56827b

Browse files
committed
Merge pull request #161 from linitix/develop
Add guard to unsupported features of iOS 8 extensions
2 parents d1b9eda + 5a55e90 commit e56827b

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

OAuth2Client.xcodeproj/project.pbxproj

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585

8686
/* Begin PBXFileReference section */
8787
824D5A6D123F68A8001177D5 /* NXOAuth2ClientDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NXOAuth2ClientDelegate.h; sourceTree = "<group>"; };
88-
83DD991B6049465CB61E135B /* Pods-OAuth2ClientTests.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OAuth2ClientTests.xcconfig"; path = "Pods/Pods-OAuth2ClientTests.xcconfig"; sourceTree = "<group>"; };
8988
9404FAC1123E3A6900397DD1 /* NXOAuth2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NXOAuth2.h; sourceTree = "<group>"; };
9089
9429B3A812267A3100D31807 /* NXOAuth2Client.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NXOAuth2Client.h; sourceTree = "<group>"; };
9190
9429B3A912267A3100D31807 /* NXOAuth2Client.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NXOAuth2Client.m; sourceTree = "<group>"; };
@@ -116,9 +115,11 @@
116115
99D8A7F713852C6E00E3073C /* NSData+NXOAuth2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSData+NXOAuth2.h"; sourceTree = "<group>"; };
117116
99D8A7FE13852D3600E3073C /* NSData+NXOAuth2.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSData+NXOAuth2.m"; sourceTree = "<group>"; };
118117
99F08DE9138BE8CE002A5401 /* NXOAuth2TrustDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NXOAuth2TrustDelegate.h; sourceTree = "<group>"; };
118+
A584AA53216FADEE87202521 /* Pods-OAuth2ClientTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OAuth2ClientTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-OAuth2ClientTests/Pods-OAuth2ClientTests.release.xcconfig"; sourceTree = "<group>"; };
119119
AA747D9E0F9514B9006C5449 /* OAuth2Client_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OAuth2Client_Prefix.pch; sourceTree = "<group>"; };
120120
AACBBE490F95108600F1A2B1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
121121
B9E2089E9E7941B7AF3D27AA /* libPods-OAuth2ClientTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-OAuth2ClientTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
122+
CCCB476CC96A52415E9D44D3 /* Pods-OAuth2ClientTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OAuth2ClientTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-OAuth2ClientTests/Pods-OAuth2ClientTests.debug.xcconfig"; sourceTree = "<group>"; };
122123
D2AAC07E0554694100DB518D /* libOAuth2Client.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libOAuth2Client.a; sourceTree = BUILT_PRODUCTS_DIR; };
123124
F6525B4313D593C900ACAE8F /* NXOAuth2Account+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NXOAuth2Account+Private.h"; sourceTree = SOURCE_ROOT; };
124125
F65713CC13CC87FD00C8A33A /* NXOAuth2AccountStore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NXOAuth2AccountStore.h; sourceTree = "<group>"; };
@@ -182,7 +183,7 @@
182183
0867D69AFE84028FC02AAC07 /* Frameworks */,
183184
034768DFFF38A50411DB9C8B /* Products */,
184185
942FFCDE12315E2E00E6C65E /* Resources */,
185-
83DD991B6049465CB61E135B /* Pods-OAuth2ClientTests.xcconfig */,
186+
B061851D30896FF145B69FB5 /* Pods */,
186187
);
187188
name = OAuth2Client;
188189
sourceTree = "<group>";
@@ -276,6 +277,15 @@
276277
path = Tests;
277278
sourceTree = "<group>";
278279
};
280+
B061851D30896FF145B69FB5 /* Pods */ = {
281+
isa = PBXGroup;
282+
children = (
283+
CCCB476CC96A52415E9D44D3 /* Pods-OAuth2ClientTests.debug.xcconfig */,
284+
A584AA53216FADEE87202521 /* Pods-OAuth2ClientTests.release.xcconfig */,
285+
);
286+
name = Pods;
287+
sourceTree = "<group>";
288+
};
279289
F6E1A11313D7128100B6DAC3 /* Private */ = {
280290
isa = PBXGroup;
281291
children = (
@@ -490,7 +500,7 @@
490500
);
491501
runOnlyForDeploymentPostprocessing = 0;
492502
shellPath = /bin/sh;
493-
shellScript = "\"${SRCROOT}/Pods/Pods-OAuth2ClientTests-resources.sh\"\n";
503+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-OAuth2ClientTests/Pods-OAuth2ClientTests-resources.sh\"\n";
494504
showEnvVarsInLog = 0;
495505
};
496506
/* End PBXShellScriptBuildPhase section */
@@ -682,7 +692,7 @@
682692
};
683693
94B6CE6C19C1D0A300AA859B /* Debug */ = {
684694
isa = XCBuildConfiguration;
685-
baseConfigurationReference = 83DD991B6049465CB61E135B /* Pods-OAuth2ClientTests.xcconfig */;
695+
baseConfigurationReference = CCCB476CC96A52415E9D44D3 /* Pods-OAuth2ClientTests.debug.xcconfig */;
686696
buildSettings = {
687697
ALWAYS_SEARCH_USER_PATHS = NO;
688698
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
@@ -728,7 +738,7 @@
728738
};
729739
94B6CE6D19C1D0A300AA859B /* Release */ = {
730740
isa = XCBuildConfiguration;
731-
baseConfigurationReference = 83DD991B6049465CB61E135B /* Pods-OAuth2ClientTests.xcconfig */;
741+
baseConfigurationReference = A584AA53216FADEE87202521 /* Pods-OAuth2ClientTests.release.xcconfig */;
732742
buildSettings = {
733743
ALWAYS_SEARCH_USER_PATHS = NO;
734744
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";

Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PODS:
22
- Expecta (0.3.1)
33
- OCMock (3.1.1)
44
- OHHTTPStubs (3.1.5):
5-
- OHHTTPStubs/Core
5+
- OHHTTPStubs/Core (= 3.1.5)
66
- OHHTTPStubs/Core (3.1.5)
77
- Specta (0.2.1)
88

@@ -18,4 +18,4 @@ SPEC CHECKSUMS:
1818
OHHTTPStubs: c1e362552b71b81e1deb7a80f44c51585b946c43
1919
Specta: 9141310f46b1f68b676650ff2854e1ed0b74163a
2020

21-
COCOAPODS: 0.33.1
21+
COCOAPODS: 0.36.1

Sources/OAuth2Client/NXOAuth2AccountStore.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ - (NSString *)accountTypeOfPendingOAuthClient:(NXOAuth2Client *)oauthClient;
466466

467467
- (void)oauthClientNeedsAuthentication:(NXOAuth2Client *)client;
468468
{
469+
#if !defined(NX_APP_EXTENSIONS)
469470
NSString *accountType = [self accountTypeOfPendingOAuthClient:client];
470471

471472
NSDictionary *configuration;
@@ -481,6 +482,7 @@ - (void)oauthClientNeedsAuthentication:(NXOAuth2Client *)client;
481482
#else
482483
[[NSWorkspace sharedWorkspace] openURL:preparedURL];
483484
#endif
485+
#endif
484486
}
485487

486488
- (void)oauthClientDidGetAccessToken:(NXOAuth2Client *)client;

0 commit comments

Comments
 (0)