How shobhitx64/washington-announcements works
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: sign_up_in.unity Sign in · config_firebase.cs Firebase config · students.unity Students · Firebase Firebase SDK
Components 21
Unity client
Main app scenes, controllers, and presentation flow.
- Sign in · Account access entry scene for sign-up, sign-in, and login response handling.
New Unity Project/Assets/scenes/sign_up_in.unity - Students · Primary logged-in course and announcement experience.
New Unity Project/Assets/scenes/students.unity - New course · Scene for adding or registering a course subscription.
New Unity Project/Assets/scenes/newcourse.unity - View announcement · Detail scene for reading a selected announcement.
New Unity Project/Assets/scenes/view_announcement.unity - Sign up · Creates student accounts and enforces UW-specific sign-up rules.
New Unity Project/Assets/scripts/signup.cs - Login response · Handles sign-in outcomes and session handoff.
New Unity Project/Assets/scripts/signin_response.cs - Add course · Adds a course to the student subscription set.
New Unity Project/Assets/scripts/addcourse.cs - Save courses · Persists selected course subscriptions for the student session.
New Unity Project/Assets/scripts/savecourses.cs - Course list · Renders the subscribed course list in the student UI.
New Unity Project/Assets/scripts/listofcourses.cs - Announcement · Builds and updates the announcement feed display.
New Unity Project/Assets/scripts/announcement.cs - Announcement view · Populates the announcement detail screen.
New Unity Project/Assets/scripts/viewannouncement.cs - Panel toggle · Opens and closes in-app panels and overlays.
New Unity Project/Assets/scripts/open_panel.cs - Background motion · 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 · Initializes the Firebase client configuration used by the app.
New Unity Project/Assets/scripts/config_firebase.cs - Firebase fetch · Queries Firebase-backed announcement and course data.
New Unity Project/Assets/scripts/get_firebase.cs - Firebase SDK · Bundled Firebase Unity runtime used by the app.
New Unity Project/Assets/Firebase - Android plugins · Android Firebase and Google Play Services libraries and manifests.
New Unity Project/Assets/Plugins/Android - iOS plugins · iOS Firebase native libraries bundled for cross-platform support.
New Unity Project/Assets/Plugins/iOS - Firebase config files · 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 · Bundled HTTP client package separate from the main Firebase flow.
New Unity Project/Assets/RestClient/Packages/Proyecto26.RestClient/RestClient.cs - Promise · Promise implementation used by the bundled REST client.
New Unity Project/Assets/RestClient/Packages/RSG.Promise/Promise.cs
Connections 20
- 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.