File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Firestore/Swift/Source/SwiftAPI Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
#if SWIFT_PACKAGE
18
- @_implementationOnly import FirebaseFirestoreCpp
18
+ @_exported import FirebaseFirestoreCpp
19
19
#endif // SWIFT_PACKAGE
20
20
21
21
public class SwiftCallingCpp {
22
- public static func print ( _ value: String ) {
22
+ public init ( _ value: String ) {
23
23
CppInterfaceCalledBySwift . print ( std. string ( value) )
24
24
}
25
25
}
Original file line number Diff line number Diff line change @@ -477,7 +477,10 @@ let package = Package(
477
477
dependencies: [
478
478
" FirebaseFirestoreTarget " ,
479
479
] ,
480
- path: " FirebaseCombineSwift/Sources/Firestore "
480
+ path: " FirebaseCombineSwift/Sources/Firestore " ,
481
+ swiftSettings: [
482
+ . interoperabilityMode( . Cxx) , // C++ interoperability setting
483
+ ]
481
484
) ,
482
485
. target(
483
486
name: " FirebaseStorageCombineSwift " ,
@@ -1172,7 +1175,10 @@ let package = Package(
1172
1175
" FirebaseStorage " ,
1173
1176
. product( name: " nanopb " , package : " nanopb " ) ,
1174
1177
] ,
1175
- path: " SwiftPMTests/swift-test "
1178
+ path: " SwiftPMTests/swift-test " ,
1179
+ swiftSettings: [
1180
+ . interoperabilityMode( . Cxx) , // C++ interoperability setting
1181
+ ]
1176
1182
) ,
1177
1183
. testTarget(
1178
1184
name: " analytics-import-test " ,
You can’t perform that action at this time.
0 commit comments