Back to All SDKs
Official SDK Kotlin / Android v1.0.1 HosteDay Kotlin & Android SDK status badge Maven Central 1.0.1

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.

Registry
jitpack
Package Identifier
com.github.mustafa3max:hosteday-kotlin
Minimum SDK
Android API 24+ / Kotlin 2.0+
Views
5

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

Required
Core Client & Models

HTTP client, Auth, fluent Database CRUD query builder, and hosteday_config.json parser (pure Kotlin JVM & Android).

Artifact / Import
com.hosteday:hosteday-core:1.0.1

hosteday-realtime

WebSockets
Realtime WebSockets

Reverb WebSocket client exposing public, private, and presence channel events as reactive Kotlin Flows.

Artifact / Import
com.hosteday:hosteday-realtime:1.0.1

hosteday-notifications

FCM
Push Notifications

Automatic FCM device token registration, topic subscriptions, and notification payload handling.

Artifact / Import
com.hosteday:hosteday-notifications:1.0.1

hosteday-android

Android
Android Runtime Integration

Context-aware initialization, EncryptedSharedPreferences token storage, and Android assets config loader.

Artifact / Import
com.hosteday:hosteday-android:1.0.1

hosteday-compose

Compose
Jetpack Compose UI State

Composable state helpers like rememberHostedayRealtime and lifecycle-aware Flow collectors for Compose UIs.

Artifact / Import
com.hosteday:hosteday-compose:1.0.1

Interactive Code Examples

Copy-ready examples covering initialization, authentication, database CRUD filters, and realtime WebSockets.

kotlin
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.