Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 1.9.0 (unreleased)

- Updated user agent string formats to allow viewing version distributions in the new PowerSync dashboard.
- Sync options: `newClientImplementation` is now the default.
- Make `androidx.sqlite:sqlite-bundled` an API dependency of `:core` to avoid toolchain warnings.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package com.powersync.sync
import android.os.Build
import com.powersync.build.LIBRARY_VERSION

internal actual fun userAgent(): String = "PowerSync Kotlin SDK v$LIBRARY_VERSION (Android ${Build.VERSION.SDK_INT})"
internal actual fun userAgent(): String = "powersync-kotlin/$LIBRARY_VERSION android/${Build.VERSION.SDK_INT}"
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ internal actual fun userAgent(): String {
val osVersion = System.getProperty("os.version") ?: ""
val java = System.getProperty("java.vendor.version") ?: System.getProperty("java.runtime.version") ?: "unknown"

return "PowerSync Kotlin SDK v${LIBRARY_VERSION} (running Java $java on $os $osVersion)"
return "powersync-kotlin/${LIBRARY_VERSION} Java/$java $os/$osVersion"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ import com.powersync.build.LIBRARY_VERSION
import kotlin.experimental.ExperimentalNativeApi

@OptIn(ExperimentalNativeApi::class)
internal actual fun userAgent(): String =
"PowerSync Kotlin SDK v$LIBRARY_VERSION (running on ${Platform.cpuArchitecture.name} ${Platform.osFamily.name})"
internal actual fun userAgent(): String = "powersync-kotlin/v$LIBRARY_VERSION ${Platform.cpuArchitecture.name}/${Platform.osFamily.name}"