This artifact provides:
-
Module factory functions for
Application
,Activity
andFragment
modules. See functions underorg.rewedigital.katana.android.modules
. -
An
AndroidEnvironmentContext
for optimizing Katana's behaviour on Android. SeeKatana.environmentContext
. -
KatanaFragment
andKatanaFragmentDelegate
for simplifying usage of Katana with Fragments. -
Android specific Katana logger implementation
AndroidKatanaLogger
.
This artifact provides an AndroidEnvironmentContext
, which optimizes Katana's behaviour on Android. To enable this
EnvironmentContext
, assign it to Katana.environmentContext
as soon as possible in your application's lifecycle and
before any Katana modules and components are created.
Katana.environmentContext = AndroidEnvironmentContext()
By default this context improves memory consumption at the cost of speed. If memory is not a concern but speed is,
use AndroidEnvironmentContext(profile = SPEED)
.
Looking for AndroidX ViewModel support? Have a look at the katana-androidx-viewmodel artifact.
Katana does not require any specific ProGuard configuration 😎.