Skip to content

Commit 42ea1bf

Browse files
compnerdkendalharland
authored andcommitted
auth: add copy constructor for firebase::auth::Auth on Android
Add the copy constructor on Android as well to ensure that the type is imported properly by the clang importer when bridging to Swift.
1 parent 21c1938 commit 42ea1bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

auth/src/auth_swift.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define __swift__ 50000
1818
#include "auth/src/include/firebase/auth.h"
1919

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

auth/src/include/firebase/auth.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class Auth {
148148
~Auth();
149149

150150
#if defined(__swift__)
151-
#if FIREBASE_PLATFORM_WINDOWS
151+
#if FIREBASE_PLATFORM_WINDOWS || FIREBASE_PLATFORM_ANDROID
152152
// TODO(apple/swift#67288) support trivial C++ types with non-trivial dtors
153153
Auth(const Auth&) noexcept;
154154
#endif

0 commit comments

Comments
 (0)