How zluck4270/app_mobile works
ECOLIMP is an offline-first Android app for recording waste collections and synchronizing them with Python services. The operator signs in, records a collection (with documented QR/photo assistance), and the app keeps records locally until synchronization; dashboards and reports expose collection status and history. The sampled repository implementation supports the local-storage and sync path, while the README documents scanner/photo analysis capabilities not visible in sampled Android source. The tree contains two Python backends; their relationship is not established.
Main entry points: RecoleccionRepository.java Collection repository · main.py ECOLIM API · RecoleccionFragment.java Collection entry · android QR and photo scan
Components 20
Android app
- Login and session
app/src/main/java/com/example/android/ui/login/LoginActivity.java - Session storage
app/src/main/java/com/example/android/utils/SessionManager.java - Collection entry
app/src/main/java/com/example/android/RecoleccionFragment.java - QR and photo scan
app/src/main/java/com/example/android - Dashboard
app/src/main/java/com/example/android/DashboardFragment.java - Reports and filters
app/src/main/java/com/example/android/ReportesFragment.java
Offline data
- Collection repository
android_data_layer/data/repository/RecoleccionRepository.java - Catalog repository
android_data_layer/data/repository/CatalogoRepository.java - Room DAO
android_data_layer/data/local/dao/EcolimDao.java - Local database
android_data_layer/data/local/EcolimDatabase.java - Local entities
android_data_layer/data/local/entity - Android API client
android_data_layer/api/ApiClient.java - API contract
android_data_layer/api/EcolimApiService.java
Python services
- ECOLIM API
backend/main.py - Request schemas
backend/schemas.py - Photo analysis
backend_ecolim/main.py
Server persistence
- Server models
backend/models.py - Database access
backend/database.py - PostgreSQL store
Other components
- Operator
Connections 20
- Operator → Login and session: signs in
README.md - Login and session → Session storage: stores session
README.md - Operator → Collection entry: records waste
README.md - Collection entry → QR and photo scan: scans QR or photo
README.md - QR and photo scan → Photo analysis: submits photo
README.md - Photo analysis → QR and photo scan: returns classification
README.md - Collection entry → Collection repository: saves collection
- Collection repository → Room DAO: reads and writes
android_data_layer/data/repository/RecoleccionRepository.java - Catalog repository → Room DAO: reads catalogs
android_data_layer/data/repository/CatalogoRepository.java - Room DAO → Local database: uses
android_data_layer/data/local/EcolimDatabase.java - Local database → Local entities: stores
android_data_layer/data/local/EcolimDatabase.java - Dashboard → Collection repository: reads status
- Reports and filters → Collection repository: requests history
- Collection repository → API contract: calls sync
android_data_layer/data/repository/RecoleccionRepository.java - API contract → ECOLIM API: documents endpoints
android_data_layer/api/EcolimApiService.java - ECOLIM API → Request schemas: validates requests
backend/main.py - ECOLIM API → Server models: queries and inserts
backend/main.py - ECOLIM API → Database access: opens sessions
backend/main.py - Server models → Database access: uses base
backend/models.py - Database access → PostgreSQL store: connects to
backend/database.py