A currency rate converter App.
To configure the API, inside the Info.plist, under
#YOUR_API_KEY with your actual
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> ... <key>CurrencyLayer</key> <dict> <key>APIKey</key> <string>#YOUR_API_KEY</string> </dict> </dict> </plist>
This project uses the concept of mocking the request to avoid the hitting the server while still using the actual
API request calls. All requests from the APIService are all hijacked and replaced with the mock ones.
- mock-resources: - api: - list:
I'm planning to improve this by having a
Code Conventionfor writting
HTTP Responselike adding custom
Response Headers, react to diffrent
Query Params, make it
pluggableand easy to use. Please check this Hijackr for more info in the Future.
Please see the RatesTests target for more info.
Test results can also be viewed from Travis CI - Rates
The App will only execute the actual
refreshonly after 30 minutes from the last successful request to avoid reaching the rate limitation of the API.
Due to the limitation of the
Free API Keyfrom Currency Layer, switching the
Base Currencyother than
USDwill alert an Error message like:
Access Restricted. Your current Subscription plan does not support Source Currency Switching.
And to solve this issue, you have to subscribed to their Paid Service.
- [ ] Test cases for Failed request.
- [ ] Localization
- [ ] Empty State for List
- [ ] Custom Keyboard Input
- [ ] UI Test cases
- [ ] Additional tests for different iOS and Device version.
- [ ] Reacheability.