Skip to content

Commit 4164fb9

Browse files
committed
use @_implementationOnly
1 parent ec7848e commit 4164fb9

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
@@ -476,10 +476,7 @@ let package = Package(
476476
dependencies: [
477477
"FirebaseFirestoreTarget",
478478
],
479-
path: "FirebaseCombineSwift/Sources/Firestore",
480-
swiftSettings: [
481-
.interoperabilityMode(.Cxx), // C++ interoperability setting
482-
]
479+
path: "FirebaseCombineSwift/Sources/Firestore"
483480
),
484481
.target(
485482
name: "FirebaseStorageCombineSwift",
@@ -1174,10 +1171,7 @@ let package = Package(
11741171
"FirebaseStorage",
11751172
.product(name: "nanopb", package: "nanopb"),
11761173
],
1177-
path: "SwiftPMTests/swift-test",
1178-
swiftSettings: [
1179-
.interoperabilityMode(.Cxx), // C++ interoperability setting
1180-
]
1174+
path: "SwiftPMTests/swift-test"
11811175
),
11821176
.testTarget(
11831177
name: "analytics-import-test",

0 commit comments

Comments
 (0)