Commit c961c0f
committed
feat: Add dependency injection and application class
This commit introduces Koin for dependency injection and sets up an application class.
Changes:
- Added `TechExactlyApplication` class to initialize Koin.
- Declared the `TechExactlyApplication` in the `AndroidManifest.xml`.
- Created `AppModule` to define dependencies, including Retrofit, the User API, and the User repository.
- Added the Koin dependency.
- `AppModule` created with the following:
- `provideRetrofit`: for providing Retrofit instance
- `provideUserApi`: for providing UserApi instance
- `UserRepository`: for providing repository instance1 parent 0a65c48 commit c961c0f
3 files changed
Lines changed: 29 additions & 0 deletions
File tree
- app/src/main
- java/com/example/techexactly
- di
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments