Tung97 Hl

05/24/2023, 12:46 PM
Hi everyone. I have a question about TimeTravelStore. I see in the documentation we should not use it in production. So that mean i should check build type to remove it in production build, or the library do it automatically (as same as the Log.d() ), or any best practice? Thank you in advance

Arkadii Ivanov

05/24/2023, 1:32 PM
The library doesn't do it automatically. On Android you can either check BuildConfig.DEBUG flag at runtime (see example), or better use flavors to avoid the dependency in release builds completely. Similar ways should be available on other platforms.

Tung97 Hl

05/24/2023, 1:38 PM
Thank you for your recommendation. I love this library. :face_holding_back_tears: