Skip to content

Commit

Permalink
[Release Tooling] Rename frameworks to match modules (#12447)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Cooke <[email protected]>
  • Loading branch information
andrewheard and ncooke3 authored Feb 29, 2024
1 parent 2f30943 commit 41050f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions ReleaseTooling/Sources/ZipBuilder/FrameworkBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,20 @@ struct FrameworkBuilder {
/// - Returns: The corresponding framework/module name.
private static func frameworkBuildName(_ framework: String) -> String {
switch framework {
case "abseil":
return "absl"
case "BoringSSL-GRPC":
return "openssl_grpc"
case "gRPC-Core":
return "grpc"
case "gRPC-C++":
return "grpcpp"
case "leveldb-library":
return "leveldb"
case "PromisesObjC":
return "FBLPromises"
case "PromisesSwift":
return "Promises"
case "Protobuf":
return "protobuf"
default:
Expand Down
4 changes: 2 additions & 2 deletions ReleaseTooling/Sources/ZipBuilder/ModuleMapBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ struct ModuleMapBuilder {

if module == "FirebaseFirestoreInternal" {
content += """
link framework "BoringSSL-GRPC"
link framework "gRPC-Core"
link framework "openssl_grpc"
link framework "grpc"
link framework "grpcpp"
"""
}
Expand Down

0 comments on commit 41050f0

Please sign in to comment.