Skip to content

mishadovhiy/ios-assignment

 
 

Repository files navigation

Completed tasks:

1. Refactor code style - 1 point

3. Refactor architecture to MVVM - 2 points

4. Refactor networking layer to Combine - 2 points

5. Make it able to use both combine и non-combine network layers - 1 point

Combine network layer
https://github.com/mishadovhiy/ios-assignment/blob/main/engenious-challenge/Model/NetworkService/RepositoryService.swift#L26

non-combine network layer
https://github.com/mishadovhiy/ios-assignment/blob/main/engenious-challenge/Model/NetworkService/RepositoryService.swift#L14C10-L14C25

NetworkPublisher
https://github.com/mishadovhiy/ios-assignment/blob/main/engenious-challenge/Model/NetworkService/NetworkPublisher.swift#L12

6. Make a unit test for network layer - 1 point

created small unit test https://github.com/mishadovhiy/ios-assignment/blob/main/engenious-challengeTests/NetworkServiceTests.swift#L15 calls async method getRepositories to check that results for passed username are not nill




Previews



preview.mov

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%