How sudan-dhungana/newsapp works
Project type and purpose
• This is a native Android mobile application (“NewsApp”) written in Java (Android Studio).
• It aggregates news articles from external web APIs (via Retrofit) and supports user login/registration, bookmarking, commenting, and admin operations.
• It integrates with Firebase (google-services.json) for push notifications and possibly authentication.
File structure
• Top-level:
• app/: Android module (build.gradle, src/, res/)
• build/ & gradle/: build artifacts and wrapper
• settings.gradle, gradlew: project configuration
• Under app/src/main/java/com/infinix/NewsApp/:
• AdminActivities/: AdminLoginActivity, AdminDashboard
• MainActivities/: activity_feed, activity_read_full_news
• UserLoginRegister/: login, register, email verif, forgot password
• fragments/: news feed, tech trends, user profile
• RetrofitAPI.java: interface for REST calls
• NewsNotificationService/: Firebase messaging receiver
• WebAppInterface.java: JS-bridge for possible WebView usage
• Model classes: NewsModel, Comment, CategoryRVModel, Bookmarks, etc.
• Resources (res/): layouts, drawables, menus, values, XML configs (network security, data extraction rules).
Key architectural insights from README
• Frontend only (Android)
• Backed by PHP/HTML/CSS/JS server (not in this repo, but implied external news source and possible admin backend)
• Fetches region-specific news via REST endpoints
Elements
• Clear component labels: e.g., “NewsApp UI”, “RetrofitAPI”, “FCM Service”, “External News API”
• Data fetch (Android → News API → Android)
• Push notifications (FCM → Android)
• Auth requests (Android → Auth Service → Android)
• Green clouds for external services (FCM, News API, Admin backend)