Feat/108 set up the data module#109
Merged
Merged
Conversation
- 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.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.