01
Shares are reserved only after payment is verified
Joining creates a pending transaction, not a seat. A congregant is added to the
animal's participant list with FieldValue.arrayUnion only when the
committee accepts the proof, which also prevents duplicates. Seats left are
calculated from that list, and the join button disables itself when the animal
is full or already slaughtered.
02
An in-app camera for reliable proof photos
Proofs of transfer and animal photos are taken with CameraX,
with gallery upload as a fallback. Before upload, each photo has its rotation
fixed and is compressed to under 1 MB, which keeps uploads fast on mobile
data and Storage costs low.
03
Location first, address second
The committee picks the mosque's position on a Google Map
instead of typing an address. The app stores coordinates and turns them into a
readable address with the Geocoder, so congregants can find nearby mosques on a
map using Fused Location.
04
One user model, two roles
Both roles live in a single user collection with an
admin flag. At login, the app checks that the chosen role matches
the stored one before routing to the committee or congregant home. One-shot
results like login and registration use a SingleLiveEvent, so they
don't fire again on rotation.