Skip to content

Commit bf0133c

Browse files
committed
Merge branch 'release/1.1'
2 parents ce3d988 + 8468bfe commit bf0133c

File tree

264 files changed

+11632
-2627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+11632
-2627
lines changed

Apollo.xcodeproj/project.pbxproj

Lines changed: 69 additions & 50 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>classNames</key>
6+
<dict>
7+
<key>ParsingPerformanceTests</key>
8+
<dict>
9+
<key>testParseResult()</key>
10+
<dict>
11+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
12+
<dict>
13+
<key>baselineAverage</key>
14+
<real>0.044000</real>
15+
<key>baselineIntegrationDisplayName</key>
16+
<string>Local Baseline</string>
17+
</dict>
18+
</dict>
19+
<key>testParseResultFast()</key>
20+
<dict>
21+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
22+
<dict>
23+
<key>baselineAverage</key>
24+
<real>0.024300</real>
25+
<key>baselineIntegrationDisplayName</key>
26+
<string>Local Baseline</string>
27+
</dict>
28+
</dict>
29+
</dict>
30+
<key>SelectionSetInitializerPerformanceTests</key>
31+
<dict>
32+
<key>testPerformance_selectionSetInitialization_concreteObjectTypeCaseWithMultipleFulfilledFragments()</key>
33+
<dict>
34+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
35+
<dict>
36+
<key>baselineAverage</key>
37+
<real>0.037100</real>
38+
<key>baselineIntegrationDisplayName</key>
39+
<string>Local Baseline</string>
40+
</dict>
41+
</dict>
42+
</dict>
43+
<key>TypeCaseConversionPerformanceTests</key>
44+
<dict>
45+
<key>testPerformance_typeConversion_checkTypeConformsToInterface()</key>
46+
<dict>
47+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
48+
<dict>
49+
<key>baselineAverage</key>
50+
<real>0.031000</real>
51+
<key>baselineIntegrationDisplayName</key>
52+
<string>Local Baseline</string>
53+
</dict>
54+
</dict>
55+
<key>testPerformance_typeConversion_inclusionCondition()</key>
56+
<dict>
57+
<key>com.apple.XCTPerformanceMetric_WallClockTime</key>
58+
<dict>
59+
<key>baselineAverage</key>
60+
<real>0.019700</real>
61+
<key>baselineIntegrationDisplayName</key>
62+
<string>Local Baseline</string>
63+
</dict>
64+
</dict>
65+
</dict>
66+
</dict>
67+
</dict>
68+
</plist>

Apollo.xcodeproj/xcshareddata/xcbaselines/9F54C8B3255D760B0065AFD6.xcbaseline/Info.plist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@
44
<dict>
55
<key>runDestinationsByUUID</key>
66
<dict>
7+
<key>338A066C-BE46-4734-9F59-1E548A68950C</key>
8+
<dict>
9+
<key>localComputer</key>
10+
<dict>
11+
<key>busSpeedInMHz</key>
12+
<integer>0</integer>
13+
<key>cpuCount</key>
14+
<integer>1</integer>
15+
<key>cpuKind</key>
16+
<string>Apple M1 Pro</string>
17+
<key>cpuSpeedInMHz</key>
18+
<integer>0</integer>
19+
<key>logicalCPUCoresPerPackage</key>
20+
<integer>8</integer>
21+
<key>modelCode</key>
22+
<string>MacBookPro18,3</string>
23+
<key>physicalCPUCoresPerPackage</key>
24+
<integer>8</integer>
25+
<key>platformIdentifier</key>
26+
<string>com.apple.platform.macosx</string>
27+
</dict>
28+
<key>targetArchitecture</key>
29+
<string>arm64</string>
30+
</dict>
731
<key>50A052D5-C270-4C3E-823B-FCBB6C3E6539</key>
832
<dict>
933
<key>localComputer</key>

Apollo.xcodeproj/xcshareddata/xcschemes/ApolloPerformanceTests.xcscheme

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
33
LastUpgradeVersion = "1400"
4-
version = "1.7">
4+
version = "2.1">
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "NO"
13+
buildForArchiving = "NO"
14+
buildForAnalyzing = "NO">
15+
<TestPlanReference
16+
reference = "container:Tests/TestPlans/Apollo-PerformanceTestPlan.xctestplan">
17+
</TestPlanReference>
18+
</BuildActionEntry>
19+
</BuildActionEntries>
820
</BuildAction>
921
<TestAction
1022
buildConfiguration = "PerformanceTesting"
11-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
12-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
23+
selectedDebuggerIdentifier = ""
24+
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
1325
shouldUseLaunchSchemeArgsEnv = "YES"
1426
disableMainThreadChecker = "YES">
1527
<TestPlans>
@@ -48,6 +60,15 @@
4860
savedToolIdentifier = ""
4961
useCustomWorkingDirectory = "NO"
5062
debugDocumentVersioning = "YES">
63+
<MacroExpansion>
64+
<BuildableReference
65+
BuildableIdentifier = "primary"
66+
BlueprintIdentifier = "9F54C8B3255D760B0065AFD6"
67+
BuildableName = "ApolloPerformanceTests.xctest"
68+
BlueprintName = "ApolloPerformanceTests"
69+
ReferencedContainer = "container:Apollo.xcodeproj">
70+
</BuildableReference>
71+
</MacroExpansion>
5172
</ProfileAction>
5273
<AnalyzeAction
5374
buildConfiguration = "Debug">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CURRENT_PROJECT_VERSION = 1.0.7
1+
CURRENT_PROJECT_VERSION = 1.1.0

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ let package = Package(
8181
.target(
8282
name: "ApolloTestSupport",
8383
dependencies: [
84+
"Apollo",
8485
"ApolloAPI"
8586
],
8687
exclude: [

Sources/AnimalKingdomAPI/AnimalKingdomAPI/Sources/Fragments/ClassroomPetDetails.graphql.swift

Lines changed: 124 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ public struct ClassroomPetDetails: AnimalKingdomAPI.SelectionSet, Fragment {
3030
""" }
3131

3232
public let __data: DataDict
33-
public init(data: DataDict) { __data = data }
33+
public init(_dataDict: DataDict) { __data = _dataDict }
3434

3535
public static var __parentType: ApolloAPI.ParentType { AnimalKingdomAPI.Unions.ClassroomPet }
3636
public static var __selections: [ApolloAPI.Selection] { [
37+
.field("__typename", String.self),
3738
.inlineFragment(AsAnimal.self),
3839
.inlineFragment(AsPet.self),
3940
.inlineFragment(AsWarmBlooded.self),
@@ -49,59 +50,118 @@ public struct ClassroomPetDetails: AnimalKingdomAPI.SelectionSet, Fragment {
4950
public var asBird: AsBird? { _asInlineFragment() }
5051
public var asPetRock: AsPetRock? { _asInlineFragment() }
5152

53+
public init(
54+
__typename: String
55+
) {
56+
self.init(_dataDict: DataDict(data: [
57+
"__typename": __typename,
58+
"__fulfilled": Set([
59+
ObjectIdentifier(Self.self)
60+
])
61+
]))
62+
}
63+
5264
/// AsAnimal
5365
///
5466
/// Parent Type: `Animal`
5567
public struct AsAnimal: AnimalKingdomAPI.InlineFragment {
5668
public let __data: DataDict
57-
public init(data: DataDict) { __data = data }
69+
public init(_dataDict: DataDict) { __data = _dataDict }
5870

71+
public typealias RootEntityType = ClassroomPetDetails
5972
public static var __parentType: ApolloAPI.ParentType { AnimalKingdomAPI.Interfaces.Animal }
6073
public static var __selections: [ApolloAPI.Selection] { [
6174
.field("species", String.self),
6275
] }
6376

6477
public var species: String { __data["species"] }
78+
79+
public init(
80+
__typename: String,
81+
species: String
82+
) {
83+
self.init(_dataDict: DataDict(data: [
84+
"__typename": __typename,
85+
"species": species,
86+
"__fulfilled": Set([
87+
ObjectIdentifier(Self.self),
88+
ObjectIdentifier(ClassroomPetDetails.self)
89+
])
90+
]))
91+
}
6592
}
6693

6794
/// AsPet
6895
///
6996
/// Parent Type: `Pet`
7097
public struct AsPet: AnimalKingdomAPI.InlineFragment {
7198
public let __data: DataDict
72-
public init(data: DataDict) { __data = data }
99+
public init(_dataDict: DataDict) { __data = _dataDict }
73100

101+
public typealias RootEntityType = ClassroomPetDetails
74102
public static var __parentType: ApolloAPI.ParentType { AnimalKingdomAPI.Interfaces.Pet }
75103
public static var __selections: [ApolloAPI.Selection] { [
76104
.field("humanName", String?.self),
77105
] }
78106

79107
public var humanName: String? { __data["humanName"] }
108+
109+
public init(
110+
__typename: String,
111+
humanName: String? = nil
112+
) {
113+
self.init(_dataDict: DataDict(data: [
114+
"__typename": __typename,
115+
"humanName": humanName,
116+
"__fulfilled": Set([
117+
ObjectIdentifier(Self.self),
118+
ObjectIdentifier(ClassroomPetDetails.self)
119+
])
120+
]))
121+
}
80122
}
81123

82124
/// AsWarmBlooded
83125
///
84126
/// Parent Type: `WarmBlooded`
85127
public struct AsWarmBlooded: AnimalKingdomAPI.InlineFragment {
86128
public let __data: DataDict
87-
public init(data: DataDict) { __data = data }
129+
public init(_dataDict: DataDict) { __data = _dataDict }
88130

131+
public typealias RootEntityType = ClassroomPetDetails
89132
public static var __parentType: ApolloAPI.ParentType { AnimalKingdomAPI.Interfaces.WarmBlooded }
90133
public static var __selections: [ApolloAPI.Selection] { [
91134
.field("laysEggs", Bool.self),
92135
] }
93136

94137
public var laysEggs: Bool { __data["laysEggs"] }
95138
public var species: String { __data["species"] }
139+
140+
public init(
141+
__typename: String,
142+
laysEggs: Bool,
143+
species: String
144+
) {
145+
self.init(_dataDict: DataDict(data: [
146+
"__typename": __typename,
147+
"laysEggs": laysEggs,
148+
"species": species,
149+
"__fulfilled": Set([
150+
ObjectIdentifier(Self.self),
151+
ObjectIdentifier(ClassroomPetDetails.self)
152+
])
153+
]))
154+
}
96155
}
97156

98157
/// AsCat
99158
///
100159
/// Parent Type: `Cat`
101160
public struct AsCat: AnimalKingdomAPI.InlineFragment {
102161
public let __data: DataDict
103-
public init(data: DataDict) { __data = data }
162+
public init(_dataDict: DataDict) { __data = _dataDict }
104163

164+
public typealias RootEntityType = ClassroomPetDetails
105165
public static var __parentType: ApolloAPI.ParentType { AnimalKingdomAPI.Objects.Cat }
106166
public static var __selections: [ApolloAPI.Selection] { [
107167
.field("bodyTemperature", Int.self),
@@ -113,15 +173,37 @@ public struct ClassroomPetDetails: AnimalKingdomAPI.SelectionSet, Fragment {
113173
public var species: String { __data["species"] }
114174
public var humanName: String? { __data["humanName"] }
115175
public var laysEggs: Bool { __data["laysEggs"] }
176+
177+
public init(
178+
bodyTemperature: Int,
179+
isJellicle: Bool,
180+
species: String,
181+
humanName: String? = nil,
182+
laysEggs: Bool
183+
) {
184+
self.init(_dataDict: DataDict(data: [
185+
"__typename": AnimalKingdomAPI.Objects.Cat.typename,
186+
"bodyTemperature": bodyTemperature,
187+
"isJellicle": isJellicle,
188+
"species": species,
189+
"humanName": humanName,
190+
"laysEggs": laysEggs,
191+
"__fulfilled": Set([
192+
ObjectIdentifier(Self.self),
193+
ObjectIdentifier(ClassroomPetDetails.self)
194+
])
195+
]))
196+
}
116197
}
117198

118199
/// AsBird
119200
///
120201
/// Parent Type: `Bird`
121202
public struct AsBird: AnimalKingdomAPI.InlineFragment {
122203
public let __data: DataDict
123-
public init(data: DataDict) { __data = data }
204+
public init(_dataDict: DataDict) { __data = _dataDict }
124205

206+
public typealias RootEntityType = ClassroomPetDetails
125207
public static var __parentType: ApolloAPI.ParentType { AnimalKingdomAPI.Objects.Bird }
126208
public static var __selections: [ApolloAPI.Selection] { [
127209
.field("wingspan", Double.self),
@@ -131,21 +213,56 @@ public struct ClassroomPetDetails: AnimalKingdomAPI.SelectionSet, Fragment {
131213
public var species: String { __data["species"] }
132214
public var humanName: String? { __data["humanName"] }
133215
public var laysEggs: Bool { __data["laysEggs"] }
216+
217+
public init(
218+
wingspan: Double,
219+
species: String,
220+
humanName: String? = nil,
221+
laysEggs: Bool
222+
) {
223+
self.init(_dataDict: DataDict(data: [
224+
"__typename": AnimalKingdomAPI.Objects.Bird.typename,
225+
"wingspan": wingspan,
226+
"species": species,
227+
"humanName": humanName,
228+
"laysEggs": laysEggs,
229+
"__fulfilled": Set([
230+
ObjectIdentifier(Self.self),
231+
ObjectIdentifier(ClassroomPetDetails.self)
232+
])
233+
]))
234+
}
134235
}
135236

136237
/// AsPetRock
137238
///
138239
/// Parent Type: `PetRock`
139240
public struct AsPetRock: AnimalKingdomAPI.InlineFragment {
140241
public let __data: DataDict
141-
public init(data: DataDict) { __data = data }
242+
public init(_dataDict: DataDict) { __data = _dataDict }
142243

244+
public typealias RootEntityType = ClassroomPetDetails
143245
public static var __parentType: ApolloAPI.ParentType { AnimalKingdomAPI.Objects.PetRock }
144246
public static var __selections: [ApolloAPI.Selection] { [
145247
.field("favoriteToy", String.self),
146248
] }
147249

148250
public var favoriteToy: String { __data["favoriteToy"] }
149251
public var humanName: String? { __data["humanName"] }
252+
253+
public init(
254+
favoriteToy: String,
255+
humanName: String? = nil
256+
) {
257+
self.init(_dataDict: DataDict(data: [
258+
"__typename": AnimalKingdomAPI.Objects.PetRock.typename,
259+
"favoriteToy": favoriteToy,
260+
"humanName": humanName,
261+
"__fulfilled": Set([
262+
ObjectIdentifier(Self.self),
263+
ObjectIdentifier(ClassroomPetDetails.self)
264+
])
265+
]))
266+
}
150267
}
151268
}

0 commit comments

Comments
 (0)