Skip to content

Fix: use auth service in profile#93

Merged
destucr merged 22 commits intodevelopmentfrom
fix/profile-auth
Nov 28, 2025
Merged

Fix: use auth service in profile#93
destucr merged 22 commits intodevelopmentfrom
fix/profile-auth

Conversation

@destucr
Copy link
Contributor

@destucr destucr commented Nov 28, 2025

🎯 Summary

This PR introduces Firebase integration and refactors the onboarding and authentication flow for the app. The main changes include adding Firebase dependencies, updating project configuration for code signing and provisioning, and restructuring the SwiftUI view hierarchy to support authentication and onboarding. Additionally, new core components and models have been introduced to support user roles and room management.

✨ Features/Changes

  • Integrated Firebase SDK with Analytics, Auth, Firestore, and Storage capabilities
  • Refactored authentication flow to include sign-in, role selection, name input, and room code entry
  • Introduced new RootView to manage navigation between onboarding and main app views based on authentication state
  • Added environment objects for authentication and heartbeat synchronization
  • Created RoleButton component for user role selection UI
  • Introduced Room model with Firestore support for user role management
  • Updated project code signing and provisioning configuration

📁 Files Changed

  • Package.resolved - Added Firebase iOS SDK dependencies (Analytics, Auth, Firestore, Storage)
  • Tiny.xcodeproj/project.pbxproj - Updated project configuration with Firebase frameworks, package references, code signing, and team settings
  • Tiny/App/tinyApp.swift - Initialized Firebase at app launch and injected authentication and heartbeat environment objects
  • Tiny/Views/ContentView.swift - Refactored to introduce RootView managing the complete authentication and onboarding flow
  • Tiny/Components/RoleButton.swift - New SwiftUI component for role selection UI
  • Tiny/Models/Room.swift - New model supporting Firestore integration and user role management

🔧 Usage Examples (if applicable)

// Firebase initialization in app entry point
import FirebaseCore

@main
struct tinyApp: App {
    init() {
        FirebaseApp.configure()
    }
}

// Role-based onboarding flow
RootView()
    .environmentObject(AuthenticationManager())
    .environmentObject(HeartbeatSync())

@destucr destucr changed the title Fix/profile auth Fix: use auth service in profile Nov 28, 2025
@destucr destucr merged commit 7bd971b into development Nov 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants