Skip to content

Commit

Permalink
Firestore - new public header structure (#6197)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Aug 4, 2020
1 parent 1dffd1b commit a22b425
Show file tree
Hide file tree
Showing 26 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions FirebaseFirestore.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,

s.source_files = [
'FirebaseCore/Sources/Private/*.h',
'Firestore/Source/Public/*.h',
'Firestore/Source/Public/FirebaseFirestore/*.h',
'Firestore/Source/**/*.{m,mm}',
'Firestore/Protos/nanopb/**/*.cc',
'Firestore/core/include/**/*.{cc,mm}',
Expand Down Expand Up @@ -56,7 +56,7 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
'Firestore/core/src/util/log_stdio.cc',
'Firestore/core/src/util/secure_random_openssl.cc'
]
s.public_header_files = 'Firestore/Source/Public/*.h'
s.public_header_files = 'Firestore/Source/Public/FirebaseFirestore/*.h'

s.dependency 'FirebaseCore', '~> 6.8'

Expand Down Expand Up @@ -89,7 +89,7 @@ Google Cloud Firestore is a NoSQL document database built for automatic scaling,
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
'HEADER_SEARCH_PATHS' =>
'"${PODS_TARGET_SRCROOT}" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Source/Public" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Source/Public/FirebaseFirestore" ' +
'"${PODS_ROOT}/nanopb" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Protos/nanopb"'
}
Expand Down
6 changes: 3 additions & 3 deletions Firestore/Example/Tests/Util/FSTEventAccumulator.mm
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#import <XCTest/XCTest.h>

#import "Firestore/Example/Tests/Util/XCTestCase+Await.h"
#import "Firestore/Source/Public/FIRDocumentSnapshot.h"
#import "Firestore/Source/Public/FIRQuerySnapshot.h"
#import "Firestore/Source/Public/FIRSnapshotMetadata.h"
#import "Firestore/Source/Public/FirebaseFirestore/FIRDocumentSnapshot.h"
#import "Firestore/Source/Public/FirebaseFirestore/FIRQuerySnapshot.h"
#import "Firestore/Source/Public/FirebaseFirestore/FIRSnapshotMetadata.h"

#include "Firestore/core/src/util/hard_assert.h"

Expand Down
2 changes: 1 addition & 1 deletion Firestore/Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(NOT APPLE)
return()
endif()

file(GLOB headers Public/*.h)
file(GLOB headers Public/FirebaseFirestore/*.h)
file(GLOB sources API/*.h API/*.m API/*.mm)

firebase_ios_add_framework(FirebaseFirestore ${headers} ${sources})
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion Firestore/core/src/util/error_apple.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
#include "Firestore/core/src/util/status.h"
#include "Firestore/core/src/util/string_apple.h"

// NB: This is also declared in Firestore/Source/Public/FIRFirestoreErrors.h
// NB: This is also declared in
// FirebaseFirestore/Firestore/Source/Public/FIRFirestoreErrors.h
// NOLINTNEXTLINE: public constant
FOUNDATION_EXPORT NSString* const FIRFirestoreErrorDomain =
@"FIRFirestoreErrorDomain";
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ let package = Package(
publicHeadersPath: "Source/Public",
cSettings: [
.headerSearchPath("../"),
.headerSearchPath("Source/Public"),
.headerSearchPath("Source/Public/FirebaseFirestore"),
.headerSearchPath("Protos/nanopb"),

.define("PB_FIELD_32BIT", to: "1"),
Expand Down
4 changes: 2 additions & 2 deletions SwiftPMTests/objc-import-test/objc-header.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#import "FirebaseCore/FirebaseCore.h"
#import "FirebaseCrashlytics/FirebaseCrashlytics.h"
#import "FirebaseDatabase/FirebaseDatabase.h"
#import "FirebaseFirestore/FirebaseFirestore.h"
#import "FirebaseFunctions/FirebaseFunctions.h"
//#import "FirebaseFirestore/FirebaseFirestore."
#import "FirebaseInstallations/FirebaseInstallations.h"
#import "FirebaseRemoteConfig/FirebaseRemoteConfig.h"
#import "FirebaseStorage/FirebaseStorage.h"
Expand All @@ -30,8 +30,8 @@
#import <FirebaseCore/FirebaseCore.h>
#import <FirebaseCrashlytics/FirebaseCrashlytics.h>
#import <FirebaseDatabase/FirebaseDatabase.h>
#import <FirebaseFirestore/FirebaseFirestore.h>
#import <FirebaseFunctions/FirebaseFunctions.h>
//#import <FirebaseFirestore/FirebaseFirestore.>
#import <FirebaseInstallations/FirebaseInstallations.h>
#import <FirebaseRemoteConfig/FirebaseRemoteConfig.h>
#import <FirebaseStorage/FirebaseStorage.h>
2 changes: 1 addition & 1 deletion scripts/sync_project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def sync_firestore(test_only)
'"${PODS_ROOT}/../../.."',

# Make public headers available as "FIRQuery.h"
'"${PODS_ROOT}/../../../Firestore/Source/Public"',
'"${PODS_ROOT}/../../../Firestore/Source/Public/FirebaseFirestore"',

# Generated protobuf and nanopb output expects to search relative to the
# output path.
Expand Down

0 comments on commit a22b425

Please sign in to comment.