How froggoreng/ecobite-foodrescue works
EcoBite is a native Android community food-rescue app. Donors publish surplus listings; recipients search and reserve food with a pickup time; volunteers or recipients complete or cancel collection; users can review history and impact. The README documents SQLite transactions, local photo storage, validation, and status tracking. Source excerpts were not provided for app code, so relationships below rely on the README’s workflow and structure descriptions rather than inspected implementation details.
Main entry points: MainActivity.kt Main navigation · EcoBiteDatabaseHelper.kt Local SQLite · HistoryFragment.kt History views · AddFoodFragment.kt List surplus
Components 20
App navigation
- Main navigation
app/src/main/java/com/example/ecobite/MainActivity.kt
Food rescue workflow
- List surplus
app/src/main/java/com/example/ecobite/ui/donate/AddFoodFragment.kt - Search and explore
app/src/main/java/com/example/ecobite/ui/explore/ExploreFragment.kt - Listing cards
app/src/main/java/com/example/ecobite/ui/explore/FoodAdapter.kt - Collection status
app/src/main/java/com/example/ecobite/ui/rescue/VolunteerFragment.kt - Task cards
app/src/main/java/com/example/ecobite/ui/rescue/VolunteerAdapter.kt
Records and impact
- Reservation records
app/src/main/java/com/example/ecobite/data/model/Reservation.kt - Local SQLite
app/src/main/java/com/example/ecobite/data/local/EcoBiteDatabaseHelper.kt - History views
app/src/main/java/com/example/ecobite/ui/history/HistoryFragment.kt - Collection cards
app/src/main/java/com/example/ecobite/ui/history/HistoryAdapter.kt - Donation cards
app/src/main/java/com/example/ecobite/ui/history/DonationAdapter.kt - Demo records
app/src/main/java/com/example/ecobite/data/local/SampleData.kt
Shared domain services
- Food photos
app/src/main/java/com/example/ecobite/util/FoodImages.kt - Input validation
app/src/main/java/com/example/ecobite/util/Validation.kt - Food and status models
app/src/main/java/com/example/ecobite/data/model - Impact totals
app/src/main/java/com/example/ecobite/util/Impact.kt - Tracking timeline
app/src/main/java/com/example/ecobite/ui/common/Dialogs.kt
Other components
- Donors
- Recipients
- Volunteers
Connections 26
- Donors → Main navigation: use app
README.md - Recipients → Main navigation: use app
README.md - Volunteers → Main navigation: use app
README.md - Main navigation → List surplus: opens tab
README.md - Main navigation → Search and explore: opens tab
README.md - Main navigation → Collection status: opens tab
README.md - Main navigation → History views: opens tab
README.md - Donors → List surplus: lists surplus
README.md - List surplus → Input validation: validates listing
README.md - List surplus → Food photos: saves photo
README.md - List surplus → Local SQLite: stores listing
README.md - Recipients → Search and explore: searches food
README.md - Search and explore → Listing cards: shows listings
README.md - Search and explore → Input validation: validates reservation
README.md - Search and explore → Local SQLite: reserves transactionally
README.md - Local SQLite → Reservation records: persists reservation
README.md - Local SQLite → Food and status models: stores domain data
README.md - Volunteers → Collection status: updates collection
README.md - Collection status → Local SQLite: logs status changes
README.md - Collection status → Task cards: shows tasks
README.md - History views → Local SQLite: reads records
README.md - History views → Collection cards: shows collections
README.md - History views → Donation cards: shows donations
README.md - History views → Impact totals: calculates totals
README.md - History views → Tracking timeline: shows timeline
README.md - Local SQLite → Demo records: initializes demo data
README.md