Skip to content

Commit d81122a

Browse files
proguard rules
1 parent 4242e9a commit d81122a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/proguard-rules.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
private void onTableUpdate(java.lang.String);
1010
private void onTransactionCommit(boolean);
1111
}
12+
-keep class org.sqlite.** { *; }
13+
-dontwarn java.sql.JDBCType

core/src/commonMain/kotlin/com/powersync/db/internal/ConnectionPool.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.powersync.db.internal
22

3+
import co.touchlab.stately.concurrency.AtomicBoolean
34
import com.powersync.PowerSyncException
45
import com.powersync.PsSqlDriver
5-
import kotlinx.atomicfu.atomic
66
import kotlinx.coroutines.CompletableDeferred
77
import kotlinx.coroutines.CoroutineScope
88
import kotlinx.coroutines.joinAll
@@ -26,7 +26,7 @@ internal class ConnectionPool(
2626
size: Int = 5,
2727
private val scope: CoroutineScope,
2828
) {
29-
val closed = atomic(false)
29+
val closed = AtomicBoolean(false)
3030

3131
private val mutex = Mutex()
3232
private val connections = List(size) { WrappedConnection(TransactorDriver(factory())) }

0 commit comments

Comments
 (0)