mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-11-06 23:24:52 +00:00
add template for startup and readme
This commit is contained in:
1
startup/template/common/src/main/AndroidManifest.xml
Normal file
1
startup/template/common/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1 @@
|
||||
<manifest package="group_name.module_name.common"/>
|
||||
@@ -0,0 +1,17 @@
|
||||
package group_name.module_name.common
|
||||
|
||||
import dev.inmo.micro_utils.startup.plugin.StartPlugin
|
||||
import kotlinx.serialization.json.JsonObject
|
||||
import org.koin.core.Koin
|
||||
import org.koin.core.module.Module
|
||||
|
||||
object CommonAndroidPlugin : StartPlugin {
|
||||
override fun Module.setupDI(config: JsonObject) {
|
||||
with (CommonPlugin) { setupDI(config) }
|
||||
}
|
||||
|
||||
override suspend fun startPlugin(koin: Koin) {
|
||||
super.startPlugin(koin)
|
||||
CommonPlugin.startPlugin(koin)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user