Skip to content

Commit 7bce6f1

Browse files
authored
Add a firestore copy constructor for Android too (#44)
1 parent 8272648 commit 7bce6f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

firestore/src/common/firestore_swift.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define __swift__ 50000
1818
#include "firestore/src/include/firebase/firestore.h"
1919

20-
#if FIREBASE_PLATFORM_WINDOWS
20+
#if FIREBASE_PLATFORM_WINDOWS || FIREBASE_PLATFORM_ANDROID
2121
namespace firebase {
2222
namespace firestore {
2323
Firestore::Firestore(const Firestore &) noexcept = default;

firestore/src/include/firebase/firestore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class Firestore {
196196
* Firestore::GetInstance().
197197
*/
198198
#if defined(__swift__)
199-
#if FIREBASE_PLATFORM_WINDOWS
199+
#if FIREBASE_PLATFORM_WINDOWS || FIREBASE_PLATFORM_ANDROID
200200
Firestore(const Firestore& src) noexcept;
201201
#else
202202
Firestore(const Firestore& src) = delete;

0 commit comments

Comments
 (0)