Skip to content

Instantly share code, notes, and snippets.

View trinadhthatakula's full-sized avatar
🎯
a mix of concentration and spontaneity

Trinadh Thatakula trinadhthatakula

🎯
a mix of concentration and spontaneity
View GitHub Profile
@trinadhthatakula
trinadhthatakula / CoreArchitecture.kt
Last active November 24, 2025 09:28
⚡ 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>
@trinadhthatakula
trinadhthatakula / AdMob-in-Jetpack-Compose.md
Last active November 24, 2025 09:39
A collection of reusable Jetpack Compose functions for implementing various Google AdMob ad formats in modern Android apps using Kotlin.

💰 ADMOB COMPOSE INTEGRATION

  • Strategies: Banner, Interstitial, Native
  • Lifecycle: Handles onPause/onResume automatically
  • Interop: Uses AndroidView with factory lambdas to prevent leaks

Implementing AdMob Ads in Jetpack Compose

A guide to integrating Google AdMob ads (Banner, Adaptive Banner, Collapsible Banner, Interstitial, and Native Ads) into an Android application built with Jetpack Compose.

This guide provides reusable @Composable functions to display different types of ads and follows modern Android development practices, which as a mobile developer who prefers state-based programming with MVVM, you'll find quite familiar.