Important
Hotwire Native is the new consolidation of the Turbo Native and Strada libraries into a single framework for iOS and Android. For new development, start with the new Hotwire Native Android library, which is built on the Turbo Native foundation and offers many new features. For existing Turbo Native apps, please transition to Hotwire Native as soon as possible.
No new features will be added to this library and it will be deprecated in the coming months.
Strada lets you create fully native controls, driven by your web app. It's a set of libraries that work across your web, iOS, and Android apps to help you build features that make your Turbo Native hybrid apps stand out. Turn HTML elements that exist in the WebView into native components and communicate messages across your native and web code.
Strada Android enables you to create native components that receive and reply to messages from web components that are present on the page. Native components receive messages to run native code, whether it's to build high fidelity native UI or call platform APIs.
- Level up your Turbo Native hybrid apps with high-fidelity native components, driven by web components.
- Reuse web components for your iOS and Android apps.
- Communicate with the WebView and its web components without writing any JavaScript in your app.
- Android SDK 26+ is required as the
minSdk
in yourbuild.gradle.kts
file. - This library is written entirely in Kotlin, and your app should use Kotlin as well. Compatibility with Java is not provided or supported.
- This library supports Turbo Native hybrid apps.
- Your web app must be running strada-web. The
window.Strada
object is automatically exposed on the loaded WebView page, which enablesstrada-android
to work.
Note: You should understand how Strada works in the browser before attempting to use Strada Android. See the Strada documentation for details.
The best way to get started with Strada Android is to try out the Turbo Android demo app first to get familiar with the framework and what it offers. The demo app provides several Strada component examples. To run the demo, clone the turbo-android repo, and read the instructions.
Strada Android is open-source software, freely distributable under the terms of an MIT-style license. The source code is hosted on GitHub. Development is sponsored by 37signals.
We welcome contributions in the form of bug reports, pull requests, or thoughtful discussions in the GitHub issue tracker.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
© 2024 37signals LLC