Skip to content

Commit 247e1c8

Browse files
authored
ZipBuilder Spelling Fix (#6964)
1 parent 5dac2bf commit 247e1c8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ReleaseTooling/Sources/ZipBuilder/ZipBuilder.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ struct ZipBuilder {
164164
func buildAndAssembleZip(podsToInstall: [CocoaPodUtils.VersionedPod],
165165
inProjectDir projectDir: URL,
166166
minimumIOSVersion: String,
167-
includeDependences: Bool,
167+
includeDependencies: Bool,
168168
includeCarthage: Bool = false) ->
169169
([String: CocoaPodUtils.PodInfo], [String: [URL]], [String: [URL]]?) {
170170
// Remove CocoaPods cache so the build gets updates after a version is rebuilt during the
@@ -198,7 +198,7 @@ struct ZipBuilder {
198198
paths: paths).build()
199199
}
200200

201-
let podsToBuild = includeDependences ? installedPods : installedPods.filter {
201+
let podsToBuild = includeDependencies ? installedPods : installedPods.filter {
202202
podsToInstall.map { $0.name.components(separatedBy: "/").first }.contains($0.key)
203203
}
204204

@@ -245,7 +245,7 @@ struct ZipBuilder {
245245
inProjectDir: projectDir,
246246
minimumIOSVersion: minimumIOSVersion,
247247
// Always include dependencies for Firebase zips.
248-
includeDependences: true,
248+
includeDependencies: true,
249249
includeCarthage: includeCarthage)
250250

251251
// We need the Firebase pod to get the version for Carthage and to copy the `Firebase.h` and

ReleaseTooling/Sources/ZipBuilder/main.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct ZipBuilderTool: ParsableCommand {
3838
@Flag(default: true,
3939
inversion: .prefixedEnableDisable,
4040
help: ArgumentHelp("Whether or not to build dependencies of requested pods."))
41-
var buildDependences
41+
var buildDependencies
4242

4343
/// Flag to also build Carthage artifacts.
4444
@Flag(default: false,
@@ -175,7 +175,7 @@ struct ZipBuilderTool: ParsableCommand {
175175
}
176176

177177
// Validate that Firebase builds are including dependencies.
178-
if !buildDependences, zipPods == nil {
178+
if !buildDependencies, zipPods == nil {
179179
throw ValidationError("""
180180
The `enable-build-dependencies` option cannot be false unless a list of pods is \
181181
specified with the `zip-pods` option.
@@ -236,7 +236,7 @@ struct ZipBuilderTool: ParsableCommand {
236236
let (installedPods, frameworks, _) = builder.buildAndAssembleZip(podsToInstall: zipPods,
237237
inProjectDir: projectDir,
238238
minimumIOSVersion: minimumIOSVersion,
239-
includeDependences: buildDependences)
239+
includeDependencies: buildDependencies)
240240
let staging = FileManager.default.temporaryDirectory(withName: "staging")
241241
try builder.copyFrameworks(fromPods: Array(installedPods.keys), toDirectory: staging,
242242
frameworkLocations: frameworks)

0 commit comments

Comments
 (0)