mirror of
https://github.com/AdrianKuta/android-challange-adrian-kuta.git
synced 2025-07-01 23:57:59 +02:00
Refactor: Format code and update lint baselines
This commit applies code formatting changes across multiple files and updates lint baseline files. Key changes: - Added trailing commas to data classes in the `domain/types` module and related files. - Formatted `HomeScreenViewModel.kt`, `Result.kt`, `ObserveAirportsUseCase.kt`, `AirportService.kt`, `ObserveAirportsUseCaseModule.kt`, `AirportInfoDomainMapper.kt`, `AirportInfoModelMapper.kt`, `AirportsDatasourceModule.kt`, `AirportsDatasourceImpl.kt`, `FlightService.kt`, `Cache.kt`, and `CacheImpl.kt`. - Updated `README.md` and `LICENCE.md` with minor formatting adjustments. - Updated various `lint-baseline.xml` files due to changes in cached dependencies or formatting. - Added new `lint-baseline.xml` files for `model/datasource/airports`, `model/datasource/shared`, `domain/search`, and `model/data/api`. - Removed unused imports from `app/build.gradle.kts`. - Reformatted XML files: `ic_launcher_round.xml`, `ic_launcher.xml`, `strings.xml`, `ic_launcher_background.xml`. - Added project code style configuration files: `.idea/codeStyles/codeStyleConfig.xml` and `.idea/codeStyles/Project.xml`. - Reformatted `characters.json`. - Updated response data classes in `model/data/api/entities` with trailing commas and minor formatting.
This commit is contained in:
30
README.md
30
README.md
@ -4,8 +4,10 @@
|
||||
|
||||
We would like you to build an app to search for flights.
|
||||
|
||||
You are provided with a codebase containing a bit of code so that you can start working on the task faster. It
|
||||
includes some parts of the UI, basic network layer implementation with DTOs & DI setup. Feel free to modify any file
|
||||
You are provided with a codebase containing a bit of code so that you can start working on the task
|
||||
faster. It
|
||||
includes some parts of the UI, basic network layer implementation with DTOs & DI setup. Feel free to
|
||||
modify any file
|
||||
you find in the repo – this is only there to help you out.
|
||||
|
||||
Please develop an Android app with the following requirements:
|
||||
@ -29,11 +31,12 @@ Please develop an Android app with the following requirements:
|
||||
* User can use search field to filter the airports list
|
||||
* Screen works with 2 configurations
|
||||
* Origin selection – all stations are available for selection
|
||||
* Destination selection – only stations to which we can travel from origin selection are available for selection
|
||||
* Destination selection – only stations to which we can travel from origin selection are
|
||||
available for selection
|
||||
|
||||
### Results screen
|
||||
|
||||
* A list of results for the specified search criteria is shown
|
||||
* A list of results for the specified search criteria is shown
|
||||
* Show only the crucial information about the trip
|
||||
* Make sure to handle network errors and empty results
|
||||
|
||||
@ -44,7 +47,7 @@ ___
|
||||
* for `AirportService` and `RoutesService`: <https://services-api.ryanair.com/>
|
||||
* for `FlightService`: <https://nativeapps.ryanair.com/api/>
|
||||
|
||||
*Tip: For test purposes try DUB (Dublin) – STN (London Stansted) route – it has flights every day.*
|
||||
*Tip: For test purposes try DUB (Dublin) – STN (London Stansted) route – it has flights every day.*
|
||||
|
||||
---
|
||||
|
||||
@ -60,11 +63,14 @@ ___
|
||||
### Questions for you
|
||||
|
||||
Please submit the answers to the following questions in the README.md file
|
||||
|
||||
* How long did you spend on the task?
|
||||
* Rate from 0-10, how would you assess the complexity of the task? _0 - very trivial_, _10 - extremely complex_
|
||||
* Rate from 0-10, how would you assess the complexity of the task? _0 - very trivial_, _10 -
|
||||
extremely complex_
|
||||
* If you had more time (or if you were doing it in production) what would you have changed/improved?
|
||||
* Which parts of the code would you like to highlight?
|
||||
* In your opinion, which Google library was the best addition to the Android Dev world in the last years?
|
||||
* In your opinion, which Google library was the best addition to the Android Dev world in the last
|
||||
years?
|
||||
|
||||
> If you have the need to comment the provided task, we would love to hear that from you 🙂
|
||||
> ...
|
||||
@ -72,13 +78,17 @@ Please submit the answers to the following questions in the README.md file
|
||||
|
||||
### Time frame
|
||||
|
||||
You have __4 days__ to submit your solution. There is no need to spend more than 12 hours on the task as we don't seek perfection.
|
||||
You have __4 days__ to submit your solution. There is no need to spend more than 12 hours on the
|
||||
task as we don't seek perfection.
|
||||
Focus on the key areas of Android development
|
||||
---
|
||||
|
||||
#### Please fork this repository. After finishing a task, create pull request to the parent repository ``main`` branch.
|
||||
#### Please fork this repository. After finishing a task, create pull request to the parent repository
|
||||
|
||||
You are allowed to use AI tools to assist with this programming task. However, you will be asked to explain your solutions in detail.
|
||||
``main`` branch.
|
||||
|
||||
You are allowed to use AI tools to assist with this programming task. However, you will be asked to
|
||||
explain your solutions in detail.
|
||||
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user