From 7bb8a043592ecce6ac57d869e71e32f5aeac3c25 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Tue, 31 May 2016 11:05:12 -0700 Subject: [PATCH] Fix for object store build issues on Android --- src/impl/android/external_commit_helper.cpp | 5 +---- src/impl/android/weak_realm_notifier.cpp | 1 + src/shared_realm.hpp | 2 ++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/impl/android/external_commit_helper.cpp b/src/impl/android/external_commit_helper.cpp index 6298b478..24129342 100644 --- a/src/impl/android/external_commit_helper.cpp +++ b/src/impl/android/external_commit_helper.cpp @@ -19,8 +19,8 @@ #include "impl/external_commit_helper.hpp" #include "impl/realm_coordinator.hpp" - #include +#include #include #include #include @@ -36,9 +36,6 @@ #define ANDROID_LOG(...) #endif -#include -#include - using namespace realm; using namespace realm::_impl; diff --git a/src/impl/android/weak_realm_notifier.cpp b/src/impl/android/weak_realm_notifier.cpp index e49537b5..9722751c 100644 --- a/src/impl/android/weak_realm_notifier.cpp +++ b/src/impl/android/weak_realm_notifier.cpp @@ -19,6 +19,7 @@ #include "impl/weak_realm_notifier.hpp" #include "shared_realm.hpp" +#include #include #include #include diff --git a/src/shared_realm.hpp b/src/shared_realm.hpp index 90ff1665..e7c3c0f2 100644 --- a/src/shared_realm.hpp +++ b/src/shared_realm.hpp @@ -132,6 +132,8 @@ namespace realm { // Realm after closing it will produce undefined behavior. void close(); + bool is_closed() { return m_shared_group == nullptr; } + ~Realm(); void init(std::shared_ptr<_impl::RealmCoordinator> coordinator);