Small Capacitor plugins for the bats apps,
each a minimal 1:1 wrapper over one platform API, in a folder of its own
under packages/. They are written for apps built by
bats-lang/pwa, whose plugins
bats-lang/bridge names, but any
Capacitor 8 app can use them.
Nothing here is published to npm. An app installs a plugin from a commit
of this repository's main and the plugin's folder, with pnpm 9 or
later (npm cannot install from a subfolder of a git repository):
"dependencies": {
"@bats-lang/capacitor-<name>": "github:bats-lang/capacitor-plugins#<commit>&path:/packages/<name>"
}Each plugin's built dist/ is committed, so nothing is built at
install. Capacitor's cap sync expects the plugin in the app's
top-level node_modules, so the app's pnpm-workspace.yaml says:
nodeLinker: hoisted(pnpm 11 and later read this setting there, not from .npmrc.) Then
pnpm exec cap sync android registers the plugin.
Each plugin's own README documents its API.
- google-authorize: Google authorization on
Android with no sign-in (Play services'
AuthorizationClient), shaped as Flutter's google_sign_in authorization client. Its demo app, to check it on a phone, is in itsexample/; the APK is the artifact of thedemo-apkworkflow's runs.