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