Charles Prado
02/09/2022, 12:42 PMDataManager
on shared:
class DataManager : KoinComponent {
suspend fun requestMethod(): Result<SomeResponseType> { ... }
}
On my iOS application, I want to use a more abstract version of it, creating a protocol directly on the iOS code:
protocol AbstractDataManager {
func requestMethod(completionHandler: (Result<SomeResponseType>?, Error?) -> Void)
}
extension DataManager: AbstractDataManager {}
If I do that, even with the method signature matching, the compiler says that DataManager
is not in conformance with AbstractDataManager
Any way to solve this without creating the abstract class on the shared module? Thanks in advance 🙂