mayokunadeniyi / Instant-Weather

An Android weather application implemented using the MVVM pattern, Retrofit2, Dagger Hilt, LiveData, ViewModel, Coroutines, Room, Navigation Components, Data Binding and some other libraries from the Android Jetpack.
MIT License
767 stars 165 forks source link

Add M1 Mac support & Optimize app startup by deferring initialization of non-critical components #56

Closed thecraftman closed 3 months ago

thecraftman commented 3 months ago

This PR adds native support for running and building the Instant Weather app on Apple Silicon M1 Macs. Key changes include:


Also Optimize app startup by deferring initialization of non-critical components

Currently the app initializes several components like WorkManager, Analytics, Crashlytics etc. during app launch on the main thread. This slows down app startup.

We can improve this by: