File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
android/lib/src/main/java/com/couchbase/lite
src/main/java/com/couchbase/lite Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1515//
1616package com .couchbase .lite ;
1717
18+ import androidx .annotation .GuardedBy ;
1819import androidx .annotation .NonNull ;
1920import androidx .annotation .Nullable ;
2021import androidx .annotation .VisibleForTesting ;
@@ -52,6 +53,7 @@ public Replicator(@NonNull ReplicatorConfiguration config) {
5253 : new AndroidConnectivityObserver (mgr , Replicator .this ::getC4Replicator );
5354 }
5455
56+ @ GuardedBy ("getDbLock()" )
5557 @ Override
5658 @ NonNull
5759 protected C4Replicator createReplicatorForTarget (@ NonNull Endpoint target ) throws LiteCoreException {
Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ model {
288288 cppCompiler. args ' /EHsc'
289289 cppCompiler. args ' /wd4068'
290290 cppCompiler. args ' /std:c++17'
291+ cppCompiler. args ' -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR'
291292 linker. args " /def:${ ETC_DIR} /ld/jni_win.ld"
292293 }
293294 else if (targetPlatform. operatingSystem. linux) {
Original file line number Diff line number Diff line change 1515//
1616package com .couchbase .lite ;
1717
18+ import androidx .annotation .GuardedBy ;
1819import androidx .annotation .NonNull ;
1920import androidx .annotation .Nullable ;
2021import androidx .annotation .VisibleForTesting ;
@@ -34,6 +35,7 @@ public final class Replicator extends AbstractReplicator {
3435 @ VisibleForTesting
3536 Replicator (@ Nullable NetworkConnectivityManager ignore , @ NonNull ReplicatorConfiguration config ) { super (config ); }
3637
38+ @ GuardedBy ("getDbLock()" )
3739 @ NonNull
3840 @ Override
3941 protected C4Replicator createReplicatorForTarget (@ NonNull Endpoint target ) throws LiteCoreException {
You can’t perform that action at this time.
0 commit comments