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 @@ -476,7 +476,10 @@ let package = Package(
476
476
dependencies: [
477
477
" FirebaseFirestoreTarget " ,
478
478
] ,
479
- path: " FirebaseCombineSwift/Sources/Firestore "
479
+ path: " FirebaseCombineSwift/Sources/Firestore " ,
480
+ swiftSettings: [
481
+ . interoperabilityMode( . Cxx) , // C++ interoperability setting
482
+ ]
480
483
) ,
481
484
. target(
482
485
name: " FirebaseStorageCombineSwift " ,
@@ -1171,7 +1174,10 @@ let package = Package(
1171
1174
" FirebaseStorage " ,
1172
1175
. product( name: " nanopb " , package : " nanopb " ) ,
1173
1176
] ,
1174
- path: " SwiftPMTests/swift-test "
1177
+ path: " SwiftPMTests/swift-test " ,
1178
+ swiftSettings: [
1179
+ . interoperabilityMode( . Cxx) , // C++ interoperability setting
1180
+ ]
1175
1181
) ,
1176
1182
. testTarget(
1177
1183
name: " analytics-import-test " ,
You can’t perform that action at this time.
0 commit comments