-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Koin Dependency At this stage, have only added in build.gradle.kts file under comman code. * Added sample code on android side * Added di under shared package * Added Koin under ios * Fix - Renaming files * Added Koin to Android Node * Fix - Reformat the code * Fix - fomatting again
- Loading branch information
nis-ship-it
authored
Nov 12, 2024
1 parent
9b702b3
commit 3de24c6
Showing
23 changed files
with
296 additions
and
147 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
bisqapps/androidClient/src/androidMain/kotlin/network/bisq/mobile/client/MainApplication.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 network.bisq.mobile.client | ||
|
||
import android.app.Application | ||
import network.bisq.mobile.client.di.androidModule | ||
import network.bisq.mobile.domain.di.domainModule | ||
import network.bisq.mobile.presentation.di.presentationModule | ||
import org.koin.android.ext.koin.androidContext | ||
|
||
import org.koin.core.context.startKoin | ||
|
||
class MainApplication: Application() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
|
||
startKoin { | ||
androidContext(this@MainApplication) | ||
modules(domainModule + presentationModule + androidModule) | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
bisqapps/androidClient/src/androidMain/kotlin/network/bisq/mobile/client/di/AndroidModule.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,8 @@ | ||
package network.bisq.mobile.client.di | ||
|
||
import network.bisq.mobile.presentation.MainPresenter | ||
import org.koin.dsl.module | ||
|
||
val androidModule = module { | ||
// add your own modules | ||
} |
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
...ps/androidNode/src/androidMain/kotlin/network/bisq/mobile/android/node/MainApplication.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 network.bisq.mobile.android.node | ||
|
||
import android.app.Application | ||
import network.bisq.mobile.android.node.di.androidNodeModule | ||
import network.bisq.mobile.domain.di.domainModule | ||
import network.bisq.mobile.presentation.di.presentationModule | ||
import org.koin.android.ext.koin.androidContext | ||
import org.koin.core.context.startKoin | ||
import org.koin.dsl.module | ||
|
||
class MainApplication : Application() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
|
||
startKoin { | ||
androidContext(this@MainApplication) | ||
module { androidNodeModule + presentationModule + domainModule } | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...droidNode/src/androidMain/kotlin/network/bisq/mobile/android/node/di/AndroidNodeModule.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,9 @@ | ||
package network.bisq.mobile.android.node.di | ||
|
||
import network.bisq.mobile.android.node.AndroidNodeGreetingFactory | ||
import network.bisq.mobile.domain.GreetingFactory | ||
import org.koin.dsl.module | ||
|
||
val androidNodeModule = module { | ||
single<GreetingFactory> { AndroidNodeGreetingFactory() } | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
bisqapps/iosClient/Pods/Local Podspecs/presentation.podspec.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.