Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Commit 42744f9

Browse files
committed
Added Test Target
1 parent 2aa4ba7 commit 42744f9

File tree

12 files changed

+451
-852
lines changed

12 files changed

+451
-852
lines changed

AFOAuth2Manager.xcodeproj/project.pbxproj

Lines changed: 146 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,69 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
2934F28E1C15D9BE008B8AE4 /* AFOAuthCredential.h in Headers */ = {isa = PBXBuildFile; fileRef = 2934F28C1C15D9BE008B8AE4 /* AFOAuthCredential.h */; };
10+
2934F28E1C15D9BE008B8AE4 /* AFOAuthCredential.h in Headers */ = {isa = PBXBuildFile; fileRef = 2934F28C1C15D9BE008B8AE4 /* AFOAuthCredential.h */; settings = {ATTRIBUTES = (Public, ); }; };
1111
2934F28F1C15D9BE008B8AE4 /* AFOAuthCredential.m in Sources */ = {isa = PBXBuildFile; fileRef = 2934F28D1C15D9BE008B8AE4 /* AFOAuthCredential.m */; };
12-
29490FD51BE11C5100893BE1 /* AFHTTPRequestSerializer+OAuth2.h in Headers */ = {isa = PBXBuildFile; fileRef = 29490FD11BE11C5100893BE1 /* AFHTTPRequestSerializer+OAuth2.h */; };
13-
29490FD71BE11C5100893BE1 /* AFOAuth2Manager.h in Headers */ = {isa = PBXBuildFile; fileRef = 29490FD31BE11C5100893BE1 /* AFOAuth2Manager.h */; };
12+
2934F2D01C15F374008B8AE4 /* AFOAuth2Manager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29490FC51BE11BD700893BE1 /* AFOAuth2Manager.framework */; };
13+
2934F2D71C15F3C6008B8AE4 /* AFNetworking.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 29490FDC1BE11CBB00893BE1 /* AFNetworking.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14+
2934F2D81C15F3CD008B8AE4 /* AFNetworking.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29490FDC1BE11CBB00893BE1 /* AFNetworking.framework */; };
15+
2934F2DA1C15F44E008B8AE4 /* AFOAuthManagerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2934F2D91C15F44E008B8AE4 /* AFOAuthManagerTests.m */; };
16+
2934F2DC1C15FE8C008B8AE4 /* AFOAuthCredentialTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 2934F2DB1C15FE8C008B8AE4 /* AFOAuthCredentialTests.m */; };
17+
29490FD51BE11C5100893BE1 /* AFHTTPRequestSerializer+OAuth2.h in Headers */ = {isa = PBXBuildFile; fileRef = 29490FD11BE11C5100893BE1 /* AFHTTPRequestSerializer+OAuth2.h */; settings = {ATTRIBUTES = (Public, ); }; };
1418
29490FDD1BE11CBB00893BE1 /* AFNetworking.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29490FDC1BE11CBB00893BE1 /* AFNetworking.framework */; };
15-
29490FE01BE11D1000893BE1 /* AFOAuth2SessionManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 29490FDE1BE11D1000893BE1 /* AFOAuth2SessionManager.h */; };
16-
29490FE11BE11D1000893BE1 /* AFOAuth2SessionManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 29490FDF1BE11D1000893BE1 /* AFOAuth2SessionManager.m */; };
19+
29490FE01BE11D1000893BE1 /* AFOAuth2Manager.h in Headers */ = {isa = PBXBuildFile; fileRef = 29490FDE1BE11D1000893BE1 /* AFOAuth2Manager.h */; settings = {ATTRIBUTES = (Public, ); }; };
20+
29490FE11BE11D1000893BE1 /* AFOAuth2Manager.m in Sources */ = {isa = PBXBuildFile; fileRef = 29490FDF1BE11D1000893BE1 /* AFOAuth2Manager.m */; };
1721
/* End PBXBuildFile section */
1822

23+
/* Begin PBXContainerItemProxy section */
24+
2934F2D11C15F374008B8AE4 /* PBXContainerItemProxy */ = {
25+
isa = PBXContainerItemProxy;
26+
containerPortal = 29490FBC1BE11BD700893BE1 /* Project object */;
27+
proxyType = 1;
28+
remoteGlobalIDString = 29490FC41BE11BD700893BE1;
29+
remoteInfo = "AFOAuth2Manager iOS";
30+
};
31+
/* End PBXContainerItemProxy section */
32+
33+
/* Begin PBXCopyFilesBuildPhase section */
34+
2934F2D61C15F3BD008B8AE4 /* CopyFiles */ = {
35+
isa = PBXCopyFilesBuildPhase;
36+
buildActionMask = 2147483647;
37+
dstPath = "";
38+
dstSubfolderSpec = 10;
39+
files = (
40+
2934F2D71C15F3C6008B8AE4 /* AFNetworking.framework in CopyFiles */,
41+
);
42+
runOnlyForDeploymentPostprocessing = 0;
43+
};
44+
/* End PBXCopyFilesBuildPhase section */
45+
1946
/* Begin PBXFileReference section */
2047
2934F28C1C15D9BE008B8AE4 /* AFOAuthCredential.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFOAuthCredential.h; sourceTree = "<group>"; };
2148
2934F28D1C15D9BE008B8AE4 /* AFOAuthCredential.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFOAuthCredential.m; sourceTree = "<group>"; };
49+
2934F2CB1C15F373008B8AE4 /* AFOAuth2Manager iOS Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "AFOAuth2Manager iOS Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
50+
2934F2CF1C15F374008B8AE4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
51+
2934F2D91C15F44E008B8AE4 /* AFOAuthManagerTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFOAuthManagerTests.m; sourceTree = "<group>"; };
52+
2934F2DB1C15FE8C008B8AE4 /* AFOAuthCredentialTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFOAuthCredentialTests.m; sourceTree = "<group>"; };
2253
29490FC51BE11BD700893BE1 /* AFOAuth2Manager.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AFOAuth2Manager.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2354
29490FD11BE11C5100893BE1 /* AFHTTPRequestSerializer+OAuth2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "AFHTTPRequestSerializer+OAuth2.h"; sourceTree = "<group>"; };
2455
29490FD21BE11C5100893BE1 /* AFHTTPRequestSerializer+OAuth2.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "AFHTTPRequestSerializer+OAuth2.m"; sourceTree = "<group>"; };
25-
29490FD31BE11C5100893BE1 /* AFOAuth2Manager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFOAuth2Manager.h; sourceTree = "<group>"; };
26-
29490FD41BE11C5100893BE1 /* AFOAuth2Manager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFOAuth2Manager.m; sourceTree = "<group>"; };
2756
29490FDA1BE11C5C00893BE1 /* AFOAuth2Manager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AFOAuth2Manager.h; sourceTree = "<group>"; };
2857
29490FDB1BE11C5C00893BE1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2958
29490FDC1BE11CBB00893BE1 /* AFNetworking.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AFNetworking.framework; path = Carthage/Build/iOS/AFNetworking.framework; sourceTree = "<group>"; };
30-
29490FDE1BE11D1000893BE1 /* AFOAuth2SessionManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFOAuth2SessionManager.h; sourceTree = "<group>"; };
31-
29490FDF1BE11D1000893BE1 /* AFOAuth2SessionManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFOAuth2SessionManager.m; sourceTree = "<group>"; };
59+
29490FDE1BE11D1000893BE1 /* AFOAuth2Manager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AFOAuth2Manager.h; sourceTree = "<group>"; };
60+
29490FDF1BE11D1000893BE1 /* AFOAuth2Manager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AFOAuth2Manager.m; sourceTree = "<group>"; };
3261
/* End PBXFileReference section */
3362

3463
/* Begin PBXFrameworksBuildPhase section */
64+
2934F2C81C15F373008B8AE4 /* Frameworks */ = {
65+
isa = PBXFrameworksBuildPhase;
66+
buildActionMask = 2147483647;
67+
files = (
68+
2934F2D01C15F374008B8AE4 /* AFOAuth2Manager.framework in Frameworks */,
69+
2934F2D81C15F3CD008B8AE4 /* AFNetworking.framework in Frameworks */,
70+
);
71+
runOnlyForDeploymentPostprocessing = 0;
72+
};
3573
29490FC11BE11BD700893BE1 /* Frameworks */ = {
3674
isa = PBXFrameworksBuildPhase;
3775
buildActionMask = 2147483647;
@@ -43,12 +81,23 @@
4381
/* End PBXFrameworksBuildPhase section */
4482

4583
/* Begin PBXGroup section */
84+
2934F2CC1C15F374008B8AE4 /* Tests */ = {
85+
isa = PBXGroup;
86+
children = (
87+
2934F2CF1C15F374008B8AE4 /* Info.plist */,
88+
2934F2D91C15F44E008B8AE4 /* AFOAuthManagerTests.m */,
89+
2934F2DB1C15FE8C008B8AE4 /* AFOAuthCredentialTests.m */,
90+
);
91+
path = Tests;
92+
sourceTree = "<group>";
93+
};
4694
29490FBB1BE11BD700893BE1 = {
4795
isa = PBXGroup;
4896
children = (
4997
29490FDC1BE11CBB00893BE1 /* AFNetworking.framework */,
5098
29490FD01BE11C5100893BE1 /* AFOAuth2Manager */,
5199
29490FD91BE11C5C00893BE1 /* Resources */,
100+
2934F2CC1C15F374008B8AE4 /* Tests */,
52101
29490FC61BE11BD700893BE1 /* Products */,
53102
);
54103
sourceTree = "<group>";
@@ -57,6 +106,7 @@
57106
isa = PBXGroup;
58107
children = (
59108
29490FC51BE11BD700893BE1 /* AFOAuth2Manager.framework */,
109+
2934F2CB1C15F373008B8AE4 /* AFOAuth2Manager iOS Tests.xctest */,
60110
);
61111
name = Products;
62112
sourceTree = "<group>";
@@ -66,10 +116,8 @@
66116
children = (
67117
29490FD11BE11C5100893BE1 /* AFHTTPRequestSerializer+OAuth2.h */,
68118
29490FD21BE11C5100893BE1 /* AFHTTPRequestSerializer+OAuth2.m */,
69-
29490FD31BE11C5100893BE1 /* AFOAuth2Manager.h */,
70-
29490FD41BE11C5100893BE1 /* AFOAuth2Manager.m */,
71-
29490FDE1BE11D1000893BE1 /* AFOAuth2SessionManager.h */,
72-
29490FDF1BE11D1000893BE1 /* AFOAuth2SessionManager.m */,
119+
29490FDE1BE11D1000893BE1 /* AFOAuth2Manager.h */,
120+
29490FDF1BE11D1000893BE1 /* AFOAuth2Manager.m */,
73121
2934F28C1C15D9BE008B8AE4 /* AFOAuthCredential.h */,
74122
2934F28D1C15D9BE008B8AE4 /* AFOAuthCredential.m */,
75123
);
@@ -93,15 +141,33 @@
93141
buildActionMask = 2147483647;
94142
files = (
95143
2934F28E1C15D9BE008B8AE4 /* AFOAuthCredential.h in Headers */,
96-
29490FE01BE11D1000893BE1 /* AFOAuth2SessionManager.h in Headers */,
97-
29490FD71BE11C5100893BE1 /* AFOAuth2Manager.h in Headers */,
144+
29490FE01BE11D1000893BE1 /* AFOAuth2Manager.h in Headers */,
98145
29490FD51BE11C5100893BE1 /* AFHTTPRequestSerializer+OAuth2.h in Headers */,
99146
);
100147
runOnlyForDeploymentPostprocessing = 0;
101148
};
102149
/* End PBXHeadersBuildPhase section */
103150

104151
/* Begin PBXNativeTarget section */
152+
2934F2CA1C15F373008B8AE4 /* AFOAuth2Manager iOS Tests */ = {
153+
isa = PBXNativeTarget;
154+
buildConfigurationList = 2934F2D51C15F374008B8AE4 /* Build configuration list for PBXNativeTarget "AFOAuth2Manager iOS Tests" */;
155+
buildPhases = (
156+
2934F2C71C15F373008B8AE4 /* Sources */,
157+
2934F2C81C15F373008B8AE4 /* Frameworks */,
158+
2934F2C91C15F373008B8AE4 /* Resources */,
159+
2934F2D61C15F3BD008B8AE4 /* CopyFiles */,
160+
);
161+
buildRules = (
162+
);
163+
dependencies = (
164+
2934F2D21C15F374008B8AE4 /* PBXTargetDependency */,
165+
);
166+
name = "AFOAuth2Manager iOS Tests";
167+
productName = "AFOAuth2Manager iOS Tests";
168+
productReference = 2934F2CB1C15F373008B8AE4 /* AFOAuth2Manager iOS Tests.xctest */;
169+
productType = "com.apple.product-type.bundle.unit-test";
170+
};
105171
29490FC41BE11BD700893BE1 /* AFOAuth2Manager iOS */ = {
106172
isa = PBXNativeTarget;
107173
buildConfigurationList = 29490FCD1BE11BD700893BE1 /* Build configuration list for PBXNativeTarget "AFOAuth2Manager iOS" */;
@@ -129,6 +195,9 @@
129195
LastUpgradeCheck = 0710;
130196
ORGANIZATIONNAME = Alamofire;
131197
TargetAttributes = {
198+
2934F2CA1C15F373008B8AE4 = {
199+
CreatedOnToolsVersion = 7.1.1;
200+
};
132201
29490FC41BE11BD700893BE1 = {
133202
CreatedOnToolsVersion = 7.1;
134203
};
@@ -147,11 +216,19 @@
147216
projectRoot = "";
148217
targets = (
149218
29490FC41BE11BD700893BE1 /* AFOAuth2Manager iOS */,
219+
2934F2CA1C15F373008B8AE4 /* AFOAuth2Manager iOS Tests */,
150220
);
151221
};
152222
/* End PBXProject section */
153223

154224
/* Begin PBXResourcesBuildPhase section */
225+
2934F2C91C15F373008B8AE4 /* Resources */ = {
226+
isa = PBXResourcesBuildPhase;
227+
buildActionMask = 2147483647;
228+
files = (
229+
);
230+
runOnlyForDeploymentPostprocessing = 0;
231+
};
155232
29490FC31BE11BD700893BE1 /* Resources */ = {
156233
isa = PBXResourcesBuildPhase;
157234
buildActionMask = 2147483647;
@@ -162,18 +239,63 @@
162239
/* End PBXResourcesBuildPhase section */
163240

164241
/* Begin PBXSourcesBuildPhase section */
242+
2934F2C71C15F373008B8AE4 /* Sources */ = {
243+
isa = PBXSourcesBuildPhase;
244+
buildActionMask = 2147483647;
245+
files = (
246+
2934F2DA1C15F44E008B8AE4 /* AFOAuthManagerTests.m in Sources */,
247+
2934F2DC1C15FE8C008B8AE4 /* AFOAuthCredentialTests.m in Sources */,
248+
);
249+
runOnlyForDeploymentPostprocessing = 0;
250+
};
165251
29490FC01BE11BD700893BE1 /* Sources */ = {
166252
isa = PBXSourcesBuildPhase;
167253
buildActionMask = 2147483647;
168254
files = (
169-
29490FE11BE11D1000893BE1 /* AFOAuth2SessionManager.m in Sources */,
255+
29490FE11BE11D1000893BE1 /* AFOAuth2Manager.m in Sources */,
170256
2934F28F1C15D9BE008B8AE4 /* AFOAuthCredential.m in Sources */,
171257
);
172258
runOnlyForDeploymentPostprocessing = 0;
173259
};
174260
/* End PBXSourcesBuildPhase section */
175261

262+
/* Begin PBXTargetDependency section */
263+
2934F2D21C15F374008B8AE4 /* PBXTargetDependency */ = {
264+
isa = PBXTargetDependency;
265+
target = 29490FC41BE11BD700893BE1 /* AFOAuth2Manager iOS */;
266+
targetProxy = 2934F2D11C15F374008B8AE4 /* PBXContainerItemProxy */;
267+
};
268+
/* End PBXTargetDependency section */
269+
176270
/* Begin XCBuildConfiguration section */
271+
2934F2D31C15F374008B8AE4 /* Debug */ = {
272+
isa = XCBuildConfiguration;
273+
buildSettings = {
274+
FRAMEWORK_SEARCH_PATHS = (
275+
"$(inherited)",
276+
"$(PROJECT_DIR)/Carthage/Build/iOS",
277+
);
278+
INFOPLIST_FILE = Tests/Info.plist;
279+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
280+
PRODUCT_BUNDLE_IDENTIFIER = "com.alamofire.AFOAuth2Manager-iOS-Tests";
281+
PRODUCT_NAME = "$(TARGET_NAME)";
282+
};
283+
name = Debug;
284+
};
285+
2934F2D41C15F374008B8AE4 /* Release */ = {
286+
isa = XCBuildConfiguration;
287+
buildSettings = {
288+
FRAMEWORK_SEARCH_PATHS = (
289+
"$(inherited)",
290+
"$(PROJECT_DIR)/Carthage/Build/iOS",
291+
);
292+
INFOPLIST_FILE = Tests/Info.plist;
293+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
294+
PRODUCT_BUNDLE_IDENTIFIER = "com.alamofire.AFOAuth2Manager-iOS-Tests";
295+
PRODUCT_NAME = "$(TARGET_NAME)";
296+
};
297+
name = Release;
298+
};
177299
29490FCB1BE11BD700893BE1 /* Debug */ = {
178300
isa = XCBuildConfiguration;
179301
buildSettings = {
@@ -305,6 +427,14 @@
305427
/* End XCBuildConfiguration section */
306428

307429
/* Begin XCConfigurationList section */
430+
2934F2D51C15F374008B8AE4 /* Build configuration list for PBXNativeTarget "AFOAuth2Manager iOS Tests" */ = {
431+
isa = XCConfigurationList;
432+
buildConfigurations = (
433+
2934F2D31C15F374008B8AE4 /* Debug */,
434+
2934F2D41C15F374008B8AE4 /* Release */,
435+
);
436+
defaultConfigurationIsVisible = 0;
437+
};
308438
29490FBF1BE11BD700893BE1 /* Build configuration list for PBXProject "AFOAuth2Manager" */ = {
309439
isa = XCConfigurationList;
310440
buildConfigurations = (

AFOAuth2Manager.xcodeproj/xcshareddata/xcschemes/AFOAuth2Manager iOS.xcscheme

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,29 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
shouldUseLaunchSchemeArgsEnv = "YES">
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
codeCoverageEnabled = "YES">
3031
<Testables>
32+
<TestableReference
33+
skipped = "NO">
34+
<BuildableReference
35+
BuildableIdentifier = "primary"
36+
BlueprintIdentifier = "2934F2CA1C15F373008B8AE4"
37+
BuildableName = "AFOAuth2Manager iOS Tests.xctest"
38+
BlueprintName = "AFOAuth2Manager iOS Tests"
39+
ReferencedContainer = "container:AFOAuth2Manager.xcodeproj">
40+
</BuildableReference>
41+
</TestableReference>
3142
</Testables>
43+
<MacroExpansion>
44+
<BuildableReference
45+
BuildableIdentifier = "primary"
46+
BlueprintIdentifier = "29490FC41BE11BD700893BE1"
47+
BuildableName = "AFOAuth2Manager.framework"
48+
BlueprintName = "AFOAuth2Manager iOS"
49+
ReferencedContainer = "container:AFOAuth2Manager.xcodeproj">
50+
</BuildableReference>
51+
</MacroExpansion>
3252
<AdditionalOptions>
3353
</AdditionalOptions>
3454
</TestAction>

0 commit comments

Comments
 (0)