Skip to content

Remove Kotlin Types from API #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7524bc7
wip: cleanup API
stevensJourney Apr 23, 2025
dbaba58
Cleanup
stevensJourney Apr 28, 2025
d6fd7eb
cleanup apis
stevensJourney Apr 29, 2025
a9d605e
Merge remote-tracking branch 'origin/main' into api
stevensJourney Apr 29, 2025
1c59de4
update watched query implementation
stevensJourney Apr 29, 2025
074f35d
cleanup filestructure
stevensJourney Apr 29, 2025
f0fb9c4
temp
stevensJourney Apr 29, 2025
f23f364
move
stevensJourney Apr 29, 2025
b71eca4
update demo and changelog
stevensJourney Apr 29, 2025
977fa0e
more changelog
stevensJourney Apr 29, 2025
2277b9d
cleanup
stevensJourney Apr 29, 2025
24051f9
temp dependency
stevensJourney Apr 29, 2025
2153b22
cleanup
stevensJourney Apr 29, 2025
819f919
Update Sources/PowerSync/Kotlin/KotlinPowerSyncDatabaseImpl.swift
stevensJourney Apr 29, 2025
85a5fba
cleanup
stevensJourney Apr 29, 2025
1383c4b
cleanup
stevensJourney Apr 29, 2025
4e9c2a8
deprecate userId
stevensJourney Apr 29, 2025
52ed16d
update read and write lock docs
stevensJourney Apr 29, 2025
21dc8f4
Merge remote-tracking branch 'origin/main' into api
stevensJourney Apr 30, 2025
223c004
propagate connector upload errors
stevensJourney Apr 30, 2025
b6f62a7
move
stevensJourney Apr 30, 2025
70894b4
move again
stevensJourney Apr 30, 2025
5700b23
improve sqlcursor getter implementation
stevensJourney Apr 30, 2025
8da17b5
update time durations from ms to TimeInterval
stevensJourney Apr 30, 2025
2cbb640
Merge remote-tracking branch 'origin/main' into api
stevensJourney Apr 30, 2025
798c533
update package
stevensJourney May 2, 2025
42f9fa0
cleanup
stevensJourney May 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/PowerSync/Kotlin/DatabaseLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private class KermitLogWriterAdapter: Kermit_coreLogWriter {
///
/// This class bridges Swift log writers with the Kotlin logging system and supports
/// runtime configuration of severity levels and writer lists.
internal class DatabaseLogger: LoggerProtocol {
class DatabaseLogger: LoggerProtocol {
/// The underlying Kermit logger instance provided by the PowerSyncKotlin SDK.
public let kLogger = PowerSyncKotlin.generateLogger(logger: nil)
public let logger: any LoggerProtocol
Expand Down
5 changes: 2 additions & 3 deletions Sources/PowerSync/Kotlin/KotlinAdapter.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import PowerSyncKotlin


internal struct KotlinAdapter {
enum KotlinAdapter {
struct Index {
static func toKotlin(_ index: IndexProtocol) -> PowerSyncKotlin.Index {
PowerSyncKotlin.Index(
Expand All @@ -26,7 +25,7 @@ internal struct KotlinAdapter {
static func toKotlin(_ table: TableProtocol) -> PowerSyncKotlin.Table {
PowerSyncKotlin.Table(
name: table.name,
columns: table.columns.map {Column.toKotlin($0)},
columns: table.columns.map { Column.toKotlin($0) },
indexes: table.indexes.map { Index.toKotlin($0) },
localOnly: table.localOnly,
insertOnly: table.insertOnly,
Expand Down
Loading
Loading