Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

capacitor-plugins

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.

Installing a plugin

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.

Plugins

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 its example/; the APK is the artifact of the demo-apk workflow's runs.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages