From 4164fb9b01e17889e1d95757b3d11ee38ac94e0c Mon Sep 17 00:00:00 2001 From: cherylEnkidu Date: Mon, 11 Nov 2024 09:55:47 -0800 Subject: [PATCH] use @_implementationOnly --- Firestore/Swift/Source/SwiftAPI/SwiftCppAPI.swift | 4 ++-- Package.swift | 10 ++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Firestore/Swift/Source/SwiftAPI/SwiftCppAPI.swift b/Firestore/Swift/Source/SwiftAPI/SwiftCppAPI.swift index fafeec43e98..8797915cc68 100644 --- a/Firestore/Swift/Source/SwiftAPI/SwiftCppAPI.swift +++ b/Firestore/Swift/Source/SwiftAPI/SwiftCppAPI.swift @@ -15,11 +15,11 @@ */ #if SWIFT_PACKAGE - @_exported import FirebaseFirestoreCpp + @_implementationOnly import FirebaseFirestoreCpp #endif // SWIFT_PACKAGE public class SwiftCallingCpp { - public init(_ value: String) { + public static func print(_ value: String) { CppInterfaceCalledBySwift.print(std.string(value)) } } diff --git a/Package.swift b/Package.swift index 5a2b73deccf..a4a1071802c 100644 --- a/Package.swift +++ b/Package.swift @@ -476,10 +476,7 @@ let package = Package( dependencies: [ "FirebaseFirestoreTarget", ], - path: "FirebaseCombineSwift/Sources/Firestore", - swiftSettings: [ - .interoperabilityMode(.Cxx), // C++ interoperability setting - ] + path: "FirebaseCombineSwift/Sources/Firestore" ), .target( name: "FirebaseStorageCombineSwift", @@ -1174,10 +1171,7 @@ let package = Package( "FirebaseStorage", .product(name: "nanopb", package: "nanopb"), ], - path: "SwiftPMTests/swift-test", - swiftSettings: [ - .interoperabilityMode(.Cxx), // C++ interoperability setting - ] + path: "SwiftPMTests/swift-test" ), .testTarget( name: "analytics-import-test",