🤯 How do I ship 5 SDKs on my own?

by•

How do I ship 5 SDKs on my own?

Swingback has SDKs for JavaScript, React, React Native, iOS and Android. Maintaining 5 SDKs alone sounds crazy, but there is a trick: they are all the same widget.

  1. The widget is a web page, and every SDK is a thin shell around it (a frame on the web, a WebView in native apps). When I add something to the widget, every platform gets it at once.

  2. How the widget and your app talk to each other is written in one file, and every SDK is tested against it. If I change something, the tests tell me which SDK breaks.

  3. No SDK holds a secret. Your server signs a token for the user (or you plug in Firebase, Supabase, Clerk or Auth0), so your users are signed in automatically.

All of them are MIT licensed.

Which platform should come next?

15 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.