feat(formbricks): initial release#844
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Initial release of @capawesome/capacitor-formbricks, adding a cross-platform Capacitor wrapper around the Formbricks SDKs to enable in-app surveys/feedback on Web, Android, and iOS.
Changes:
- Added TypeScript plugin surface (
setup,track,logout, user/attribute/language setters) with a Web implementation wrapping@formbricks/js. - Added native implementations for Android (Kotlin + Capacitor plugin bridge) and iOS (Swift + Capacitor bridged plugin), including SDK dependency wiring.
- Added a full example app (Web/Android/iOS) plus packaging/build scaffolding (Rollup, TS config, CocoaPods/SwiftPM).
Reviewed changes
Copilot reviewed 102 out of 138 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/formbricks/src/definitions.ts | Defines the public Capacitor plugin API + option interfaces. |
| packages/formbricks/src/index.ts | Registers the plugin and wires the web implementation. |
| packages/formbricks/src/web.ts | Web implementation delegating to @formbricks/js. |
| packages/formbricks/android/** | Android native bridge + build config for com.formbricks:android. |
| packages/formbricks/ios/** | iOS native bridge + CocoaPods workspace + option parsing + errors. |
| packages/formbricks/README.md | Installation, platform notes (Data Binding / iOS min target), usage & API docs. |
| packages/formbricks/example/** | Example app scaffolding for smoke testing across platforms. |
| packages/formbricks/example/android/gradlew | Gradle wrapper script for the example Android project (contains a blocking issue). |
| packages/formbricks/package.json / rollup.config.mjs / tsconfig.json | Build + packaging configuration. |
| package-lock.json | Adds the new workspace package and its JS dependency. |
| .changeset/formbricks-plugin.md | Declares release notes/version bump for the new package. |
Files not reviewed (2)
- packages/formbricks/ios/Plugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata: Language not supported
- packages/formbricks/ios/Plugin.xcworkspace/contents.xcworkspacedata: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
@capawesome/capacitor-age-signals
@capawesome-team/capacitor-android-battery-optimization
@capawesome/capacitor-android-dark-mode-support
@capawesome/capacitor-android-edge-to-edge-support
@capawesome-team/capacitor-android-foreground-service
@capawesome/capacitor-app-review
@capawesome/capacitor-app-shortcuts
@capawesome/capacitor-app-update
@capawesome/capacitor-apple-sign-in
@capawesome/capacitor-asset-manager
@capawesome/capacitor-background-task
@capawesome/capacitor-badge
@capawesome/capacitor-cloudinary
@capawesome-team/capacitor-datetime-picker
@capawesome-team/capacitor-file-opener
@capawesome/capacitor-file-picker
@capawesome/capacitor-formbricks
@capawesome/capacitor-google-sign-in
@capawesome/capacitor-libsql
@capawesome/capacitor-live-update
@capawesome/capacitor-managed-configurations
@capawesome/capacitor-photo-editor
@capawesome/capacitor-pixlive
@capawesome/capacitor-posthog
@capawesome/capacitor-realtimekit
@capawesome/capacitor-screen-orientation
@capawesome/capacitor-screenshot
@capawesome/capacitor-square-mobile-payments
@capawesome/capacitor-superwall
@capawesome/capacitor-torch
commit: |
Member
Author
|
@copilot Do also update the github issue templates and add the new plugin there. |
Agent-Logs-Url: https://github.com/capawesome-team/capacitor-plugins/sessions/50c1f6d4-2a5b-47a7-92fa-3af5ce2e457b Co-authored-by: robingenz <13857929+robingenz@users.noreply.github.com>
Contributor
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
Initial release of
@capawesome/capacitor-formbricks, an unofficial Capacitor plugin wrapping the Formbricks SDKs for in-app surveys and feedback.The plugin exposes the common API surface supported across all three Formbricks SDKs (
@formbricks/js,com.formbricks:android,FormbricksSDKfor iOS):setup,setUserId,setAttribute,setAttributes,setLanguage,track,logoutNotes
com.formbricks:android:1.2.0. Host apps must enable Data Binding (documented in the README).FormbricksSDK ~> 1.2. Minimum deployment target bumped to 16.6 to match the FormbricksSDK podspec requirement.@formbricks/js@^4.4.0(declared as an optional peer dependency).Close #842
Test plan
npm run verifysucceeds for all three platformssetup+trackin the example app on Androidsetup+trackin the example app on iOSsetup+trackin the example app on Web