Skip to content

Feat/108 set up the data module#109

Merged
MarcelMilka merged 3 commits into
masterfrom
feat/108-set-up-the-data-module
Apr 5, 2026
Merged

Feat/108 set up the data module#109
MarcelMilka merged 3 commits into
masterfrom
feat/108-set-up-the-data-module

Conversation

@MarcelMilka
Copy link
Copy Markdown
Owner

No description provided.

- Create a new Android library module `data` with namespace `eu.project.data`.
- Configure `build.gradle.kts` with `compileSdk` 36, `minSdk` 26, and Java 11 compatibility.
- Add standard dependencies for AndroidX Core, AppCompat, Material, JUnit, and Espresso.
- Register the `:data` module in `settings.gradle.kts`.
- Add default ProGuard configuration files and a `.gitignore` for the new module.
…uilds

- Enable `android:usesCleartextTraffic` in a new debug `AndroidManifest.xml` to allow HTTP communication during development.
- Update `data/build.gradle.kts` to enable `buildConfig` and define `API_BASE_URL` fields for debug and release builds, sourced from local properties.
- Add Hilt, Retrofit, OkHttp, and Gson dependencies to the `:data` module.
- Add testing dependencies including MockK, MockWebServer, and Coroutines test utilities.
- Include project dependencies for `:common` and `:auth` in the `:data` module.
- Create `ApplicationOkHttpClient` to configure `OkHttpClient` with custom timeouts and interceptors.
- Implement `AuthzInterceptor` to automatically attach JWT access tokens from `AuthzManager` to outgoing requests.
- Implement `LoggingInterceptor` using `HttpLoggingInterceptor`, enabling full body logging in debug builds.
- Define `WebApplicationClient` and its Retrofit-based implementation `WebApplicationClientImplD` to manage API endpoints.
- Introduce `TestEndpoint` and `TestRepository` to handle initial connectivity testing.
- Configure Dagger Hilt modules `ClientModule` and `RepositoryModule` to provide network dependencies and repositories.
@MarcelMilka MarcelMilka merged commit 8c374ab into master Apr 5, 2026
1 check passed
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.

1 participant