prebid-mobile-ios icon indicating copy to clipboard operation
prebid-mobile-ios copied to clipboard

Migration to Swift

Open YuriyVelichkoOpenX opened this issue 3 years ago • 1 comments

Motivation

The public classes of the Rendering Module were migrated from Objective-C to Swift. All others are on Objective-C still.

Swift Package Manager does not support mixed frameworks. Therefore we can't provide Prebbid Mobile with rendering through SPM.

We could split Objective-C and Swift parts to introduce different modules, but it controversies our modularization strategy (#395) in part dedicated to following the principles of layered architecture. So it is better to concentrate efforts on the complete migration.

Given

In the following doc, you can find the list of classes for migration

https://docs.google.com/spreadsheets/d/1ZZoRkXsIa95RZELCoEsP4IHJ5TDyRsNAlfKSQU2YohI/edit?usp=sharing

Objective

Feel free to take any Objective-C class, mark the row in the doc with yellow color, and migrate it to Swift.

Try to follow the priority column. It will help to take the less coupled classes first.

Mark migrated classes green after migration.

YuriyVelichkoOpenX avatar Jul 09 '21 13:07 YuriyVelichkoOpenX

The implementation of this epic will fix SPM integration

YuriyVelichkoPI avatar Oct 28 '22 08:10 YuriyVelichkoPI

#961 should solve this issue.

jsligh avatar May 31 '24 15:05 jsligh