How easyhooon/book-search-android works
This is an Android Kakao book-search app with local favorites. Users search and page through remote results, open a shared detail view, or browse, sort, search, and price-filter saved books; favorite changes are shared across screens through Room. The graph follows the documented Root/Presenter/Screen and data-key boundaries. Some feature and favorite-key implementations were not excerpted, so those documented connections cite the README; unsampled implementation details are not inferred.
Main entry points: BookSearchApp.kt App composition · FavoritesPresenter.kt Favorites · BookDetailPresenter.kt Book detail · MainActivity.kt App entry
Components 25
App and navigation
- App entry
app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt - Dependency graph
app/src/main/kotlin/io/github/easyhooon/booksearch/AppGraph.kt - App composition
app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt - Tab navigation
app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/BookSearchNavHost.kt - List-detail layout
app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/ListDetailSceneStrategy.kt
Book features
- Book search
feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchPresenter.kt - Search entry
feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchScreenGraph.kt - Search screen
feature/search/src/main/kotlin/io/github/easyhooon/booksearch/feature/search/SearchScreen.kt - Favorites
feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesPresenter.kt - Favorites entry
feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreenGraph.kt - Favorites screen
feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreen.kt - Price filter
feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/PriceFilterSheet.kt - Detail entry
feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreenGraph.kt - Book detail
feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailPresenter.kt - Detail screen
feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreen.kt
Data access
- Search query key
core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/SearchBooksQueryKey.kt - Kakao service
core/network/src/main/kotlin/io/github/easyhooon/booksearch/core/network/KakaoBookService.kt - Favorite subscription
core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/FavoriteSubscriptionKeys.kt - Favorite mutation
core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/FavoriteMutationKey.kt - Favorite DAO
core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/FavoriteBookDao.kt - Room favorites
core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/BookSearchDatabase.kt
Shared models and UI
- Book model
core/model/src/main/kotlin/io/github/easyhooon/booksearch/core/model/Book.kt - Shared UI
core/ui/src/main/kotlin/io/github/easyhooon/booksearch/core/ui/component/BookCard.kt
Other components
- Reader
- Kakao Books API
Connections 29
- Reader → App entry: opens
app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt - App entry → Dependency graph: gets graph
app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt - App entry → App composition: hosts
app/src/main/kotlin/io/github/easyhooon/booksearch/MainActivity.kt - App composition → Tab navigation: composes
app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt - App composition → Search entry: registers
app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt - App composition → Favorites entry: registers
app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt - App composition → Detail entry: registers
app/src/main/kotlin/io/github/easyhooon/booksearch/BookSearchApp.kt - Tab navigation → List-detail layout: selects layout
app/src/main/kotlin/io/github/easyhooon/booksearch/navigation/BookSearchNavHost.kt - Search entry → Book search: creates presenter
README.md - Book search → Search screen: provides state
README.md - Favorites entry → Favorites: creates presenter
README.md - Favorites → Favorites screen: provides state
README.md - Favorites screen → Price filter: shows
feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreen.kt - Detail entry → Book detail: creates presenter
README.md - Book detail → Detail screen: provides state
README.md - Book search → Search query key: queries
README.md - Search query key → Kakao service: calls
core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/SearchBooksQueryKey.kt - Kakao service → Kakao Books API: requests books
README.md - Favorites → Favorite subscription: subscribes
README.md - Favorites → Favorite mutation: submits commands
README.md - Book detail → Favorite subscription: observes state
README.md - Book detail → Favorite mutation: changes favorite
README.md - Favorite subscription → Favorite DAO: observes Room
README.md - Favorite mutation → Favorite DAO: writes through
README.md - Room favorites → Favorite DAO: provides
core/database/src/main/kotlin/io/github/easyhooon/booksearch/core/database/BookSearchDatabase.kt - Search screen → Shared UI: renders
README.md - Favorites screen → Shared UI: renders
feature/favorites/src/main/kotlin/io/github/easyhooon/booksearch/feature/favorites/FavoritesScreen.kt - Detail screen → Shared UI: renders
feature/detail/src/main/kotlin/io/github/easyhooon/booksearch/feature/detail/BookDetailScreen.kt - Search query key → Book model: returns pages
core/data/src/main/kotlin/io/github/easyhooon/booksearch/core/data/SearchBooksQueryKey.kt