Skip to content

Commit 50e52e0

Browse files
committed
use @_implementationOnly
1 parent 2e504e5 commit 50e52e0

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Firestore/Swift/Source/SwiftAPI/SwiftCppAPI.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
*/
1616

1717
#if SWIFT_PACKAGE
18-
@_exported import FirebaseFirestoreCpp
18+
@_implementationOnly import FirebaseFirestoreCpp
1919
#endif // SWIFT_PACKAGE
2020

2121
public class SwiftCallingCpp {
22-
public init(_ value: String) {
22+
public static func print(_ value: String) {
2323
CppInterfaceCalledBySwift.print(std.string(value))
2424
}
2525
}

Package.swift

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,7 @@ let package = Package(
477477
dependencies: [
478478
"FirebaseFirestoreTarget",
479479
],
480-
path: "FirebaseCombineSwift/Sources/Firestore",
481-
swiftSettings: [
482-
.interoperabilityMode(.Cxx), // C++ interoperability setting
483-
]
480+
path: "FirebaseCombineSwift/Sources/Firestore"
484481
),
485482
.target(
486483
name: "FirebaseStorageCombineSwift",
@@ -1175,10 +1172,7 @@ let package = Package(
11751172
"FirebaseStorage",
11761173
.product(name: "nanopb", package: "nanopb"),
11771174
],
1178-
path: "SwiftPMTests/swift-test",
1179-
swiftSettings: [
1180-
.interoperabilityMode(.Cxx), // C++ interoperability setting
1181-
]
1175+
path: "SwiftPMTests/swift-test"
11821176
),
11831177
.testTarget(
11841178
name: "analytics-import-test",

0 commit comments

Comments
 (0)