Skip to content

Commit

Permalink
Revert "[Release Tooling] Stage and publish with `--skip-import-valid… (
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 authored Nov 14, 2023
1 parent d869704 commit a0fcb67
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions ReleaseTooling/Sources/FirebaseManifest/Pod.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,14 @@ public struct Pod {
public func podspecName() -> String {
return "\(name).podspec"
}

/// The Firebase pod does not support import validation with Xcode 12 because of the deprecated
/// ML pods not supporting the ARM Mac slice.
public func skipImportValidation() -> String {
if name == "Firebase" {
return "--skip-import-validation"
} else {
return ""
}
}
}
5 changes: 3 additions & 2 deletions ReleaseTooling/Sources/FirebaseReleaser/Push.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ enum Push {
switch destination {
case .staging:
return "pod repo push --skip-tests --use-json \(warningsOK) \(stagingLocation) " +
"--skip-import-validation" + " \(pod.podspecName()) " +
pod.skipImportValidation() + " \(pod.podspecName()) " +
"--sources=\(stagingRepo).git,https://cdn.cocoapods.org"
case .trunk:
return "pod trunk push --skip-tests --synchronous \(warningsOK) " +
"--skip-import-validation" + " ~/.cocoapods/repos/\(stagingLocation)/\(pod.name)/" +
pod
.skipImportValidation() + " ~/.cocoapods/repos/\(stagingLocation)/\(pod.name)/" +
"\(manifest.versionString(pod))/\(pod.name).podspec.json"
}
}()
Expand Down

0 comments on commit a0fcb67

Please sign in to comment.