This Android application displays the Astronomy Picture of the Day (APOD) from NASA. Users can view a list of stunning images of space with the title and date.
- Daily picture: Fetches and displays the latest APOD from NASA's API.
- Sorting: Enables users to sort pictures by title or date.
- Error handling: Displays user-friendly messages for network errors and other issues.
The app follows modern Android development practices and uses the following architectural components:
- MVVM (Model-View-ViewModel): Separates UI logic from business logic and data handling.
- Repository pattern: Provides a clean abstraction for data access.
- Use cases: Encapsulates business logic for specific actions.
- Hilt: Provides dependency injection for easier testing and modularity.
- Jetpack Compose: Modern declarative UI toolkit for building dynamic and beautiful UIs.
- Retrofit: For making network requests to the NASA API.
- Coil: For image loading and caching.
- Coroutines: For managing asynchronous operations.
- Hilt: For dependency injection.
- Jetpack Compose: For building the UI.
- Clone the repository:
git clone https://github.com/MaxHastings/AssignmentAdyen.git
- Open the project in Android Studio.
- Build and run the app on an emulator or device.
This app uses the NASA APOD API. You'll need to obtain an API key from NASA and add API_KEY
to local.properties
file.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.