Skip to content

Commit 72ae07d

Browse files
committed
Revert "use @_implementationOnly"
This reverts commit 4164fb9.
1 parent 50e52e0 commit 72ae07d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
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-
@_implementationOnly import FirebaseFirestoreCpp
18+
@_exported import FirebaseFirestoreCpp
1919
#endif // SWIFT_PACKAGE
2020

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

Package.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,10 @@ let package = Package(
477477
dependencies: [
478478
"FirebaseFirestoreTarget",
479479
],
480-
path: "FirebaseCombineSwift/Sources/Firestore"
480+
path: "FirebaseCombineSwift/Sources/Firestore",
481+
swiftSettings: [
482+
.interoperabilityMode(.Cxx), // C++ interoperability setting
483+
]
481484
),
482485
.target(
483486
name: "FirebaseStorageCombineSwift",
@@ -1172,7 +1175,10 @@ let package = Package(
11721175
"FirebaseStorage",
11731176
.product(name: "nanopb", package: "nanopb"),
11741177
],
1175-
path: "SwiftPMTests/swift-test"
1178+
path: "SwiftPMTests/swift-test",
1179+
swiftSettings: [
1180+
.interoperabilityMode(.Cxx), // C++ interoperability setting
1181+
]
11761182
),
11771183
.testTarget(
11781184
name: "analytics-import-test",

0 commit comments

Comments
 (0)