An incredible technical test.
- Install the latest Xcode developer tools from Apple.
- Install Pods
sudo gem install cocoapods
- Clone the repository:
git clone https://github.com/Pr0gmaT1k/Newspaper
- Pull in the project dependencies:
cd Newspaper pod install
- Open
Newspaper.xcworkspace
in Xcode.
The Realm
object and ObjectMapper
decoder are generated from Tools/DataModel.xcdatamodel
with Gyro.
Gyro is a tool to generate Realm model classes, for both Android (Java & Kotlin) and iOS/macOS (Swift), from an .xcdatamodel
file.
-
Install Gyro:
⚠️ Need an unreleased version (in review) with the new codable template. Will be validated soon. Check progress⚠️ gem install gyro
-
Modify the data model in
Tools/DataModel.xcdatamodel
and then regenerate with gyro:./gyro.sh
- Moya: Network abstraction layer written in Swift.
- JWTDecode: This library will help you check JWT payload
- RealmSwift: Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the iOS, macOS, tvOS & watchOS versions of Realm Swift & Realm Objective-C.
- Codable: A type that can convert itself into and out of an external representation.
- Reusable: A Swift mixin to use UITableViewCells, UICollectionViewCells and UIViewControllers in a type-safe way, without the need to manipulate their String-typed reuseIdentifiers.