CruCentralCoast / CruiOS

iOS mobile app for Cru Central Coast. NOTE: The app has been decommissioned and this repo has been archived
1 stars 2 forks source link

Realm and Firebase integration #175

Closed tydahlwave closed 6 years ago

tydahlwave commented 6 years ago

Completely restructured the database layer on the frontend.

The app is automatically updated when changes occur in the Firebase database. This means that the Realm database on the app is always up-to-date.

Let me know if there are any method names that are confusing or ways that I could structure things better.

tydahlwave commented 6 years ago

I know it looks like a lot of files, but that's just because of the Pod that I added. Most of the changes are in the DatabaseManager class and the data classes like Event, Movement, etc.

tydahlwave commented 6 years ago

Unfortunately, the integration of Realm broke the way we were assigning images to data classes. Using the @objc dynamic tag makes a property managed by Realm, but it does not support UIImage. Thus, I need to create an ImageManager to remedy the problem.