This PR contains the work done to fix the naming of the libraries and the package, along with tweaks to the folder structure.
Reviewed-on: #22
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This PR contains the work done to provide string localisation support for the `Core` library.
To provide further details about the work done:
- [x] implemented the `localisation(for:)` function for the `Bundle+LocalisationBundle` extension;
- [x] implemented the `localise(for: in: value: table:)` function for the `String+Localisation` extension;
- [x] defined English as the default localisation language in the `Package.swift` file;
- [x] added the "vscode" target to the `Makefile` file.
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #21
This PR contains the work done to address the issue #12, with regards to provide basic support of non Apple platforms.
To provide further details about the work done:
- [x] flattened the folder structure, especially now that the idea to filter folders based on platform is being discarded;
- [x] implemented precompiler processors to filter out platform-specific source code;
- [x] updated the `Package` file to provide basic support for non-Apple platforms;
- [x] added and also improved some targets to the `Makefile` file to smooth the current development workflows;
- [x] updated the `.gitignore` file with references to the `.vscode` folder and the `.env` file;
- [x] updated the Swift tools version to v5.7.
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #13
This PR contains the work done to address the issue #10, that was raised based on the build logs from publishing the package in the Swift Package Index.
To provide further details about the work done:
- [x] fixed the `Router` protocol that was causing a compilation issue on *watchOS* platforms;
- [x] downgraded the swift tools version in the `Package` file to v5.5;
- [x] bumped the minimum platform version in the `Package` file to restrict support to the last 2 major releases;
- [x] written the *Installation* section in the `README` file;
- [x] updated the project logo assets, including light and dark versions;
- [x] updated the project logo in the `README` file and added support for both light and dark modes.
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #11
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
This PR contains the work done to provide a simple dependency injection feature whenever required.
To provide further details about this work:
- [x] renamed the `Coordinator` target in the `Package` file as `Coordination`;
- [x] declared the `Dependencies` target in the `Package` file;
- [x] defined the `DependencyKey` public protocol;
- [x] implemented the `DependencyService` public service;
- [x] implemented the `Dependency` public property wrapper;
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #3
This PR contains the work done to define the `Coordinator` and the `Router` public protocols, and also implemented a few concrete router implementations tailored for the **UIKit** framework.
To provide further details about the work done:
- [x] define a new, dedicated `Coordinator` target in the `Package` file;
- [x] define the `Coordinator` and the `Router` public protocols used to implement the coordinator pattern;
- [x] implemented some **UIKit** specific routers to use on the **iOS** platform: `ModalNavigationRouter`, `PushNavigationRouter` and the `WindowRouter` concrete routers.
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #2
This PR refers to the work done on setting the `Core` target as well as implemented some basic features as extension to a pair of `Swift` primitive types.
To give further details about this work:
- [x] defined the `Core` target;
- [x] implemented the **empty** static property and the **isNotEmpty()** function in the `String+Empty` extension;
- [x] implemented the **init(_: )** initialiser fo strings in the `Bool+Init` extension;
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #1