Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating from hilt to koin (This) #1764

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

Nagarjuna0033
Copy link
Contributor

@Nagarjuna0033 Nagarjuna0033 commented Sep 19, 2024

Issue Fix

Fixes #{Issue Number}
Jira Task: Task_Number

Screenshots

Description

  • Apply the AndroidStyle.xml style template to your code in Android Studio.

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

Nagarjuna0033 and others added 4 commits September 19, 2024 12:00
This commit removes Hilt and migrates the project to Koin for dependency injection.

The following
 changes were made:

- Removed the `AndroidHiltConventionPlugin`.
- Added the `AndroidKoinConventionPlugin`.
- Updated dependencies to use Koin.
- Updated KSP configuration for Koin.
- Updated feature modules to use Koin.
- Updated common modules to use Koin
.
- Removed Hilt annotations and replaced them with Koin annotations.
- Updated ViewModels to use Koin for dependency injection.
- Updated modules to use Koin for dependency injection.
@Nagarjuna0033 Nagarjuna0033 marked this pull request as ready for review September 20, 2024 08:15
@therajanmaurya
Copy link
Member

[ERROR] [Koin] * Instance creation error : could not create instance for '[Factory:'org.mifospay.feature.bank.accounts.link.LinkBankAccountViewModel']': org.koin.core.error.NoDefinitionFoundException: No definition found for type 'org.mifospay.core.data.repository.local.MifosLocalAssetRepository'. Check your Modules configuration and add missing type and/or qualifier!

This is happening because MifosLocalAssetRepository present in network is not injected through the koin

@niyajali
Copy link
Collaborator

This issue has been fixed sir, we can merge this PR.

@therajanmaurya therajanmaurya merged commit 35f5205 into openMF:dev Sep 23, 2024
7 checks passed
therajanmaurya pushed a commit that referenced this pull request Sep 24, 2024
* Migrating from hilt to koin (This) (#1764)

* Migrating from hilt to koin

* Fixed Instance creation error

* refactor: Removed Hilt and migrated to Koin

This commit removes Hilt and migrates the project to Koin for dependency injection.

The following
 changes were made:

- Removed the `AndroidHiltConventionPlugin`.
- Added the `AndroidKoinConventionPlugin`.
- Updated dependencies to use Koin.
- Updated KSP configuration for Koin.
- Updated feature modules to use Koin.
- Updated common modules to use Koin
.
- Removed Hilt annotations and replaced them with Koin annotations.
- Updated ViewModels to use Koin for dependency injection.
- Updated modules to use Koin for dependency injection.

* Formatted Dependencies

* migrating from hilt to koin clean up commit

* Revert "migrating from hilt to koin clean up commit"

This reverts commit bb63058.

---------

Co-authored-by: Sk Niyaj Ali <[email protected]>

* Feat: KMP Library Setup

---------

Co-authored-by: Nagarjuna <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants