point: learning Firebase Auth, Firestore, and Android UI with Material components.
so far user can:
- register/login with email (with verification required) or Google account
- manage a personal drug list (saved in users/drugs)
- browse global drugs (drugs collection, read-only)
- check interactions between drugs and products (interactions collection, read-only)
- get regional alerts on products (products collection, read-only) with examples + GPS-based mapping
- edit personal profile (stored in users)
-
user signs up (Firebase Auth)
-
after login, user can browse global drug DB (cannot edit)
-
user can add drugs to their personal list (editable)
-
app checks drug–food/product interactions & drug–region alerts
-
app shows risks with chips, lists, and grouped warnings
-
user can maintain their profile & medication schedule
Firestore (with collections: drugs, interactions, products)
Authentication (Email+Password, Google)
google-services.json must be placed in /app/ (not included in repo)
🔻Main collections in Firestore (read-only for global data):
-
drugs → base info, synonyms, brand names
-
interactions → interactions between drugs & products
-
products → food/products with regional dishes & risk tags
🔻User-specific collections (editable):
-
users/{uid} → profile info
-
users/{uid}/drugs → personal drug list
🔻Android app features:
-
activities → login, register, drug search, profile, interactions
-
layout/ → XMLs (reusable cards, chip groups, etc.)
-
RegionMapper → maps GPS country → regional group (e.g., "USA", "Middle East")
- Notifications/reminders for drug intake (user already enters times, needs WorkManager/AlarmManager impl)
- Drug-to-drug interaction checks (would require extra Firestore structure)
- Export/share user medication history
- Smarter search (Lucene/Algolia for typo tolerance & relevance ranking)