@@ -1401,6 +1401,23 @@ func firestoreWrapperTarget() -> Target {
1401
1401
)
1402
1402
}
1403
1403
1404
+ func firestoreInternalTarget( ) -> Target {
1405
+ if ProcessInfo . processInfo. environment [ " FIREBASECI_USE_LOCAL_FIRESTORE_ZIP " ] != nil {
1406
+ // This is set when running `scripts/check_firestore_symbols.sh`.
1407
+ return . binaryTarget(
1408
+ name: " FirebaseFirestoreInternal " ,
1409
+ // The `xcframework` should be moved to the root of the repo.
1410
+ path: " FirebaseFirestoreInternal.xcframework "
1411
+ )
1412
+ } else {
1413
+ return . binaryTarget(
1414
+ name: " FirebaseFirestoreInternal " ,
1415
+ url: " https://dl.google.com/firebase/ios/bin/firestore/11.6.0/rc0/FirebaseFirestoreInternal.zip " ,
1416
+ checksum: " ad9d6cf31120ba0a91dbb9ccbe7ad08276a88565f6c79216929ec93a7d436459 "
1417
+ )
1418
+ }
1419
+ }
1420
+
1404
1421
func firebaseFirestoreObjCppTarget( ) -> Target {
1405
1422
if ProcessInfo . processInfo. environment [ " FIREBASE_SOURCE_FIRESTORE " ] != nil {
1406
1423
return . target(
@@ -1420,26 +1437,13 @@ func firebaseFirestoreObjCppTarget() -> Target {
1420
1437
)
1421
1438
} else {
1422
1439
return . target(
1423
- name: " FirebaseFirestoreCpp " ,
1424
- dependencies: [
1425
- " FirebaseAppCheckInterop " ,
1426
- " FirebaseCore " ,
1427
- " leveldb " ,
1428
- " FirebaseFirestoreInternalWrapper " ,
1429
- . product( name: " nanopb " , package : " nanopb " ) ,
1430
- . product(
1431
- name: " gRPC-C++ " ,
1432
- package : " grpc-binary " ,
1433
- condition: . when( platforms: [ . iOS, . macCatalyst, . tvOS, . macOS] )
1434
- ) ,
1435
- ] ,
1436
- path: " Firestore/core/interfaceForSwift " ,
1437
- publicHeadersPath: " api " , // Path to the public headers
1438
- cxxSettings: [
1439
- . headerSearchPath( " ../../../ " ) ,
1440
- . headerSearchPath( " ../../Protos/nanopb " ) ,
1441
- . headerSearchPath( " api " ) , // Ensure the header search path is correct
1442
- ]
1440
+ name: " FirebaseFirestoreObjCpp " ,
1441
+ dependencies: [ . target(
1442
+ name: " FirebaseFirestoreInternal " ,
1443
+ condition: . when( platforms: [ . iOS, . macCatalyst, . tvOS, . macOS] )
1444
+ ) ] ,
1445
+ path: " FirebaseFirestoreInternal " ,
1446
+ publicHeadersPath: " . "
1443
1447
)
1444
1448
}
1445
1449
}
@@ -1555,29 +1559,13 @@ func firestoreTargets() -> [Target] {
1555
1559
]
1556
1560
}
1557
1561
1558
- let firestoreInternalTarget : Target = {
1559
- if ProcessInfo . processInfo. environment [ " FIREBASECI_USE_LOCAL_FIRESTORE_ZIP " ] != nil {
1560
- // This is set when running `scripts/check_firestore_symbols.sh`.
1561
- return . binaryTarget(
1562
- name: " FirebaseFirestoreInternal " ,
1563
- // The `xcframework` should be moved to the root of the repo.
1564
- path: " FirebaseFirestoreInternal.xcframework "
1565
- )
1566
- } else {
1567
- return . binaryTarget(
1568
- name: " FirebaseFirestoreInternal " ,
1569
- url: " https://dl.google.com/firebase/ios/bin/firestore/11.8.0/rc0/FirebaseFirestoreInternal.zip " ,
1570
- checksum: " 860882689232f3192a816cea3db8b6c4cbad2896188dec90f35bbdfd2536169c "
1571
- )
1572
- }
1573
- } ( )
1574
-
1562
+ let firestoreInternal = firestoreInternalTarget ( )
1575
1563
return [
1576
1564
. target(
1577
1565
name: " FirebaseFirestore " ,
1578
1566
dependencies: [
1579
1567
. target(
1580
- name: " FirebaseFirestoreInternalWrapper " ,
1568
+ name: " FirebaseFirestoreObjCpp " ,
1581
1569
condition: . when( platforms: [ . iOS, . macCatalyst, . tvOS, . macOS] )
1582
1570
) ,
1583
1571
. product(
@@ -1600,6 +1588,10 @@ func firestoreTargets() -> [Target] {
1600
1588
] ,
1601
1589
path: " Firestore/Swift/Source " ,
1602
1590
resources: [ . process( " Resources/PrivacyInfo.xcprivacy " ) ] ,
1591
+ cSettings: [
1592
+ . headerSearchPath( " ../../../ " ) ,
1593
+ . headerSearchPath( " ../../Protos/nanopb " ) ,
1594
+ ] ,
1603
1595
swiftSettings: [
1604
1596
. interoperabilityMode( . Cxx) , // C++ interoperability setting
1605
1597
] ,
@@ -1610,15 +1602,28 @@ func firestoreTargets() -> [Target] {
1610
1602
]
1611
1603
) ,
1612
1604
. target(
1613
- name: " FirebaseFirestoreInternalWrapper " ,
1614
- dependencies: [ . target(
1615
- name: " FirebaseFirestoreInternal " ,
1616
- condition: . when( platforms: [ . iOS, . macCatalyst, . tvOS, . macOS] )
1617
- ) ] ,
1618
- path: " FirebaseFirestoreInternal " ,
1619
- publicHeadersPath: " . "
1605
+ name: " FirebaseFirestoreCpp " ,
1606
+ dependencies: [
1607
+ " FirebaseAppCheckInterop " ,
1608
+ " FirebaseCore " ,
1609
+ " leveldb " ,
1610
+ " FirebaseFirestoreInternal " ,
1611
+ . product( name: " nanopb " , package : " nanopb " ) ,
1612
+ . product(
1613
+ name: " gRPC-C++ " ,
1614
+ package : " grpc-binary " ,
1615
+ condition: . when( platforms: [ . iOS, . macCatalyst, . tvOS, . macOS] )
1616
+ ) ,
1617
+ ] ,
1618
+ path: " Firestore/core/src/api " ,
1619
+ publicHeadersPath: " . " , // Path to the public headers
1620
+ cxxSettings: [
1621
+ . headerSearchPath( " ../../../.. " ) ,
1622
+ . headerSearchPath( " ../../../Protos/nanopb " ) ,
1623
+ . headerSearchPath( " . " ) , // Ensure the header search path is correct
1624
+ ]
1620
1625
) ,
1621
- firestoreInternalTarget ,
1626
+ firestoreInternal ,
1622
1627
firebaseFirestoreObjCppTarget ( ) ,
1623
1628
]
1624
1629
}
0 commit comments