Back

Coderus Limited

Smart Code Solutions

In this Case-study

Icon

Share It On:

Coderus Limited Img

Matrixx Software | IOS App

Description

The main objective of this work package was to update the existing app to work with the latest versions of Xcode. This is so it could be developed and released using the latest tooling.

As part of this process several external dependencies were to be removed and different layers of the app refactored to improve maintainability, reliability and testability.

Challenge

The initial development of the project relied on Xcode 10.1 and Swift 3, both of which became obsolete and unsupported by Apple. This dependency created significant barriers to using modern development tools and required cumbersome workarounds.

Additionally, the project had accumulated technical debt, including an excessive number of external dependencies, invasive integrations, and deprecated APIs, complicating further development and maintenance.

Solutions

A systematic refactor was executed to overcome these challenges:

Documentation: Created a README and CONTRIBUTING guides to provide clear instructions for setting up and contributing to the project.

Dependency Management: Reduced external dependencies from 32 to 13, removed Cocoapods in favour of Swift Package Manager (SPM), and updated necessary dependencies.

Network Layer: Refactored the network layer to remove reliance on Alamofire, abstract request logic, decouple endpoint information, and transition from ObjectMapper to the more modern Codable API.

Notifications: Updated remote notification handling by removing deprecated APIs and ensuring compatibility with modern standards.

Impact

The refactor significantly reduced technical debt by cutting down the number of dependencies and simplifying the integration process, making the project more maintainable. Transitioning to supported versions of Xcode and Swift eliminated the need for workarounds, and meant that the project could be worked on and deployed as this was impossible before. This also enhanced the development environment and improved developer productivity.

The network layer was improved through a new abstraction and the use of Codable resulted in cleaner and more robust network code. The handling of remote notifications was modernised to ensure compatibility with current standards and improve reliability. Additionally, comprehensive documentation was created, providing clear guidelines for future developers and facilitating easier onboarding and contribution to the project.

This refactor not only brought the project up to date with current technologies but also laid a solid foundation for future development and scalability.

Location
Date
Industry
Expertise Mobile App Development

You might also like