mirror of
https://github.com/openMF/mifos-mobile.git
synced 2026-02-06 11:26:51 +00:00
35 lines
1.1 KiB
Kotlin
35 lines
1.1 KiB
Kotlin
/*
|
|
* Copyright 2024 Mifos Initiative
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*
|
|
* See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
|
|
*/
|
|
package cmp.android.app
|
|
|
|
import android.app.Application
|
|
import cmp.shared.utils.initKoin
|
|
import org.koin.android.ext.koin.androidContext
|
|
import org.koin.android.ext.koin.androidLogger
|
|
import org.koin.core.logger.Level
|
|
|
|
/**
|
|
* Android application class.
|
|
* This class is used to initialize Koin modules for dependency injection in the Android application.
|
|
* It sets up the Koin framework, providing the necessary dependencies for the app.
|
|
*
|
|
* @constructor Create empty Android app
|
|
* @see Application
|
|
*/
|
|
class AndroidApp : Application() {
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
initKoin {
|
|
androidContext(this@AndroidApp) // Provides the Android app context
|
|
androidLogger(Level.DEBUG) // Enables Koin's logging for debugging
|
|
}
|
|
}
|
|
}
|