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 15
15
//
16
16
package com .couchbase .lite ;
17
17
18
+ import androidx .annotation .GuardedBy ;
18
19
import androidx .annotation .NonNull ;
19
20
import androidx .annotation .Nullable ;
20
21
import androidx .annotation .VisibleForTesting ;
@@ -52,6 +53,7 @@ public Replicator(@NonNull ReplicatorConfiguration config) {
52
53
: new AndroidConnectivityObserver (mgr , Replicator .this ::getC4Replicator );
53
54
}
54
55
56
+ @ GuardedBy ("getDbLock()" )
55
57
@ Override
56
58
@ NonNull
57
59
protected C4Replicator createReplicatorForTarget (@ NonNull Endpoint target ) throws LiteCoreException {
Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ model {
288
288
cppCompiler. args ' /EHsc'
289
289
cppCompiler. args ' /wd4068'
290
290
cppCompiler. args ' /std:c++17'
291
+ cppCompiler. args ' -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR'
291
292
linker. args " /def:${ ETC_DIR} /ld/jni_win.ld"
292
293
}
293
294
else if (targetPlatform. operatingSystem. linux) {
Original file line number Diff line number Diff line change 15
15
//
16
16
package com .couchbase .lite ;
17
17
18
+ import androidx .annotation .GuardedBy ;
18
19
import androidx .annotation .NonNull ;
19
20
import androidx .annotation .Nullable ;
20
21
import androidx .annotation .VisibleForTesting ;
@@ -34,6 +35,7 @@ public final class Replicator extends AbstractReplicator {
34
35
@ VisibleForTesting
35
36
Replicator (@ Nullable NetworkConnectivityManager ignore , @ NonNull ReplicatorConfiguration config ) { super (config ); }
36
37
38
+ @ GuardedBy ("getDbLock()" )
37
39
@ NonNull
38
40
@ Override
39
41
protected C4Replicator createReplicatorForTarget (@ NonNull Endpoint target ) throws LiteCoreException {
You can’t perform that action at this time.
0 commit comments