Android Development with Cuppa
Cuppa brings cross-platform development to Android with seamless Jetpack Compose integration, allowing you to build beautiful native Android applications while sharing business logic across platforms.
Why Cuppa for Android?
- Native Jetpack Compose Integration: Build with modern Compose UI that follows Material Design
- Shared Business Logic: Reuse your core application logic across Web, iOS, and Android
- Type Safety: Full TypeScript and Kotlin type safety throughout your application
- Hot Reload: Fast development with instant preview updates
- Plugin Ecosystem: Extend functionality with authentication, data fetching, analytics, and more
Key Features
Jetpack Compose Components
Cuppa provides pre-built Compose components that follow Material Design guidelines:
- Form inputs and validation
- Navigation and routing
- Lists and lazy columns
- Dialogs and bottom sheets
- Custom theme support
Cross-Platform Architecture
Share code between platforms while maintaining native Android experiences:
// Shared business logic from TypeScript
import io.mycuppa.core.CuppaBridge
class ProductViewModel : ViewModel() {
private val _products = MutableStateFlow<List<Product>>(emptyList())
val products: StateFlow<List<Product>> = _products
fun loadProducts() {
viewModelScope.launch {
// Use shared Cuppa data layer
val result = CuppaBridge.call<List<Product>>(
function = "getProducts",
args = emptyMap()
)
_products.value = result
}
}
}
Native Performance
Cuppa compiles to native Android code, ensuring optimal performance and smooth animations.
What You'll Learn
In this Android section, you'll discover how to:
- Install and Configure - Set up Cuppa for Android development
- Build Your First App - Create a Compose app with Cuppa components
- Understand Architecture - Learn how Cuppa integrates with Android
- Use Jetpack Compose - Work with Cuppa's Compose component library
- Customize Components - Adapt components to your design system
Platform Support
- Minimum SDK: Android 8.0 (API level 26)
- Target SDK: Android 14 (API level 34)
- Kotlin: 1.9.0 or higher
- Compose: BOM 2024.01.00 or higher
Next Steps
Ready to start building? Continue to the Installation guide to set up your Android development environment.