This PR contains the work done to implement some useful protocols, classes and extensions to use to setup a persistence layer in an application.
To provide further details about the work done:
- [x] declared the `Persistence` target in the Package file;
- [x] forgot to declare the `Communications` and `Persistence` target to the `SwiftLibs` library in the `Package` file;
- [x] defined the `Service` public protocol;
- [x] implemented the `Fetcher` generic class;
- [x] implemented the `bitBucket` static property in the `URL+Devices` public extension;
- [x] updated the `README` file.
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #5
This PR constains the work done to define the necessary protocols and enumerations to start defining remote API service as well as an implementation of the `URLProtocol` to mock requests and responses when using the `URLSession` to make remote calls.
To provide further details about this work:
- [x] declared the `Communications` library in the `Package` file;
- [x] defined the minimum Apple platform versions in the `Package` file to support the async/await feature;
- [x] defined the `HTTPRequestMethod` and `HTTPResponseCode` public enumerations;
- [x] defined the `Endpoint` and `Client` public protocols;
- [x] implemented the internal `MakeURLRequestUseCase` use case;
- [x] implemented the `MockURLProtocol` class that mocks requests and responses on `URLSession` instances;
- [x] started writing and updating the `README` file.
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #4