Closed samhill303 closed 1 year ago
Android:
onCreate
in MainApp
we call initAnalytics(AndroidAnalytics())
(and logging that the app started) BreedRepository
as single { AndroidServiceLocator(context = get()).breedRepository }
.iOS:
BrownfieldApp
we initialize analytics in init()
by AnalyticsKt.doInitAnalytics(analytics: IosAnalytics())
BrownfieldApp
we define the view model private let serviceLocator: ServiceLocator = IOSServiceLocator(userDefaults: UserDefaults.standard)
We should check if this is up to date and then add to the documentation
We want to have a very clear place where consuming apps initialize the SDK and do things like initialize the service locator. This should be documented and be clear in the code