Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Latest commit

 

History

History

android

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

This artifact provides:

  • Module factory functions for Application, Activity and Fragment modules. See functions under org.rewedigital.katana.android.modules.

  • An AndroidEnvironmentContext for optimizing Katana's behaviour on Android. See Katana.environmentContext.

  • KatanaFragment and KatanaFragmentDelegate for simplifying usage of Katana with Fragments.

  • Android specific Katana logger implementation AndroidKatanaLogger.

Optimizing Katana on Android

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).

AndroidX ViewModel

Looking for AndroidX ViewModel support? Have a look at the katana-androidx-viewmodel artifact.

ProGuard

Katana does not require any specific ProGuard configuration 😎.