Loe
04/26/2024, 6:59 PMsingleton
in KMM ❓
i have this Kotlin singleton class in KMM back-end:
object AuthRepo {
suspend fun signIn(email: String, password: String) =
firebaseAuth.signIn(email = email, password = password)
. . .
}
I want to get the instance in iOS, this is how i'm doing it now, but i think this is not the singleton object:
private let authRepo: AuthRepo = AuthRepo()
i don't want to use dependency injectionMichael Krussel
04/26/2024, 7:29 PMLoe
04/26/2024, 7:32 PM