feat: Implement API
Description
Login view (Task #11 (closed) Week 1) :
- Removed the .xcuserstate from git.
- Add AppUserDefaults & UserDefaultsWrapper And Rename NetworkingService to APIService.
- Add EndPoints and Path for API.
- Add primary key in db identify elections.
- Add getElection method to APIService.
- Update Realm schemaVersion.
- Add Credentials and xAuth user defaults
- Add login.
- Delete all elections from the database when logged out.
- Added ActivityIndicator and fixed bug with setting API key
closes #11 (closed)
UI Changes
Type of change
-
New feature (non-breaking change which adds functionality)
How Has This Been Tested?
-
Unit Test
Checklist:
-
My code follows the style guidelines of this project -
I have performed a self-review of my own code -
I have commented on my code, particularly in hard-to-understand areas -
I have made corresponding changes to the documentation -
My changes generate no new warnings -
I have added tests that prove my fix is effective or that my feature works -
New and existing unit tests pass locally with my changes
Edited by Siddharth Sen