Unofficial Android app for Mount Annapurna Campus (MAC) Pokhara students. Get instant access to notices, downloads, news, and gallery - all scraped from the official MAC website.
✅ Notices - Exam notices, IOST updates, general announcements with filtering by category, batch, and semester
✅ Downloads - E-Books, Notes, Syllabus, Question Collections organized by semester
✅ News & Events - Latest workshops, programs, and college events with images
✅ Gallery - Photo albums and WebView links for routines/semester plans
✅ Smart Filtering - Filter by batch (2077, 2078, 2079, 2080), semester, category
✅ Attachment Support - Direct links to PDFs, Google Drive, SharePoint folders
✅ Offline-First - All data bundled in the app, no internet required for browsing
macHub/
├── app/
│ ├── src/main/
│ │ ├── java/com/flanux/machub/
│ │ │ ├── data/ # Data models & repository
│ │ │ ├── features/ # Feature modules (notices, downloads, etc.)
│ │ │ ├── navigation/ # Bottom nav & routing
│ │ │ ├── ui/theme/ # Material 3 theming
│ │ │ └── MainActivity.kt
│ │ ├── assets/data/ # Scraped JSON files
│ │ └── res/ # Resources
│ └── build.gradle.kts
├── scraper/ # Python scraper (separate)
└── data/ # Scraped JSON output
- Android Studio Hedgehog (2023.1.1) or later
- JDK 17
- Gradle 8.2
- Kotlin 1.9.10
-
Clone the repository
git clone https://github.com/flanux/macHub.git cd macHub -
Open in Android Studio
- Open Android Studio
- Select "Open" and navigate to the project directory
- Wait for Gradle sync to complete
-
Build the APK
- Debug build:
./gradlew assembleDebug - Release build:
./gradlew assembleRelease - Output:
app/build/outputs/apk/
- Debug build:
-
Run on device/emulator
- Connect device or start emulator
- Click "Run" in Android Studio or:
./gradlew installDebug
The app reads JSON files from app/src/main/assets/data/. To update:
-
Run the scraper (in
scraper/directory):cd scraper pip install -r requirements.txt python main.py -
Copy fresh data:
cp data/*.json app/src/main/assets/data/ -
Rebuild the app:
./gradlew assembleRelease
The app uses these JSON files (scraped from macpokhara.edu.np):
notices.json- Notice details with attachments, body content, batch/semester metadatadownloads.json- Student resources (E-Books, Notes, Syllabus, Questions)news.json- Events, workshops, programs with thumbnailsgallery.json- Photo albums + WebView links
- Pattern: MVVM (Model-View-ViewModel)
- UI: Jetpack Compose with Material 3
- Data: JSON loaded from assets via Gson
- Navigation: Bottom navigation with 5 tabs
- State: Kotlin Flows + ViewModel
// Compose & Material 3
androidx.compose.material3
androidx.lifecycle:lifecycle-viewmodel-compose
// JSON parsing
com.google.code.gson:gson
// Image loading
io.coil-kt:coil-compose
// Network (for future API support)
com.squareup.retrofit2:retrofit
com.squareup.okhttp3:okhttpRelease builds use R8 minification. ProGuard rules are configured in app/proguard-rules.pro to preserve:
- Gson annotations & reflection
- Data classes
- Retrofit interfaces
- OkHttp components
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open a Pull Request
The scraper is a separate Python project that fetches data from the official MAC website. See scraper/main.py for implementation details.
Scraper features:
- Change detection (MD5 body hash)
- Smart attachment labeling
- Full pagination support
- Batch/semester extraction
- Failure logging
MIT License - see LICENSE file for details.
This is an unofficial student project and is not affiliated with Mount Annapurna Campus. All data is publicly available from macpokhara.edu.np.
Built with ❤️ by students, for students.