Skip to content

Get Started

Configuration

Create a class that inherit DevApplication, then you need to override three methods:

  • initApplication - define your global configuration for application.
  • defineKoinModules - return list of Koin Modules because this codebase use Koin as Dependency Injection. so it might be looking something like this:
    override fun defineKoinModules() = arrayListOf(libModule, dbModule, reqresModule)
    
  • defineNotificationChannel - return list of NotificationChannel if the app need to have it. it might be look something like this:
    override fun defineNotificationChannel(): List<NotificationChannel> =
            if (VERSION.SDK_INT >= VERSION_CODES.O) {
                listOf(
                    NotificationChannel(
                        Variables.SAMPLE_CHANNEL_ID,
                        "Sample Notification",
                        NotificationManager.IMPORTANCE_HIGH
                    )
                )
            } else {
                listOf()
    }
    

Then add your Application class to AndroidManifest.xml:

AndroidManifest.xml
    <application
    android:name="your.class.package.AppClass"
    ...
    ...>