The purpose of this PR is to link our Firebase backend with the Home and Explore screens of our app. This includes:
-Linking Home screen to Firestore (Explore screen was linked to Firestore by @Zafouche )
-Linking both screens to our Image storage (Firebase storage).
Also, I renamed EventListOverview.kt to Home.kt
Our image management works as follows:
1:The addEvent or addAssociation function is called.
2:The associated image is uploaded to Firebase Firestore with uploadImage.
3:On success, uploadImage returns the Uri to this image.
4:We then insert this Uri into the "image" field of our Event or Association
5:Finally, we add our Event or Association to Firestore.
6:Using the composable AsyncImage, we can then show our images using their Firebase Storage Uris :)
/!\ This PR does NOT include configuring the caching of said images, I will look into it soon.
The purpose of this PR is to link our Firebase backend with the Home and Explore screens of our app. This includes:
-Linking Home screen to Firestore (Explore screen was linked to Firestore by @Zafouche ) -Linking both screens to our Image storage (Firebase storage).
Also, I renamed EventListOverview.kt to Home.kt
Our image management works as follows:
1:The addEvent or addAssociation function is called. 2:The associated image is uploaded to Firebase Firestore with uploadImage. 3:On success, uploadImage returns the Uri to this image. 4:We then insert this Uri into the "image" field of our Event or Association 5:Finally, we add our Event or Association to Firestore. 6:Using the composable AsyncImage, we can then show our images using their Firebase Storage Uris :)
/!\ This PR does NOT include configuring the caching of said images, I will look into it soon.