ios-templates
ios-templates copied to clipboard
[#324] Use Moya as the main Network Layer
https://github.com/nimblehq/ios-templates/issues/324
What happened
Replace Alamofire with Moya as main network layer of the template.
Insight
- Remove
Alamofirefrom Pod - Add
Moyain Pod - Update networking code to use
Moya - Add comments for better readability
- Test this branch by creating a separate app from it
- Remove common
RequestConfigurationas it is not needed, developers can create their own request configurationenumextending Moya'sTargetType
Proof Of Work
-
Created a demo app from this branch, request-response working fine
-
Create different configurations independently
-
Sample configuration 1:

-
Sample configuration 2:

-
Call using any configuration with any decodable type

-
Write test with stubbed provider

@blyscuit @ducbm051291 I have updated the PR, please take a look
@Shayokh144 we will have this initiative Replace-Network-Layer-with-Moya to work on before making the change to our ios templates. So I'll close this PR. cc: @nimblehq/ios-chapter