diff --git a/README.md b/README.md new file mode 100644 index 0000000..80f3b8a --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Koin Singleton Bug Sample Project + +In Hilt, if we mark a class as Singleton, then the instance remains the same as long as the app process is active. It should be the same for Koin too. If a configuration change happens, then a new object should not be created. + + +## Observations +Using Koin: The Singleton object is created again when a configuration change happens. +Using Hilt: The Singleton object truly remains singleton, even when a configuration change happens. + +| Koin | Hilt | +|--------|--------| +|