mirror of
https://github.com/TrianguloY/LightningLauncher.git
synced 2024-11-16 19:49:08 +01:00
Kotlin + Koin integration (#11)
Co-authored-by: SVolf <a.zhiganov@mintmail.ru>
This commit is contained in:
parent
0783f78cc2
commit
6bafc4c72b
4 changed files with 15 additions and 0 deletions
|
@ -140,4 +140,6 @@ dependencies {
|
|||
implementation project(':core')
|
||||
implementation project(':plugin-api')
|
||||
implementation libs.lsvg
|
||||
implementation libs.flows
|
||||
implementation libs.koin.android
|
||||
}
|
||||
|
|
|
@ -43,6 +43,8 @@ import net.pierrox.lightning_launcher.script.Script;
|
|||
import net.pierrox.lightning_launcher.util.EmptyService;
|
||||
import net.pierrox.lightning_launcher.util.MPReceiver;
|
||||
|
||||
import org.koin.android.java.KoinAndroidApplication;
|
||||
|
||||
public abstract class LLAppPhone extends LLApp {
|
||||
|
||||
private MPReceiver mMPReceiver;
|
||||
|
@ -51,6 +53,12 @@ public abstract class LLAppPhone extends LLApp {
|
|||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
KoinAndroidApplication
|
||||
.create(this)
|
||||
.modules(
|
||||
// Define vararg of modules...
|
||||
);
|
||||
|
||||
// Implicit broadcasts cannot be registered anymore in the manifest starting at Android O,
|
||||
// however it is still possible to register them at runtime.
|
||||
// the consequence is that these events will not be received if the app is not running,
|
||||
|
|
|
@ -21,6 +21,7 @@ android.defaults.buildfeatures.buildconfig=true
|
|||
android.nonFinalResIds=false
|
||||
android.nonTransitiveRClass=false
|
||||
org.gradle.daemon=true
|
||||
android.useAndroidX=true
|
||||
#org.gradle.parallel=true
|
||||
#android.useDeprecatedNdk=true
|
||||
org.gradle.jvmargs=-Xmx2048M
|
|
@ -3,6 +3,7 @@ agp = "8.1.1"
|
|||
kotlin = "1.9.10"
|
||||
remoter_version = "1.2.0"
|
||||
parceler_version = "1.1.12"
|
||||
koin_version = "3.5.0"
|
||||
|
||||
[libraries]
|
||||
lsvg = { module = "net.pierrox.android:lsvg", version = "1.0" }
|
||||
|
@ -13,6 +14,9 @@ remoter-compiler = { module = "com.josesamuel:remoter", version.ref = "remoter_v
|
|||
parceler = { module = "org.parceler:parceler-api", version.ref = "parceler_version" }
|
||||
parceler-compiler = { module = "org.parceler:parceler", version.ref = "parceler_version" }
|
||||
|
||||
flows = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version = "1.7.3" }
|
||||
|
||||
koin-android = { module = "io.insert-koin:koin-android", version.ref = "koin_version" }
|
||||
|
||||
[plugins]
|
||||
android = { id = "com.android.application", version.ref = "agp" }
|
||||
|
|
Loading…
Reference in a new issue