HosteDay Kotlin & Android SDK
Modular Kotlin & Android SDK built with Coroutines, Flow, and Jetpack Compose support. Seamlessly integrates hosteday_config.json, Database CRUD, Reverb WebSockets, and FCM notifications.
Package Overview
HosteDay Kotlin & Android SDK is architected as a clean 5-module library so you only bundle what your app needs. Built natively with Kotlin Coroutines, Flow, and Jetpack Compose state helpers, it connects directly to your HosteDay environment using the unified hosteday_config.json file and is published on Maven Central (com.hosteday) and JitPack.
Key Capabilities
- Clean 5-module architecture
- Native Kotlin Coroutines & Flow
- First-class Jetpack Compose helpers
- Auto-reconnecting Reverb WebSockets
- Official distribution via Maven Central & JitPack
Installation & Setup
Add the dependency to your project, then download hosteday_config.json from SDK Connect in your dashboard.
// Option 1 (Recommended): Maven Central — https://central.sonatype.com/namespace/com.hosteday
// settings.gradle.kts already includes mavenCentral() by default
// app/build.gradle.kts
dependencies {
implementation("com.hosteday:hosteday-core:1.0.1")
implementation("com.hosteday:hosteday-android:1.0.1")
implementation("com.hosteday:hosteday-realtime:1.0.1")
implementation("com.hosteday:hosteday-notifications:1.0.1")
implementation("com.hosteday:hosteday-compose:1.0.1")
}
// Option 2 (Alternative): JitPack — add maven("https://jitpack.io") in settings.gradle.kts
// dependencies {
// implementation("com.github.mustafa3max.hosteday-kotlin:hosteday-android:v1.0.1")
// implementation("com.github.mustafa3max.hosteday-kotlin:hosteday-realtime:v1.0.1")
// implementation("com.github.mustafa3max.hosteday-kotlin:hosteday-notifications:v1.0.1")
// implementation("com.github.mustafa3max.hosteday-kotlin:hosteday-compose:v1.0.1")
// }
Modules Breakdown
Clean modular architecture so you can include only the components your application needs.
hosteday-core
HTTP client, Auth, fluent Database CRUD query builder, and hosteday_config.json parser (pure Kotlin JVM & Android).
hosteday-realtime
Reverb WebSocket client exposing public, private, and presence channel events as reactive Kotlin Flows.
hosteday-notifications
Automatic FCM device token registration, topic subscriptions, and notification payload handling.
hosteday-android
Context-aware initialization, EncryptedSharedPreferences token storage, and Android assets config loader.
hosteday-compose
Composable state helpers like rememberHostedayRealtime and lifecycle-aware Flow collectors for Compose UIs.
Interactive Code Examples
Copy-ready examples covering initialization, authentication, database CRUD filters, and realtime WebSockets.
import android.app.Application
import com.hosteday.android.HostedayAndroid
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
// Loads assets/hosteday_config.json automatically
HostedayAndroid.initialize(
context = this,
configAssetName = "hosteday_config.json",
)
}
}
More HosteDay SDKs
Explore other official packages to ship cross-platform apps on the same cloud backend.
HosteDay Flutter SDK
Official Dart & Flutter SDK to connect your mobile and web apps to HosteDay via unified hosteday_config.json, with built-in Auth, Database CRUD, Realtime WebSockets, and Push Notifications.
Official Python SDK
Official async-first Python SDK for HosteDay — connect backends, AI agents, and apps via hosteday_config.json or env vars with standard CRUD, Auth, Realtime WebSockets (Reverb), Push Notifications, Background Jobs, and an embedded Web App engine.