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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
matrix:
include:
- os: macos-latest
targets: iosSimulatorArm64Test macosArm64Test watchosSimulatorArm64Test jvmTest
targets: iosSimulatorArm64Test macosArm64Test watchosSimulatorArm64Test tvosSimulatorArm64Test jvmTest
- os: ubuntu-latest
targets: testDebugUnitTest testReleaseUnitTest jvmTest lintKotlin
- os: windows-latest
targets: jvmTest
runs-on: ${{ matrix.os }}
timeout-minutes: 15
timeout-minutes: 20

steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.powersync

import co.touchlab.sqliter.DatabaseConnection

internal actual fun DatabaseConnection.loadPowerSyncSqliteCoreExtension() {
loadPowerSyncSqliteCoreExtensionDynamically()
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kotlinx-datetime = "0.7.1"
kotlinx-io = "0.8.0"
ktor = "3.2.3"
uuid = "0.8.4"
powersync-core = "0.4.2"
powersync-core = "0.4.4"
sqlite-jdbc = "3.50.3.0"
sqliter = "1.3.3"
turbine = "1.2.1"
Expand Down
1 change: 1 addition & 0 deletions plugins/build-plugin/src/main/kotlin/SharedBuildPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class SharedBuildPlugin : Plugin<Project> {
// We're testing on simulators
Family.IOS -> "ios-arm64_x86_64-simulator"
Family.WATCHOS -> "watchos-arm64_x86_64-simulator"
Family.TVOS -> "tvos-arm64_x86_64-simulator"
else -> return@configureEach
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ abstract class ClangCompile: DefaultTask() {
KonanTarget.WATCHOS_ARM64 -> "arm64_32-apple-watchos" to WATCHOS_SDK
KonanTarget.WATCHOS_SIMULATOR_ARM64 -> "aarch64-apple-watchos-simulator" to WATCHOS_SIMULATOR_SDK
KonanTarget.WATCHOS_X64 -> "x86_64-apple-watchos-simulator" to WATCHOS_SIMULATOR_SDK
KonanTarget.TVOS_ARM64 -> "aarch64-apple-tvos" to TVOS_SDK
KonanTarget.TVOS_X64 -> "x86_64-apple-tvos-simulator" to TVOS_SIMULATOR_SDK
KonanTarget.TVOS_SIMULATOR_ARM64 -> "aarch64-apple-tvos-simulator" to TVOS_SIMULATOR_SDK
else -> error("Unexpected target $target")
}

Expand Down Expand Up @@ -104,6 +107,8 @@ abstract class ClangCompile: DefaultTask() {
const val WATCHOS_SIMULATOR_SDK = "Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/"
const val IOS_SDK = "Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk"
const val IOS_SIMULATOR_SDK = "Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk"
const val TVOS_SDK = "Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk"
const val TVOS_SIMULATOR_SDK = "Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk"
const val MACOS_SDK = "Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public fun KotlinTargetContainerWithPresetFunctions.powersyncTargets(
macosX64()
macosArm64()

tvosSimulatorArm64()
tvosX64()
tvosArm64()

if (watchOS) {
watchosDeviceArm64() // aarch64-apple-watchos
watchosArm64() // arm64_32-apple-watchos
Expand Down
Loading