51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
---
|
|
title: Kotlin SDK for Android and Multiplatform
|
|
description: Install and initialize the official InsForge Kotlin SDK to access auth, database, storage, and realtime from Android and Kotlin Multiplatform apps.
|
|
---
|
|
|
|
import KotlinSdkInstallation from '/snippets/kotlin-sdk-installation.mdx';
|
|
|
|
The InsForge Kotlin SDK provides a native Kotlin client for interacting with InsForge services from Android applications and Kotlin Multiplatform projects.
|
|
|
|
## Installation
|
|
|
|
<KotlinSdkInstallation />
|
|
|
|
## Features
|
|
|
|
- **Database** - Type-safe CRUD operations with Kotlin Serialization
|
|
- **Authentication** - Email/password and OAuth authentication
|
|
- **Storage** - File upload, download, and management
|
|
- **AI** - Chat completions and image generation
|
|
- **Realtime** - WebSocket-based pub/sub messaging
|
|
- **Coroutines** - Full Kotlin Coroutines support
|
|
- **Jetpack Compose** - Composable functions and state management
|
|
|
|
## Platform support
|
|
|
|
| Platform | Support |
|
|
|----------|---------|
|
|
| Android | 5.0+ (API 21+) |
|
|
| JVM | Java 11+ |
|
|
| Kotlin Multiplatform (coming soon) | iOS, macOS, JS (experimental) |
|
|
|
|
## SDK reference
|
|
|
|
<CardGroup cols={2}>
|
|
<Card title="Database" icon="database" href="/sdks/kotlin/database">
|
|
CRUD operations with Kotlin data classes
|
|
</Card>
|
|
<Card title="Authentication" icon="lock" href="/sdks/kotlin/auth">
|
|
Sign up, sign in, OAuth, and user management
|
|
</Card>
|
|
<Card title="Storage" icon="cloud-arrow-up" href="/sdks/kotlin/storage">
|
|
File upload, download, and management
|
|
</Card>
|
|
<Card title="AI" icon="brain" href="/sdks/kotlin/ai">
|
|
Chat completions and image generation
|
|
</Card>
|
|
<Card title="Realtime" icon="signal-stream" href="/sdks/kotlin/realtime">
|
|
WebSocket pub/sub messaging
|
|
</Card>
|
|
</CardGroup>
|