-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use koin as dependency injection.
- Loading branch information
1 parent
cddae3e
commit 7e710f0
Showing
85 changed files
with
666 additions
and
521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
androidApp/src/main/java/org/gdglille/devfest/android/di/AppModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.gdglille.devfest.android.di | ||
|
||
import android.app.AlarmManager | ||
import androidx.activity.ComponentActivity | ||
import org.gdglille.devfest.AlarmScheduler | ||
import org.gdglille.devfest.android.AlarmIntentFactoryImpl | ||
import org.gdglille.devfest.android.theme.m3.main.di.mainModule | ||
import org.koin.android.ext.koin.androidContext | ||
import org.koin.dsl.module | ||
|
||
val appModule = module { | ||
includes(buildConfigModule, mainModule) | ||
single { | ||
AlarmScheduler( | ||
get(), | ||
androidContext().getSystemService(ComponentActivity.ALARM_SERVICE) as AlarmManager, | ||
AlarmIntentFactoryImpl | ||
) | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
androidApp/src/main/java/org/gdglille/devfest/android/di/BuildConfigModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.gdglille.devfest.android.di | ||
|
||
import org.gdglille.devfest.ApplicationIdNamed | ||
import org.gdglille.devfest.Conference4HallBaseUrlNamed | ||
import org.gdglille.devfest.IsDebugNamed | ||
import org.gdglille.devfest.android.BuildConfig | ||
import org.koin.core.qualifier.named | ||
import org.koin.dsl.module | ||
|
||
val buildConfigModule = module { | ||
single(named(IsDebugNamed)) { BuildConfig.DEBUG } | ||
single(named(ApplicationIdNamed)) { BuildConfig.APPLICATION_ID } | ||
single(named(Conference4HallBaseUrlNamed)) { BuildConfig.BASE_URL } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+12.8 KB
(100%)
...codeproj/project.xcworkspace/xcuserdata/GERARD.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.