Skip to content

About

Independent Flutter campus wayfinding app for building discovery, routing, safety resources and connected student experiences, currently developed around Macquarie University.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

603 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typing SVG

License: MIT Flutter Dart Riverpod Supabase Google Maps Tests Material 3


Campus Navigation — Mobile Campus Wayfinding for Syllabus Sync

The mobile campus wayfinding companion for the Syllabus Sync ecosystem.

Campus Navigation is a Flutter-based campus wayfinding companion for the Syllabus Sync ecosystem. It helps students and visitors discover campus buildings, services, transport, safety resources, and points of interest through a mobile-first navigation experience — with dual-renderer maps, Supabase-backed routing, a compass mode, a safety toolkit, live metro countdowns, and multi-language support.

Campus Navigation is an independent product developed and maintained by Leo Alavi and Raouf Abedini. It is not affiliated with, endorsed by, or published by any university — it displays real-world campus place names the way any map app does. The illustrated base map and its overlays are Macquarie University's published campus maps, used pending the University's guidance. Leo and Raouf developed the app, map calibration, search and route presentation; the provenance and use permissions for individual photographs and some source data require separate review. It is intended as a mobile campus-wayfinding companion for the broader Syllabus Sync student platform — supporting everyday campus discovery, student onboarding, and Open Day-style visitor use cases along the way.

Status, 4 November 2026: CI run 41801652455 passed all six jobs. Fresh iOS and Android simulator/emulator builds were partially exercised; full feature and physical-device verification remains outstanding. The production maps-routes function remains at version 21 (verify_jwt=false); a proposed rate-limit revision was held pending verification of client-IP headers. No public app release or University map permission is claimed.

📖 Project Origin & Academic Context  ·  📸 Screenshots  ·  🏗️ Architecture  ·  🔐 Security Posture



🎯 Problem & Value Proposition

Generic campus maps (Google/Apple Maps) stop at the street kerb and don't know which door is 18 Wally's Walk. Existing university portals often require sign-on and offer a poor mobile experience. Campus Navigation addresses this by providing:

  • Mobile-first campus wayfinding — Building and key location discovery optimised for phone-sized screens.
  • Building and location discovery — 161 named campus buildings, services, and points of interest; entrance coordinates are available for some locations.
  • Syllabus Sync deep-link handoff — Syllabus Sync can hand a destination (a class, event, or building) straight to Campus Navigation for the wayfinding step. See Deep linking from Syllabus Sync.
  • Favourites and saved places — Heart-toggle, edit-note, and swipe-to-delete for personalised place saving, stored on the device.
  • Safety and support information — One-tap access to emergency contacts, AEDs, first aid, campus shuttle, and torch.
  • Routing and transit — Server-side walking/driving/cycling/transit routing via a Supabase Edge proxy; live metro countdown on the home screen.
  • Privacy-aware design — No accounts, no analytics SDKs, GPS used ephemerally and never persisted.


🔗 Syllabus Sync ecosystem role

Syllabus Sync is the broader student experience platform — timetables, unit/class schedules, deadlines, and academic planning. Campus Navigation is its campus and mobile wayfinding layer: the piece that answers "where actually is that room, and how do I get there?"

  • Independent app. Campus Navigation can be launched and used entirely on its own — no Syllabus Sync account or session is required.
  • Deep-link handoff. Syllabus Sync can hand off a destination (a class location, Open Day item, or building) to Campus Navigation via a deep link. See the dedicated section below for the current implementation status.
  • Shared backend. Both apps can point at the same Supabase project, sharing schema and Edge Functions (e.g. maps-routes, tfnsw-proxy) rather than each running its own backend.
  • Future direction: Syllabus Sync handles academic planning and Campus Navigation handles campus routing. Sylla is a separate AI-assisted study layer under active development, connected to the broader Syllabus Sync ecosystem.

MQ Journey, the Open Day visitor app built from the same codebase, has been merged into Campus Navigation — there is now one app. Its history is preserved in this repository, and its Open Day features (personalised sessions, Your Day, QR scanning, stamps passport, building photos and 360° hotspots) ship here. Navigation stays the primary experience: Open Day is opt-in — switch it on in Settings → Open Day → Show Open Day or by scanning a printed Open Day QR code. First-run onboarding never asks Open Day questions; the study interest is set inside Open Day once it is on. MQ Journey's original docs are archived in docs/mq-journey/.



📲 Deep linking from Syllabus Sync

The intended integration point between the two products is a deep link handoff:

  1. A user is inside Syllabus Sync, viewing a class, campus location, Open Day destination, or building.
  2. They tap a "Navigate" / "Open in Campus Navigation" button.
  3. Syllabus Sync opens Campus Navigation via a deep link.
  4. If Campus Navigation is installed, it opens directly to the relevant destination or map context.
  5. If it isn't installed, the user should be prompted to install the app (or land on a fallback/download page) — this half of the flow lives on the Syllabus Sync side.

What's implemented today in this repo:

  • A stable, versioned deep-link contract lives in lib/features/deep_link/deep_link_contract.dart and is wired to the /open GoRouter route (see docs/route_matrix.md). It recognises three query shapes, first match wins:
    • ?destination=<buildingId> — focus the map on a known building, e.g. ?destination=E7A
    • ?q=<search> — filter the map by a free-text query, e.g. ?q=library
    • ?lat=<double>&lng=<double> — drop a "meet here" pin at coordinates
  • The same payload is accepted over two transports, both registered on Android (intent filters) and iOS (URL scheme + associated domains):
    • mqnav://open?... — the primary handoff; works as soon as the app is installed.
    • https://mqnavigation.app/open?... — an App Link / Universal Link that only routes to the app once assetlinks.json and apple-app-site-association are served from that domain. Until then it opens in the browser.
  • Unknown building ids are resolved through partner aliases, and anything still unrecognised opens the map as a search rather than failing silently.
  • The legacy io.mqnavigation://meet?lat=...&lng=... "meet here" link is still handled in lib/app/campus_navigation_app.dart so links already shared keep working.

Still to do: serving the well-known verification files on mqnavigation.app so the https:// links open the app directly. The "app not installed" fallback (offering the store listings) lives on the Syllabus Sync side. Full details: docs/SYLLABUS_SYNC_INTEGRATION.md.

Architecture at a glance:

Syllabus Sync                          Campus Navigation
──────────────                         ─────────────
academic planning                      receives deep link
timetable / deadlines          ──▶     resolves building / destination
campus location references             opens map or route context
"Navigate" button                      handles campus wayfinding

Fallback: app installed → open destination directly
          app not installed → Syllabus Sync offers the store listings


Screenshots

The tracked screenshots/ directory contains historical May 2026 captures and does not represent the current interface. Current app screenshots are not tracked in this repository. The University-owned map assets visible in the app have not been cleared for independent public promotion.



Key Features

╔══════════════════════════════════════════════════════════════════════╗
║  📍  Campus location discovery: 161+ named buildings & services      ║
║  🗺  Mobile-first map experience: Google Maps + illustrated campus   ║
║  🔍  Building and service search with selected entrance coordinates ║
║  🔗  Syllabus Sync deep-link handoff (destination / search / pin)    ║
║  ❤️  Favourites / saved places: heart-toggle, note, swipe-to-delete  ║
║  🚆  Metro countdown via TfNSW Open Data proxy                       ║
║  🚨  Safety resources: 000, AEDs, first aid, shuttle, torch          ║
║  🔐  Privacy-aware: no accounts · zero analytics packages            ║
║  🌍  35 locales · RTL layout support for ar/fa/he/ur                 ║
║  ☁️  Supabase backend: Postgres, Realtime, Edge Functions            ║
║  🎓  Opt-in Open Day: sessions by degree, Your Day, suggested stops  ║
║  📷  Open Day QR scan → location card → 360° preview → stamp         ║
╚══════════════════════════════════════════════════════════════════════╝

Open Day (lib/features/open_day/, lib/features/scan/) is an opt-in layer on top of this feature set — hidden until the user switches it on, and never the whole product. Printed Open Day QR codes carry an Ed25519 signature that the app verifies offline before opening a location.



🏗️ Technical Architecture Overview

Campus Navigation is built on a modern Flutter stack designed for mobile usability, type safety, privacy-aware data handling, and maintainable feature modules.

System Architecture

graph TD
    A[Campus Navigation - Flutter Mobile] -->|HTTPS/WSS| B(Supabase Backend)
    S[Syllabus Sync - Web Platform] -->|HTTPS/WSS| B
    S -.->|deep link handoff, mqnav://open| A

    subgraph "Supabase"
        B --> D[(Postgres + RLS)]
        B --> E[Realtime]
        B --> F[Edge Functions]
    end

    subgraph "External APIs"
        F --> G[Google Routes V2]
        F --> H[Google Places]
        F --> I[TfNSW Open Data]
    end
Loading

Runtime Stack

Layer Technology
Framework Flutter 3.44 (pinned in CI) · Dart 3.11+
State Riverpod 3.2 (Notifier / AsyncNotifier)
Routing GoRouter 17.1 (three visible tabs, optional Scan branch, standalone routes and /open deep-link route)
Maps google_maps_flutter 2.15 / flutter_map 8.2 (dual renderer)
Backend Supabase (Postgres, RLS, Realtime, Deno Edge Functions)
Location geolocator 14 (raw GPS + last-known fallback, emulator mock rejection)
Compass flutter_compass 0.8
Notifications Firebase Messaging + flutter_local_notifications 21
i18n flutter_localizations + intl — 35 ARB locales, RTL for ar/fa/he/ur
Security flutter_secure_storage 10 (iOS Keychain / Android Keystore)
Deep linking app_links 7 (mqnav://open, https://mqnavigation.app/open, legacy io.mqnavigation://meet)

Key Architectural Decisions

  • Defensive bootstrap with timeouts: Firebase.initializeApp() and Supabase.initialize() are both wrapped in .timeout() calls so the app cannot hang on a stalled network during cold start.
  • Renderer-aware Building actions: BuildingActionsSheet distinguishes "View in Campus Map" (marker only) from "Navigate with Google Maps" (route preview auto-loaded) via a ?preview=route query parameter.
  • Deep-link contract as the integration boundary: lib/features/deep_link/deep_link_contract.dart is the single source of truth for how sibling apps (Syllabus Sync) should construct links — internal GoRouter paths can change freely, this contract should not.
  • Local privacy guard: scripts/check.sh rejects listed analytics packages in pubspec.yaml. The GitHub workflow runs its own analysis, tests, Deno checks and platform builds; it does not currently invoke this guard.

Deep Dive: docs/ARCHITECTURE.md · docs/SECURITY_POSTURE.md · docs/route_matrix.md



🔒 Privacy-Aware Design

Privacy is treated as an architectural concern, not a feature flag.

Principle Implementation
No accounts There is no sign-in. The app opens straight to /home, and favourites are stored on the device only.
No analytics packages No analytics, telemetry, or crash reporting packages included. The local scripts/check.sh guard checks for listed packages; the current GitHub workflow does not run that guard.
Ephemeral location use GPS is not persisted by the app. Location may be sent to third-party mapping or routing services only when the user explicitly uses those features (route requests, nearby transit stops, or handing off to Google Maps).
Local-only preferences Theme, locale, commute mode, and quiet hours are stored via SharedPreferences + FlutterSecureStorage.
Safety privacy Emergency contacts use tap-to-dial — location is never automatically shared.
On-device compass All heading calculation happens on-device. No data leaves the phone.

Defence-in-depth model: docs/SECURITY_POSTURE.md · docs/env_inventory.md



Who is this for?

Persona Goals Relevant capability
A Syllabus Sync user planning a class or event. Tap "Navigate" on a class/location in Syllabus Sync and get directions to the building. Deep-link handoff into Campus Navigation's map and routing.
"Open Day Olivia" — Year 12 prospective student visiting campus for the first time. Find the Faculty of Arts building, the Library, and where her parents parked. Illustrated campus map with 161+ named buildings — Google Maps shows roads, not which door is 18 Wally's Walk.
"Commuter Chen" — first-year student catching the Metro. Know if he's late for his 9am tutorial, or find the nearest defibrillator. Live metro countdown on the home screen + Safety Toolkit one tap away.
"International Isha" — new student navigating campus in a second language. Read the app in her preferred language. Save rooms mentioned by her supervisor. 35-language i18n with RTL layout support for Arabic, Farsi, Hebrew, and Urdu.

Why a dedicated campus app over Google/Apple Maps? Generic maps stop at the street. Campus Navigation starts at the building entrance — with a privacy-aware approach and campus-specific data baked in.



Device Compatibility

Platform Status Notes
Android emulator (API 36) ✅ Partially verified Fresh 4 November 2026 build showed illustrated map, Google tiles, and location marker. Other flows were not manually retested.
Android physical device ⚠️ Historical reports only No current physical-device verification in the 4 November review.
Chrome (web) 🧪 Build/test target Release-mode bundles and 360° imagery are tested in CI. The web target is prepared for a future release but is not deployed. Compass mode and flashlight gracefully degrade.
iOS simulator ✅ Partially verified Fresh iPhone 17 Pro build showed both maps, building discovery, location, and walking guidance. Deep links and all route modes were not manually retested.
iOS physical device ⚠️ Not verified in this review CI build passed; physical-device behaviour needs a separate check.
macOS desktop ⚠️ Expected / not fully verified Location and dual-renderer configured. Google Maps falls back to OSM (plugin limitation). Full device testing not guaranteed.

If a platform-specific issue surfaces, the relevant feature renders a typed MapStateError fallback rather than crashing.



Repository Layout

lib/
├── app/              Bootstrap, router (incl. /open deep-link route), theme, l10n (35 ARB locales)
├── core/             Config, error handling, logging, networking, security
├── shared/           Extensions, models, widgets (MqButton, MqCard, MqInput)
└── features/
    ├── favorites/    Building favourites CRUD, stored on-device (repo, datasource, UI)
    ├── home/         Welcome dashboard, onboarding, metro countdown
    ├── indoor/       360° indoor tours (bundled Pannellum viewer)
    ├── map/          Dual-renderer, routing, compass mode, search, favourites
    ├── safety/       Safety toolkit, emergency contacts, first aid / AED, torch
    ├── notifications/ Local reminders, inbox, optional FCM support code
    ├── open_day/     Opt-in Open Day: sessions, Your Day, suggested stops, reminders
    ├── scan/         Open Day QR scanner, signed-QR verification, location cards, stamps
    ├── settings/     Preferences, privacy badge, local data wipe
    ├── transit/      Metro/bus/train search, commute prefs
    ├── timetable/    Unit and class schedule entities/repository (early-stage)
    └── deep_link/    Syllabus Sync deep-link contract (see above)

test/                 Widget & unit tests (flutter_test suite)
supabase/             Edge Functions (maps-routes, maps-places, tfnsw-proxy, notify, cleanup-cron) + SQL migrations
docs/                 Reference documents (architecture, security, inventories, integration contract)
docs/mq-journey/      Archived MQ Journey docs (pre-merge README, report, architecture, changelog)
tool/open_day_qr/     Generator/verifier for the signed Open Day QR print pack
maestro/              Maestro end-to-end flows (scan → location card → map)
screenshots/          Screen captures used in this README
scripts/              run.sh, check.sh (quality gate), sync_supabase_secrets.sh
tools/                Data & localisation sync utilities (buildings, ARB files)

Full Inventory: docs/map_inventory.md · docs/endpoint_inventory.md · docs/entity_inventory.md



Quick Start

Prerequisites

  • Flutter 3.44 (the version CI pins) with Dart 3.11+ (install guide)
  • Android SDK / Xcode (for device builds)
  • A Supabase project is required for routing and transit (Edge Functions: maps-routes, tfnsw-proxy). There is no fully offline/demo mode — the map UI, static building data, and favourites work without a network, but routing and the transit countdown need a reachable Supabase project.
  • A Google Maps API key is required for the Google Maps renderer; without it, the app still runs using the illustrated campus map renderer. A TfNSW Open Data key is required only for live metro countdowns.

Setup

# Clone and install
git clone https://github.com/leoalavi/campus-navigation.git
cd campus-navigation
flutter pub get

# Configure environment
cp .env.example .env
# Edit .env with your Supabase + Google Maps + TfNSW credentials
# (see docs/env_inventory.md for the full variable list)

# Generate localisations
flutter gen-l10n

# Run the app
flutter run --dart-define-from-file=.env
# Or via convenience script:
./scripts/run.sh

In debug mode, a bare flutter run also works without a .env file — env_config.dart ships hardcoded development defaults for local iteration.

Quality Assurance

./scripts/check.sh             # 9 steps (includes debug APK build)
./scripts/check.sh --quick     # 8 steps (skips build)
./scripts/check.sh --fix       # auto-format instead of read-only check
./scripts/check.sh --verbose   # stream command logs to terminal
Step What it enforces
flutter pub get Valid dependency resolution
dart format Code formatting (lib/, test/, tools/, scripts/)
flutter analyze Static analysis with hardened lint rules (infos are non-fatal)
flutter test The full widget & unit test suite must pass
flutter gen-l10n Localisation generation (35 locales)
Untranslated check .dart_tool/untranslated.json — new keys tracked as non-blocking
Privacy guard Blocks firebase_analytics, google_analytics, appsflyer, amplitude, mixpanel, segment, sentry_flutter, facebook_app_events
Secret scan Flags hardcoded API keys (sk-*, AIza*) in lib/ test/ scripts/
flutter build apk --debug Android APK compiles (skipped with --quick)


Documentation Map

Document Path
Architecture docs/ARCHITECTURE.md
Security Posture docs/SECURITY_POSTURE.md
Endpoint Inventory docs/endpoint_inventory.md
Entity Inventory docs/entity_inventory.md
Environment Variables docs/env_inventory.md
Localisation Keys docs/key_inventory.md
Map Inventory docs/map_inventory.md
Notification Matrix docs/notification_matrix.md
Route Matrix (incl. deep-link routes) docs/route_matrix.md
Syllabus Sync Integration Contract docs/SYLLABUS_SYNC_INTEGRATION.md
Privacy Policy docs/PRIVACY.md
Branding & Identifiers docs/BRANDING.md
Store Listing docs/store/STORE_LISTING.md
Project Report (essay) PROJECT_REPORT.md
Contributing CONTRIBUTING.md
Code of Conduct CODE_OF_CONDUCT.md
Agent Rules & Changelog AGENT.md
QR → Card → Stamp Pipeline docs/qr-card-stamp-pipeline-architecture.md
Open Day QR Print QA docs/print/open-day-qr-physical-qa.md
MQ Journey Archive (pre-merge) docs/mq-journey/


🎓 Project origin & academic context

Campus Navigation began as a standalone Flutter campus wayfinding prototype, originally developed as the COMP3130 Mobile App Development major project at Macquarie University (Leo Alavi and Raouf Abedini). It has since been extended beyond that assignment scope into the mobile campus wayfinding layer for the Syllabus Sync ecosystem described above.

The original project report — written to satisfy the unit's assignment brief (app description, core features, audience personas, competitor advantages, technical credentials) — is kept for historical reference: PROJECT_REPORT.md.



🎯 Project Governance

License

The developers' original source code is provided under the MIT License; see LICENSE. The illustrated campus map and overlays are University material and are not ours to license. Permission for their independent public distribution remains pending.

Roadmap

  • Serve assetlinks.json and apple-app-site-association on mqnavigation.app so https://mqnavigation.app/open links open the app directly.
  • Shared campus location data contract between Campus Navigation and Syllabus Sync.
  • Better building metadata and indoor directions.
  • Offline campus map assets.
  • Accessibility improvements (screen reader passes, reduced-motion coverage).
  • Open Day / student onboarding mode refinements.
  • Public demo build.
  • Voice-guided turn-by-turn navigation (exploratory, not yet planned in detail).

Maintainers

Name Role
Leo Alavi Co-maintainer — Flutter, mapping, navigation & integration
Raouf Abedini Co-maintainer — backend, security & Supabase Edge Functions


Acknowledgements

Built with the support of the open-source community. This project benefits from:

  • Flutter — Cross-platform UI toolkit.
  • Supabase — Open-source backend with Row-Level Security.
  • OpenStreetMap — Map tile provider for the Campus Map fallback renderer.
  • TfNSW Open Data — Live metro departures.

> ping --authors

> Authors    : Leo Alavi — Flutter & Navigation | Raouf Abedini — Backend & Security
> Origin     : COMP3130 Mobile App Development major project, Macquarie University
> Now        : Mobile campus wayfinding layer for the Syllabus Sync ecosystem

LinkedIn GitHub Email


Campus Navigation — developed by Leo Alavi and Raouf Abedini.

© 2026 Leo Alavi and Raouf Abedini. Not affiliated with, endorsed by, or published by any university.

Fresh iOS and Android simulator/emulator builds were partially exercised on 4 November 2026. Physical-device and full feature checks remain outstanding. The web target is maintained and tested in CI but is not currently deployed.

About

Independent Flutter campus wayfinding app for building discovery, routing, safety resources and connected student experiences, currently developed around Macquarie University.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages