-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: manage network related code logic in core:network module
- Loading branch information
1 parent
4967bb0
commit b215617
Showing
62 changed files
with
255 additions
and
563 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
23 changes: 0 additions & 23 deletions
23
core/data/src/main/java/org/mifos/mobilewallet/core/data/fineract/api/ApiEndPoints.kt
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
core/data/src/main/java/org/mifos/mobilewallet/core/data/fineract/api/ApiInterceptor.kt
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
core/data/src/main/java/org/mifos/mobilewallet/core/data/fineract/api/BaseURL.kt
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
core/data/src/main/java/org/mifos/mobilewallet/core/data/fineract/api/GenericResponse.kt
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
...ta/src/main/java/org/mifos/mobilewallet/core/data/fineract/api/MifosWalletOkHttpClient.kt
This file was deleted.
Oops, something went wrong.
125 changes: 0 additions & 125 deletions
125
core/data/src/main/java/org/mifos/mobilewallet/core/data/fineract/local/PreferencesHelper.kt
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
33 changes: 33 additions & 0 deletions
33
core/data/src/main/java/org/mifos/mobilewallet/core/di/DataModule.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,33 @@ | ||
package org.mifos.mobilewallet.core.di | ||
|
||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import org.mifos.mobilewallet.core.base.UseCaseHandler | ||
import org.mifos.mobilewallet.core.base.UseCaseThreadPoolScheduler | ||
import org.mifos.mobilewallet.core.data.fineract.repository.FineractRepository | ||
import org.mifos.mobilewallet.mifospay.network.FineractApiManager | ||
import org.mifos.mobilewallet.mifospay.network.SelfServiceApiManager | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
class DataModule { | ||
|
||
@Provides | ||
fun provideUseCaseThreadPoolScheduler(): UseCaseThreadPoolScheduler = | ||
UseCaseThreadPoolScheduler() | ||
|
||
@Provides | ||
fun providesUseCaseHandler(useCaseThreadPoolScheduler: UseCaseThreadPoolScheduler): UseCaseHandler { | ||
return UseCaseHandler(useCaseThreadPoolScheduler) | ||
} | ||
|
||
@Provides | ||
fun providesFineractRepository( | ||
fineractApiManager: FineractApiManager, | ||
selfServiceApiManager: SelfServiceApiManager | ||
): FineractRepository { | ||
return FineractRepository(fineractApiManager, selfServiceApiManager) | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
core/data/src/main/java/org/mifos/mobilewallet/core/di/Qualifier.kt
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...src/main/java/org/mifos/mobilewallet/core/domain/usecase/account/BlockUnblockCommand.java
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.