Skip to content

Commit e31679f

Browse files
committed
Revert "use @_implementationOnly"
This reverts commit 4164fb9.
1 parent 4164fb9 commit e31679f

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
@@ -476,7 +476,10 @@ let package = Package(
476476
dependencies: [
477477
"FirebaseFirestoreTarget",
478478
],
479-
path: "FirebaseCombineSwift/Sources/Firestore"
479+
path: "FirebaseCombineSwift/Sources/Firestore",
480+
swiftSettings: [
481+
.interoperabilityMode(.Cxx), // C++ interoperability setting
482+
]
480483
),
481484
.target(
482485
name: "FirebaseStorageCombineSwift",
@@ -1171,7 +1174,10 @@ let package = Package(
11711174
"FirebaseStorage",
11721175
.product(name: "nanopb", package: "nanopb"),
11731176
],
1174-
path: "SwiftPMTests/swift-test"
1177+
path: "SwiftPMTests/swift-test",
1178+
swiftSettings: [
1179+
.interoperabilityMode(.Cxx), // C++ interoperability setting
1180+
]
11751181
),
11761182
.testTarget(
11771183
name: "analytics-import-test",

0 commit comments

Comments
 (0)