NewsApp is a Android application that provides users with the latest news articles from various sources using the NewsAPI.
- Browse top headlines and articles from multiple sources.
- MVVM Architecture: Separation of concerns for a clean and maintainable codebase.
- Jetpack Compose: Modern UI toolkit for building native Android UI.
- Retrofit: Type-safe HTTP client for making network requests.
- Moshi: JSON library for parsing network responses into Kotlin objects.
- Koin: Lightweight dependency injection framework for Kotlin.
- Clone the repository:
git clone https://github.com/Italord0/NewsApp.git
-
Open the project in Android Studio.
-
Obtain an API key from NewsAPI and replace
"api_key"inlocal.properties:
api_key=YOUR_API_KEY
- Build and run the app on an emulator or physical device.
The NewsApp project supports the following flavors:
- bbc (default): Default flavor that provides news articles from BBC.
- abc: Flavor that provides news articles from ABC News.
- theVerge: Flavor that provides news articles from The Verge.
- wallStreetJournal: Flavor that provides news articles from The Wall Street Journal.
To build a specific flavor, use the following command:
./gradlew assembleFlavorName