Add embedded PocketBase sidecar for local server sync - #69
Merged
Conversation
Exposes applicationInfo.nativeLibraryDir via a MethodChannel so Dart can locate the bundled PocketBase .so. Spike wiring for pb_spike_screen.dart.
The PocketBase Spike entry is only visible in debug mode (kDebugMode) and provides a P0 feasibility check shortcut.
Cross-compile a self-contained Go binary (modernc/sqlite, no CGO) targeting android/arm64-v8a, strip symbols, and place it as libpocketbase.so in jniLibs so PackageManager copies it into nativeLibraryDir at install time. Includes four PocketBase JS migrations (vault_files, albums, tags, folders) embedded via embed.FS so the sidecar is fully self-contained.
The `pb-types` target copies the canonical `types.d.ts` from the pocketbase Go module cache into `pocketbase/pb_data/`, so that the `/// <reference>` directives in migration files resolve correctly. The vendored types are gitignored and regenerable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an embedded PocketBase Go sidecar (cross-compiled for android/arm64-v8a) with self-contained migrations, a debug spike screen for P0 feasibility testing, and vendor types for JS editor support.
Changes
PocketBase Sidecar
libpocketbase.soinjniLibsfor PackageManagernativeLibraryDircopyvault_files,albums,tags,folders) viaembed.FSnativeLibraryDirto Darthttpdependency and ignore PocketBase sidecarmake pb-typestarget to vendor PocketBase JS editor typesUI
bottomFootprintconstant toFloatingCapsuleBottomBarBuild
0.17.0-beta.10.17.0-beta.1changelog and What's New highlightsTesting