Skip to content

Instantly share code, notes, and snippets.

@Zmei-hub
Zmei-hub / CoreArchitecture.kt
Created February 18, 2026 00:51 — forked from trinadhthatakula/CoreArchitecture.kt
⚡ Trinadh's Core Android Architecture (Kotlin + Koin)
/**
* 🚀 Core Architecture: Safe API Calling with Koin & Coroutines
* Stack: Kotlin | Koin | Flow | Result Pattern
* Author: Trinadh Thatakula
*/
// 1. type-safe Result wrapper
sealed interface DataResult<out T> {
data class Success<T>(val data: T) : DataResult<T>