Skip to content
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6feb22b
Initial extension testing.
rkistner Aug 22, 2023
6d20fae
Replace schema logic with rust extension.
rkistner Aug 23, 2023
1343b48
Use extension for saving operations.
rkistner Aug 23, 2023
eb45c75
Auto tx_id.
rkistner Aug 24, 2023
cc6d08d
Use sync_local op.
rkistner Aug 24, 2023
1ebb56c
Validate checksums using extension.
rkistner Aug 27, 2023
49d1451
clear_remove_ops
rkistner Aug 27, 2023
8e138b5
delete_pending_buckets
rkistner Aug 27, 2023
bb4281c
delete_bucket
rkistner Aug 27, 2023
507ee38
Fix deadlock on closing of connection.
rkistner Sep 4, 2023
15ebc61
WIP.
rkistner Oct 3, 2023
33d5d92
Merge remote-tracking branch 'origin/master' into rust-lib
rkistner Jan 4, 2024
07fe067
Update/fix tests.
rkistner Jan 4, 2024
b02c9cb
Add view name override.
rkistner Jan 4, 2024
5c91489
Retry opening database if locked.
rkistner Jan 4, 2024
8281fc5
Merge remote-tracking branch 'origin/master' into rust-lib
rkistner Jan 4, 2024
123ebae
Fix lint issues.
rkistner Jan 4, 2024
127756a
Use higher-level `updateSchema` in tests; test viewName alias.
rkistner Jan 31, 2024
273b1a3
Merge branch 'master' into rust-lib-integration
mugikhan May 22, 2024
fd6f2e8
Load extension for android and iOS
mugikhan May 22, 2024
b450ac3
Load extension for iOS, MacOS and Android
mugikhan May 23, 2024
b3e6e22
Include powersync_flutter_libs
mugikhan May 27, 2024
588842b
Rename android package
mugikhan May 27, 2024
3d352a4
Update windows and linux extension scripts
mugikhan Jun 2, 2024
1393881
Download binary in cmake
mugikhan Jun 4, 2024
580d56e
Fix arch in cmake
mugikhan Jun 4, 2024
d662e12
Fix binary download
mugikhan Jun 4, 2024
c53ec21
Load extension on windows
mugikhan Jun 4, 2024
4175bdc
Clean up readme and changelog
mugikhan Jun 4, 2024
6268fa9
Remove test code
mugikhan Jun 4, 2024
be3348d
Update Abi check for current platform
mugikhan Jun 5, 2024
2a22537
Clean up unused files
mugikhan Jun 5, 2024
8111db7
Update path dependencies
mugikhan Jun 5, 2024
43ca9cd
Test downloading powersync binary for tests
mugikhan Jun 5, 2024
f89e51b
Fix download for linux binary
mugikhan Jun 5, 2024
9d51339
Add binary download for demos workflow
mugikhan Jun 5, 2024
7813689
Download latest binaries
mugikhan Jun 5, 2024
1469c00
Bump version of powersync
mugikhan Jun 6, 2024
c9ec617
Bump minor version
mugikhan Jun 6, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
powersync_flutter_libs
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
7 changes: 7 additions & 0 deletions demos/supabase-anonymous-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ packages:
relative: true
source: path
version: "1.3.1"
powersync_flutter_libs:
dependency: transitive
description:
path: "../../../powersync_flutter_libs"
relative: true
source: path
version: "0.0.1"
realtime_client:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
powersync_flutter_libs
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
powersync_flutter_libs
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
7 changes: 7 additions & 0 deletions demos/supabase-edge-function-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ packages:
relative: true
source: path
version: "1.3.1"
powersync_flutter_libs:
dependency: transitive
description:
path: "../../../powersync_flutter_libs"
relative: true
source: path
version: "0.0.1"
realtime_client:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
powersync_flutter_libs
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
powersync_flutter_libs
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
7 changes: 7 additions & 0 deletions demos/supabase-simple-chat/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,13 @@ packages:
relative: true
source: path
version: "1.3.1"
powersync_flutter_libs:
dependency: transitive
description:
path: "../../../powersync_flutter_libs"
relative: true
source: path
version: "0.0.1"
realtime_client:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
powersync_flutter_libs
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-todolist/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ android {
applicationId "co.powersync.demotodolist"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 21
minSdkVersion 24
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
32 changes: 21 additions & 11 deletions demos/supabase-todolist/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- powersync-sqlite-core (0.1.6)
- powersync_flutter_libs (0.0.1):
- Flutter
- powersync-sqlite-core (~> 0.1.6)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- sqlite3 (3.45.1):
- sqlite3/common (= 3.45.1)
- sqlite3/common (3.45.1)
- sqlite3/fts5 (3.45.1):
- "sqlite3 (3.45.3+1)":
- "sqlite3/common (= 3.45.3+1)"
- "sqlite3/common (3.45.3+1)"
- "sqlite3/fts5 (3.45.3+1)":
- sqlite3/common
- sqlite3/perf-threadsafe (3.45.1):
- "sqlite3/perf-threadsafe (3.45.3+1)":
- sqlite3/common
- sqlite3/rtree (3.45.1):
- "sqlite3/rtree (3.45.3+1)":
- sqlite3/common
- sqlite3_flutter_libs (0.0.1):
- Flutter
- sqlite3 (~> 3.45.1)
- "sqlite3 (~> 3.45.3+1)"
- sqlite3/fts5
- sqlite3/perf-threadsafe
- sqlite3/rtree
Expand All @@ -33,12 +37,14 @@ DEPENDENCIES:
- camera_avfoundation (from `.symlinks/plugins/camera_avfoundation/ios`)
- Flutter (from `Flutter`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- powersync_flutter_libs (from `.symlinks/plugins/powersync_flutter_libs/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)

SPEC REPOS:
trunk:
- powersync-sqlite-core
- sqlite3

EXTERNAL SOURCES:
Expand All @@ -50,6 +56,8 @@ EXTERNAL SOURCES:
:path: Flutter
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
powersync_flutter_libs:
:path: ".symlinks/plugins/powersync_flutter_libs/ios"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sqlite3_flutter_libs:
Expand All @@ -58,14 +66,16 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
app_links: 5ef33d0d295a89d9d16bb81b0e3b0d5f70d6c875
app_links: e70ca16b4b0f88253b3b3660200d4a10b4ea9795
camera_avfoundation: 759172d1a77ae7be0de08fc104cfb79738b8a59e
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
powersync-sqlite-core: 4c38c8f470f6dca61346789fd5436a6826d1e3dd
powersync_flutter_libs: 5d6b132a398de442c0853a8b14bfbb62cd4ff5a1
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
sqlite3: 73b7fc691fdc43277614250e04d183740cb15078
sqlite3_flutter_libs: af0e8fe9bce48abddd1ffdbbf839db0302d72d80
url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812
sqlite3: 02d1f07eaaa01f80a1c16b4b31dfcbb3345ee01a
sqlite3_flutter_libs: 9bfe005308998aeca155330bbc2ea6dddf834a3b
url_launcher_ios: 6116280ddcfe98ab8820085d8d76ae7449447586

PODFILE CHECKSUM: f7b3cb7384a2d5da4b22b090e1f632de7f377987

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
#include "generated_plugin_registrant.h"

#include <gtk/gtk_plugin.h>
#include <powersync_flutter_libs/powersync_flutter_libs_plugin.h>
#include <sqlite3_flutter_libs/sqlite3_flutter_libs_plugin.h>
#include <url_launcher_linux/url_launcher_plugin.h>

void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) gtk_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "GtkPlugin");
gtk_plugin_register_with_registrar(gtk_registrar);
g_autoptr(FlPluginRegistrar) powersync_flutter_libs_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "PowersyncFlutterLibsPlugin");
powersync_flutter_libs_plugin_register_with_registrar(powersync_flutter_libs_registrar);
g_autoptr(FlPluginRegistrar) sqlite3_flutter_libs_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "Sqlite3FlutterLibsPlugin");
sqlite3_flutter_libs_plugin_register_with_registrar(sqlite3_flutter_libs_registrar);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

list(APPEND FLUTTER_PLUGIN_LIST
gtk
powersync_flutter_libs
sqlite3_flutter_libs
url_launcher_linux
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ import Foundation

import app_links
import path_provider_foundation
import powersync_flutter_libs
import shared_preferences_foundation
import sqlite3_flutter_libs
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
AppLinksMacosPlugin.register(with: registry.registrar(forPlugin: "AppLinksMacosPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
PowersyncFlutterLibsPlugin.register(with: registry.registrar(forPlugin: "PowersyncFlutterLibsPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
Sqlite3FlutterLibsPlugin.register(with: registry.registrar(forPlugin: "Sqlite3FlutterLibsPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
Expand Down
42 changes: 23 additions & 19 deletions demos/supabase-todolist/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@ PODS:
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- powersync-sqlite-core (0.1.6)
- powersync_flutter_libs (0.0.1):
- FlutterMacOS
- powersync-sqlite-core (~> 0.1.6)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- sign_in_with_apple (0.0.1):
- FlutterMacOS
- sqlite3 (3.43.1):
- sqlite3/common (= 3.43.1)
- sqlite3/common (3.43.1)
- sqlite3/fts5 (3.43.1):
- "sqlite3 (3.45.3+1)":
- "sqlite3/common (= 3.45.3+1)"
- "sqlite3/common (3.45.3+1)"
- "sqlite3/fts5 (3.45.3+1)":
- sqlite3/common
- sqlite3/perf-threadsafe (3.43.1):
- "sqlite3/perf-threadsafe (3.45.3+1)":
- sqlite3/common
- sqlite3/rtree (3.43.1):
- "sqlite3/rtree (3.45.3+1)":
- sqlite3/common
- sqlite3_flutter_libs (0.0.1):
- FlutterMacOS
- sqlite3 (~> 3.43.1)
- "sqlite3 (~> 3.45.3+1)"
- sqlite3/fts5
- sqlite3/perf-threadsafe
- sqlite3/rtree
Expand All @@ -32,13 +34,14 @@ DEPENDENCIES:
- app_links (from `Flutter/ephemeral/.symlinks/plugins/app_links/macos`)
- FlutterMacOS (from `Flutter/ephemeral`)
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
- powersync_flutter_libs (from `Flutter/ephemeral/.symlinks/plugins/powersync_flutter_libs/macos`)
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`)
- sign_in_with_apple (from `Flutter/ephemeral/.symlinks/plugins/sign_in_with_apple/macos`)
- sqlite3_flutter_libs (from `Flutter/ephemeral/.symlinks/plugins/sqlite3_flutter_libs/macos`)
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)

SPEC REPOS:
trunk:
- powersync-sqlite-core
- sqlite3

EXTERNAL SOURCES:
Expand All @@ -48,25 +51,26 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral
path_provider_foundation:
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
powersync_flutter_libs:
:path: Flutter/ephemeral/.symlinks/plugins/powersync_flutter_libs/macos
shared_preferences_foundation:
:path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin
sign_in_with_apple:
:path: Flutter/ephemeral/.symlinks/plugins/sign_in_with_apple/macos
sqlite3_flutter_libs:
:path: Flutter/ephemeral/.symlinks/plugins/sqlite3_flutter_libs/macos
url_launcher_macos:
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos

SPEC CHECKSUMS:
app_links: 4481ed4d71f384b0c3ae5016f4633aa73d32ff67
app_links: 10e0a0ab602ffaf34d142cd4862f29d34b303b2a
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
sign_in_with_apple: a9e97e744e8edc36aefc2723111f652102a7a727
sqlite3: e0a0623a33a20a47cb5921552aebc6e9e437dc91
sqlite3_flutter_libs: a91655e4a75a499364f693041aa1c6d1b36b66d0
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
powersync-sqlite-core: 4c38c8f470f6dca61346789fd5436a6826d1e3dd
powersync_flutter_libs: 1eb1c6790a72afe08e68d4cc489d71ab61da32ee
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
sqlite3: 02d1f07eaaa01f80a1c16b4b31dfcbb3345ee01a
sqlite3_flutter_libs: 8d204ef443cf0d5c1c8b058044eab53f3943a9c5
url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95

PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367

COCOAPODS: 1.12.1
COCOAPODS: 1.15.2
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1430;
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
7 changes: 7 additions & 0 deletions demos/supabase-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,13 @@ packages:
relative: true
source: path
version: "0.4.1"
powersync_flutter_libs:
dependency: transitive
description:
path: "../../packages/powersync_flutter_libs"
relative: true
source: path
version: "0.0.1"
realtime_client:
dependency: transitive
description:
Expand Down
6 changes: 4 additions & 2 deletions demos/supabase-todolist/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ environment:
dependencies:
flutter:
sdk: flutter
powersync_attachments_helper: ^0.1.4
powersync_attachments_helper:
path: ../../packages/powersync_attachments_helper

powersync: ^1.2.0
powersync:
path: ../../packages/powersync
path_provider: ^2.1.1
supabase_flutter: ^2.0.1
path: ^1.8.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
#include "generated_plugin_registrant.h"

#include <app_links/app_links_plugin_c_api.h>
#include <powersync_flutter_libs/powersync_flutter_libs_plugin.h>
#include <sqlite3_flutter_libs/sqlite3_flutter_libs_plugin.h>
#include <url_launcher_windows/url_launcher_windows.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
AppLinksPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("AppLinksPluginCApi"));
PowersyncFlutterLibsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PowersyncFlutterLibsPlugin"));
Sqlite3FlutterLibsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("Sqlite3FlutterLibsPlugin"));
UrlLauncherWindowsRegisterWithRegistrar(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

list(APPEND FLUTTER_PLUGIN_LIST
app_links
powersync_flutter_libs
sqlite3_flutter_libs
url_launcher_windows
)
Expand Down
Loading