Skip to content

Commit cb2b128

Browse files
authored
Add a "wrapper" header that includes firestore_exceptions.h from the iOS repo (#538)
This simplifies the Unity build (the SWIG part of the build has issues with directly including a header that comes from the iOS repo).
2 parents dec28d0 + 1e395ca commit cb2b128

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

firestore/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ set(common_SRCS
3232
src/common/field_path.cc
3333
src/common/field_value.cc
3434
src/common/firestore.cc
35+
src/common/firestore_exceptions_common.h
3536
src/common/futures.cc
3637
src/common/futures.h
3738
src/common/hard_assert_common.cc
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#ifndef FIREBASE_FIRESTORE_SRC_COMMON_FIRESTORE_EXCEPTIONS_COMMON_H_
16+
#define FIREBASE_FIRESTORE_SRC_COMMON_FIRESTORE_EXCEPTIONS_COMMON_H_
17+
18+
// Note: this header only exists to simplify the Unity build (the SWIG build has
19+
// trouble directly including a header that comes from the iOS repo).
20+
#include "Firestore/core/src/util/firestore_exceptions.h"
21+
22+
#endif // FIREBASE_FIRESTORE_SRC_COMMON_FIRESTORE_EXCEPTIONS_COMMON_H_

0 commit comments

Comments
 (0)