Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

Commit fe948a9

Browse files
committed
Use temp directory from LiteCore instead of setting the $TMP_DIR
LiteCore is now able to return a valid temp directory for android so don’t need to set TMP_DIR anymore.
1 parent a024d01 commit fe948a9

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

shared/src/main/java/com/couchbase/lite/AbstractDatabase.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
//
1818
package com.couchbase.lite;
1919

20-
import com.couchbase.lite.internal.support.Environment;
2120
import com.couchbase.lite.internal.support.Log;
2221
import com.couchbase.lite.internal.support.NativeLibrary;
2322
import com.couchbase.lite.internal.utils.ExecutorUtils;
@@ -600,9 +599,6 @@ public static void copy(File path, String name, DatabaseConfiguration config)
600599
int encryptionAlgorithm = C4EncryptionAlgorithm.kC4EncryptionNone;
601600
byte[] encryptionKey = null;
602601

603-
// Setup the temp directory:
604-
Environment.setupTempDirectory(config.getTempDirectory());
605-
606602
try {
607603
C4Database.copy(fromPath,
608604
toPath,
@@ -799,9 +795,6 @@ private void open() throws CouchbaseLiteException {
799795
File dir = new File(config.getDirectory());
800796
setupDirectory(dir);
801797

802-
// Setup the temp directory:
803-
Environment.setupTempDirectory(config.getTempDirectory());
804-
805798
File dbFile = getDatabasePath(dir, this.name);
806799
int databaseFlags = getDatabaseFlags();
807800

shared/src/main/java/com/couchbase/lite/internal/support/Environment.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)