How arjun-6573/pixabay-search works
Project type and purpose
• This is an Android mobile application (“Pixabay Search Images”) built with Kotlin.
• It follows Clean Architecture with MVVM, uses Retrofit (with cache), Coroutines & Flow, Hilt for DI, and Jetpack Compose for UI.
• Purpose: fetch and display images from the Pixabay REST API, allow searching by keyword, and show image details.
File structure
• app/src/main/java/com/example/pixabayseachimage
• ui/… → Presentation layer: Compose screens, Navigation (MyNavGraph), ViewModels
• domain/… → Domain layer: Entities, repository interfaces, use‐cases
• data/… → Data layer: RemoteDataSource, Retrofit API definitions, repository implementations, mappers
• di/… → Hilt modules (AppModule) for wiring up dependencies
• utils/…, dispatcher → Utility classes & custom Coroutine dispatchers
• Tests mirror layers for unit tests (FakeRemoteDataSource, ViewModel tests, etc.)
• Config files: build.gradle, proguard, gradle.properties (API key), network interceptor rules
README for additional insights
• Confirms “Offline first” via Retrofit cache.
• Emphasizes MVVM clean architecture and Kotlin Flow for UI state.
• Lists major libraries: Retrofit, Hilt, Coroutine, Coil (image loader), Timber, LeakCanary.