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
10 changes: 6 additions & 4 deletions demos/example-capacitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ To see it in action:

To run the iOS version of the app run:

1. `pnpm sync`
2. `pnpm ios`
1. `pnpm build`
2. `pnpm sync`
3. `pnpm ios`

## Android

To run the Android version of the app run:

1. `pnpm sync`
2. `pnpm android` (to see console run `chrome://inspect/#devices` in browser)
1. `pnpm build`
2. `pnpm sync`
3. `pnpm android` (to see console run `chrome://inspect/#devices` in browser)
1 change: 1 addition & 0 deletions demos/example-capacitor/src/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<html lang="en">
<head>
<meta name="theme-color" content="#c44eff" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<link rel="apple-touch-icon" href="/icons/icon.png" />
<link rel="stylesheet" href="./app/globals.css" />
<script type="module" src="./app/index.tsx"></script>
Expand Down
1 change: 1 addition & 0 deletions packages/capacitor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @powersync/capacitor
2 changes: 1 addition & 1 deletion packages/capacitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

_[PowerSync](https://www.powersync.com) is a sync engine for building local-first apps with instantly-responsive UI/UX and simplified state transfer. Syncs between SQLite on the client-side and Postgres, MongoDB or MySQL on the server-side._

This package (`@powersync/capacitor`) is the PowerSync SDK for Capacitor apps. It wraps the [PowerSync Web SDK](https://www.npmjs.com/package/@powersync/web) and uses [Capacitor Community SQLite](https://github.com/capacitor-community/sqlite) as the database driver for Android and iOS.
This package (`@powersync/capacitor`) is the PowerSync SDK for Capacitor apps. It wraps the [PowerSync Web SDK](https://www.npmjs.com/package/@powersync/web) for Capacitor PWAs and uses [Capacitor Community SQLite](https://github.com/capacitor-community/sqlite) as the database driver for Android and iOS.

## Note: Alpha Release

Expand Down
2 changes: 1 addition & 1 deletion packages/capacitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
},
"peerDependencies": {
"@capacitor-community/sqlite": "^7.0.2",
"@powersync/web": "workspace:^"
"@powersync/web": "workspace:^1.27.1"
},
"swiftlint": "@ionic/swiftlint-config",
"capacitor": {
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.