# shobhitx64/washington-announcements architecture

> Architecture diagram of the GitHub repository shobhitx64/washington-announcements, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shobhitx64/washington-announcements
- Repository: https://github.com/shobhitx64/washington-announcements

## Overview

1. This repository is a Unity-based Android client called “Washington Announcements,” focused on the student-facing app described in the README. The app’s job is to authenticate University of Washington students, let them subscribe to course announcements, and display new announcements pushed from a backend.

2. The architecture is centered around Unity scenes rather than a traditional app framework. The main user flows appear to live in `Assets/scenes/`: `sign_up_in` for account access, `students` for the logged-in course/announcement experience, `newcourse` for registration, and `view_announcement` for reading announcement details.

3. Most app behavior is in `Assets/scripts/`, which contains small scene/controller scripts. The names indicate responsibilities: `signup` and `signin_response` handle account creation and login responses, `config_firebase` and `get_firebase` manage Firebase setup/queries, `addcourse` and `savecourses` manage student course subscriptions, `listofcourses` renders course lists, `announcement` and `viewannouncement` handle announcement presentation, and `open_panel`/`bgmovement` are UI/animation helpers.

4. Firebase is the main backend boundary. The repo includes Firebase Unity SDK assets, Android/iOS native plugins, and generated dependency manifests, indicating the app uses Firebase as its cloud service layer rather than a custom server in this repo. The configured services include Firebase Auth, Firebase Analytics, and Firebase Realtime Database.

5. Authentication is a key subsystem. The README says only `@uw.edu` users can create accounts, email verification is required, and login can be remembered locally. That implies a flow of sign-up → email verification → authenticated session → access to course-specific announcement data.

6. Announcement data is likely stored and synchronized through Firebase Database rather than embedded locally. The student app appears to subscribe to course records and announcement nodes, then refresh the UI when new content is added by the separate teacher-facing system mentioned in the README.

7. The project includes full platform-specific Firebase packaging under `Assets/Plugins/Android` and `Assets/Plugins/iOS`, plus `Assets/Firebase` and `Assets/ExternalDependencyManager`. This means dependency resolution and native library wiring are part of the build architecture, not just runtime code. The app is prepared for cross-platform Firebase integration even though the deliverable here is an Android APK.

8. `Assets/StreamingAssets/google-services-desktop.json` and the `google-services.json` file indicate Firebase project configuration is checked into the Unity project and used at build/runtime to connect the client to the correct Firebase backend.

9. There is a bundled third-party REST client library under `Assets/RestClient/`, including `Proyecto26.RestClient` and `RSG.Promise`, plus a demo scene. This is a separate subsystem from the main app flow; it likely exists as a utility package for HTTP calls, but the primary architecture visible in this repo is Firebase-driven, not REST-driven.

10. UI assets are simple and focused: a `Card.prefab`, a few animation controllers/clips, and placeholder folders for fonts/images. That suggests the app’s core complexity is in data/auth flows and scene logic, not in a large custom rendering layer.

11. The repo also contains a prebuilt `Washington Announcements.apk`, which is a build artifact rather than a source subsystem. The actual application architecture is defined by the Unity project under `New Unity Project/`, with `ProjectSettings` and `Packages` establishing the Unity runtime and package dependencies.

12. For an architecture diagram, the important boundaries are: Unity scene/UI layer on the client; local MonoBehaviour controllers in `Assets/scripts`; Firebase Auth and Realtime Database as the backend; Firebase/Google native plugins as the platform integration layer; and a separate teacher-side announcement producer that feeds the student app.

Main entry points: [`New Unity Project/Assets/scenes/sign_up_in.unity`](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scenes/sign_up_in.unity) (Sign in), [`New Unity Project/Assets/scripts/config_firebase.cs`](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/config_firebase.cs) (Firebase config), [`New Unity Project/Assets/scenes/students.unity`](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scenes/students.unity) (Students), [`New Unity Project/Assets/Firebase`](https://github.com/shobhitx64/washington-announcements/tree/HEAD/New%20Unity%20Project/Assets/Firebase) (Firebase SDK)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Unity client"]
  node_scenes_signin["Sign in<br/>unity scene<br/>[sign_up_in.unity]"]
  node_scenes_students["Students<br/>unity scene<br/>[students.unity]"]
  node_scenes_newcourse["New course<br/>unity scene<br/>[newcourse.unity]"]
  node_scenes_viewannouncement["View announcement<br/>unity scene"]
  node_signup_cs["Sign up<br/>auth controller<br/>[signup.cs]"]
  node_signin_response_cs["Login response<br/>auth controller<br/>[signin_response.cs]"]
  node_addcourse_cs["Add course<br/>course controller<br/>[addcourse.cs]"]
  node_savecourses_cs["Save courses<br/>course state<br/>[savecourses.cs]"]
  node_listofcourses_cs["Course list<br/>ui list<br/>[listofcourses.cs]"]
  node_announcement_cs["Announcement<br/>feed controller<br/>[announcement.cs]"]
  node_viewannouncement_cs["Announcement view<br/>detail controller"]
  node_open_panel_cs["Panel toggle<br/>ui helper<br/>[open_panel.cs]"]
  node_bgmovement_cs(("Background motion<br/>ui animation<br/>[bgmovement.cs]"))
end

subgraph group_firebase["Firebase stack"]
  node_config_firebase_cs["Firebase config<br/>bootstrap<br/>[config_firebase.cs]"]
  node_get_firebase_cs["Firebase fetch<br/>data access<br/>[get_firebase.cs]"]
  node_firebase_runtime["Firebase SDK<br/>unity package"]
  node_firebase_android["Android plugins<br/>native integration"]
  node_firebase_ios["iOS plugins<br/>native integration"]
  node_google_services["Firebase config files<br/>service config"]
end

subgraph group_thirdparty["Third-party libs"]
  node_restclient["RestClient<br/>[RestClient.cs]"]
  node_promise["Promise<br/>async helper<br/>[Promise.cs]"]
end

node_scenes_signin -->|"uses"| node_signup_cs
node_scenes_signin -->|"uses"| node_signin_response_cs
node_signup_cs -->|"bootstraps"| node_config_firebase_cs
node_signin_response_cs -->|"reads"| node_config_firebase_cs
node_config_firebase_cs -->|"initializes"| node_firebase_runtime
node_firebase_runtime -->|"bridges"| node_firebase_android
node_firebase_runtime -->|"bridges"| node_firebase_ios
node_config_firebase_cs -->|"loads"| node_google_services
node_scenes_students -->|"uses"| node_listofcourses_cs
node_scenes_students -->|"uses"| node_announcement_cs
node_scenes_newcourse -->|"uses"| node_addcourse_cs
node_addcourse_cs -->|"persists"| node_savecourses_cs
node_announcement_cs -->|"fetches"| node_get_firebase_cs
node_listofcourses_cs -->|"fetches"| node_get_firebase_cs
node_viewannouncement_cs -->|"fetches"| node_get_firebase_cs
node_scenes_viewannouncement -->|"uses"| node_viewannouncement_cs
node_scenes_signin -->|"uses"| node_open_panel_cs
node_scenes_students -->|"uses"| node_open_panel_cs
node_bgmovement_cs -->|"animates"| node_scenes_signin
node_restclient -->|"depends on"| node_promise

click node_scenes_signin "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scenes/sign_up_in.unity"
click node_scenes_students "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scenes/students.unity"
click node_scenes_newcourse "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scenes/newcourse.unity"
click node_scenes_viewannouncement "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scenes/view_announcement.unity"
click node_signup_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/signup.cs"
click node_signin_response_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/signin_response.cs"
click node_config_firebase_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/config_firebase.cs"
click node_get_firebase_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/get_firebase.cs"
click node_addcourse_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/addcourse.cs"
click node_savecourses_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/savecourses.cs"
click node_listofcourses_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/listofcourses.cs"
click node_announcement_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/announcement.cs"
click node_viewannouncement_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/viewannouncement.cs"
click node_open_panel_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/open_panel.cs"
click node_bgmovement_cs "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/scripts/bgmovement.cs"
click node_firebase_runtime "https://github.com/shobhitx64/washington-announcements/tree/main/New Unity Project/Assets/Firebase"
click node_firebase_android "https://github.com/shobhitx64/washington-announcements/tree/main/New Unity Project/Assets/Plugins/Android"
click node_firebase_ios "https://github.com/shobhitx64/washington-announcements/tree/main/New Unity Project/Assets/Plugins/iOS"
click node_google_services "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/StreamingAssets/google-services-desktop.json"
click node_restclient "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/RestClient/Packages/Proyecto26.RestClient/RestClient.cs"
click node_promise "https://github.com/shobhitx64/washington-announcements/blob/main/New Unity Project/Assets/RestClient/Packages/RSG.Promise/Promise.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_scenes_signin,node_scenes_students,node_scenes_newcourse,node_scenes_viewannouncement,node_signup_cs,node_signin_response_cs,node_addcourse_cs,node_savecourses_cs,node_listofcourses_cs,node_announcement_cs,node_viewannouncement_cs,node_open_panel_cs,node_bgmovement_cs toneBlue
class node_config_firebase_cs,node_get_firebase_cs,node_firebase_runtime,node_firebase_android,node_firebase_ios,node_google_services toneAmber
class node_restclient,node_promise toneMint
```

## Components

### Unity client

Main app scenes, controllers, and presentation flow.

- [Sign in](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scenes/sign_up_in.unity): unity scene · Account access entry scene for sign-up, sign-in, and login response handling. · `New Unity Project/Assets/scenes/sign_up_in.unity`
- [Students](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scenes/students.unity): unity scene · Primary logged-in course and announcement experience. · `New Unity Project/Assets/scenes/students.unity`
- [New course](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scenes/newcourse.unity): unity scene · Scene for adding or registering a course subscription. · `New Unity Project/Assets/scenes/newcourse.unity`
- [View announcement](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scenes/view_announcement.unity): unity scene · Detail scene for reading a selected announcement. · `New Unity Project/Assets/scenes/view_announcement.unity`
- [Sign up](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/signup.cs): auth controller · Creates student accounts and enforces UW-specific sign-up rules. · `New Unity Project/Assets/scripts/signup.cs`
- [Login response](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/signin_response.cs): auth controller · Handles sign-in outcomes and session handoff. · `New Unity Project/Assets/scripts/signin_response.cs`
- [Add course](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/addcourse.cs): course controller · Adds a course to the student subscription set. · `New Unity Project/Assets/scripts/addcourse.cs`
- [Save courses](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/savecourses.cs): course state · Persists selected course subscriptions for the student session. · `New Unity Project/Assets/scripts/savecourses.cs`
- [Course list](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/listofcourses.cs): ui list · Renders the subscribed course list in the student UI. · `New Unity Project/Assets/scripts/listofcourses.cs`
- [Announcement](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/announcement.cs): feed controller · Builds and updates the announcement feed display. · `New Unity Project/Assets/scripts/announcement.cs`
- [Announcement view](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/viewannouncement.cs): detail controller · Populates the announcement detail screen. · `New Unity Project/Assets/scripts/viewannouncement.cs`
- [Panel toggle](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/open_panel.cs): ui helper · Opens and closes in-app panels and overlays. · `New Unity Project/Assets/scripts/open_panel.cs`
- [Background motion](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/bgmovement.cs): ui animation · Simple animated background movement helper. · `New Unity Project/Assets/scripts/bgmovement.cs`

### Firebase stack

Cloud services and Unity/native integration for auth and data sync.

- [Firebase config](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/config_firebase.cs): bootstrap · Initializes the Firebase client configuration used by the app. · `New Unity Project/Assets/scripts/config_firebase.cs`
- [Firebase fetch](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/scripts/get_firebase.cs): data access · Queries Firebase-backed announcement and course data. · `New Unity Project/Assets/scripts/get_firebase.cs`
- [Firebase SDK](https://github.com/shobhitx64/washington-announcements/tree/HEAD/New%20Unity%20Project/Assets/Firebase): unity package · Bundled Firebase Unity runtime used by the app. · `New Unity Project/Assets/Firebase`
- [Android plugins](https://github.com/shobhitx64/washington-announcements/tree/HEAD/New%20Unity%20Project/Assets/Plugins/Android): native integration · Android Firebase and Google Play Services libraries and manifests. · `New Unity Project/Assets/Plugins/Android`
- [iOS plugins](https://github.com/shobhitx64/washington-announcements/tree/HEAD/New%20Unity%20Project/Assets/Plugins/iOS): native integration · iOS Firebase native libraries bundled for cross-platform support. · `New Unity Project/Assets/Plugins/iOS`
- [Firebase config files](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/StreamingAssets/google-services-desktop.json): service config · Checked-in Google services configuration used to connect the project to Firebase. · `New Unity Project/Assets/StreamingAssets/google-services-desktop.json`

### Third-party libs

Bundled REST client package kept alongside the main Firebase-driven app.

- [RestClient](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/RestClient/Packages/Proyecto26.RestClient/RestClient.cs): package · Bundled HTTP client package separate from the main Firebase flow. · `New Unity Project/Assets/RestClient/Packages/Proyecto26.RestClient/RestClient.cs`
- [Promise](https://github.com/shobhitx64/washington-announcements/blob/HEAD/New%20Unity%20Project/Assets/RestClient/Packages/RSG.Promise/Promise.cs): async helper · Promise implementation used by the bundled REST client. · `New Unity Project/Assets/RestClient/Packages/RSG.Promise/Promise.cs`

## Connections

- Sign in → Sign up: uses · Sign-up scene relies on the auth controller for account creation.
- Sign in → Login response: uses · Sign-in scene processes login results through the response handler.
- Sign up → Firebase config: bootstraps · Authentication flow depends on Firebase initialization.
- Login response → Firebase config: reads · Login handling requires the configured Firebase client.
- Firebase config → Firebase SDK: initializes · App bootstrap targets the bundled Firebase Unity SDK.
- Firebase SDK → Android plugins: bridges · Unity SDK is backed by Android native Firebase artifacts.
- Firebase SDK → iOS plugins: bridges · Unity SDK includes iOS native Firebase artifacts for cross-platform support.
- Firebase config → Firebase config files: loads · Firebase bootstrap uses the checked-in service configuration.
- Students → Course list: uses · Logged-in scene renders subscribed courses through the list controller.
- Students → Announcement: uses · Student home scene shows the announcement feed.
- New course → Add course: uses · Course registration scene delegates adding subscriptions.
- Add course → Save courses: persists · New course selection is saved into student course state.
- Announcement → Firebase fetch: fetches · Announcement feed is populated from Firebase data.
- Course list → Firebase fetch: fetches · Course list is sourced from Firebase records.
- Announcement view → Firebase fetch: fetches · Detail view loads the selected announcement from Firebase.
- View announcement → Announcement view: uses · Announcement detail scene is driven by the view controller.
- Sign in → Panel toggle: uses · Sign-in UI uses shared panel behavior.
- Students → Panel toggle: uses · Student UI uses shared panel behavior.
- Background motion → Sign in: animates · Background motion helper supports the entry scene presentation.
- RestClient → Promise: depends on · HTTP package uses promises for async request handling.
