How nexters/git-it-ios works
Git It is an iOS app for learning from GitHub repositories through generated quizzes. The apparent user journey is to enter or share a repository, register it, then study project quiz sets and answer questions; account, bookmarks, and profile settings support that experience. The app is organized into feature reducers, domain use cases, composition adapters, and data/infrastructure services. Source excerpts directly show share-extension setup, question-answer and bookmark callbacks, and storage behavior. Most other feature wiring is unsampled, so those relationships are not asserted as verified calls.
Main entry points: AppComposition.swift Dependency assembly · ShareViewController.swift Share extension host · QuestionSolvingFeature.swift Question solving · ProjectRegistrationRouterFeature.swift Repository registration
Components 25
App and sharing
- App entry
sources/Projects/Feature/AppEntry/AppEntryFeature.swift - Onboarding
sources/Projects/Feature/Onboarding/Router/OnboardingRouterFeature.swift - Share extension host
sources/Projects/App/ShareExtension/ShareViewController.swift - Shared repo registration
sources/Projects/Feature/ShareRegistration/ShareRegistration/SharedRepositoryRegistrationFeature.swift
Repository learning
- Repository registration
sources/Projects/Feature/ProjectRegistration/Router/ProjectRegistrationRouterFeature.swift - Repository link input
sources/Projects/Feature/ProjectRegistration/RepositoryLinkInput/RepositoryLinkInputFeature.swift - Project detail
sources/Projects/Feature/ProjectDetail/Router/ProjectDetailRouterFeature.swift - Quiz flow
sources/Projects/Feature/Quiz/Router/QuizRouterFeature.swift - Question solving
sources/Projects/Feature/Quiz/QuestionSolving/QuestionSolvingFeature.swift - Home
sources/Projects/Feature/Home/HomeFeature.swift
Domain and composition
- Project generation
sources/Projects/Domain/UseCaseImplementation/ProjectGeneration/UseCases/ProjectGeneration.swift - Project use cases
sources/Projects/Domain/UseCaseImplementation/Project/UseCases/Project.swift - Account use cases
sources/Projects/Domain/UseCaseImplementation/Account/UseCases/Account.swift - Dependency assembly
sources/Projects/Composition/App/Assemblies/AppComposition.swift
Data and services
- Learning API data
sources/Projects/Data/LearningProject/Remotes/ProjectRemote.swift - External repository lookup
sources/Projects/Data/ExternalRepository/Remotes/ExternalRepositoryRemote.swift - Authentication data
sources/Projects/Data/Authentication/Remotes/AuthenticationRemote.swift - Storage factory
sources/Projects/Data/Shared/Factories/StorageFactory.swift - Secure local storage
sources/Projects/Data/Shared/Stores/LocalSecureValueStorage.swift - Session record coding
sources/Projects/Data/Authentication/Codings/SessionRecordStorageCoding.swift - Notification handling
sources/Projects/Data/Notification/AppDelegates/NotificationAppDelegate.swift
Other components
- App user
- GitHub
- Git It API
- Keychain
Connections 30
- App user → App entry: opens
- App user → Share extension host: shares link
sources/Projects/App/ShareExtension/ShareViewController.swift - Share extension host → Shared repo registration: creates store
sources/Projects/App/ShareExtension/ShareViewController.swift - Share extension host → Dependency assembly: gets dependencies
sources/Projects/App/ShareExtension/ShareViewController.swift - Share extension host → Git It API: configures endpoint
sources/Projects/App/ShareExtension/ShareViewController.swift - App entry → Onboarding: routes to
- Onboarding → Repository registration: routes to
- Repository registration → Repository link input: presents
- Repository registration → External repository lookup: resolves repository
- Repository link input → GitHub: accepts repository URL
- Home → Project detail: opens project
- Project detail → Quiz flow: starts quiz flow
- Quiz flow → Question solving: shows question
sources/Projects/Feature/Quiz/Router/Previews/QuizRouterPreviews.swift - Project detail → Question solving: embeds question state
sources/Projects/Feature/ProjectDetail/Router/Previews/ProjectDetailRouterPreviews.swift - Question solving → Git It API: submits answer
- Question solving → Git It API: sets bookmark
- Dependency assembly → Project use cases: assembles
- Dependency assembly → Project generation: assembles
- Dependency assembly → Account use cases: assembles
- Project use cases → Learning API data: uses repository
- Project generation → Learning API data: uses repository
- Account use cases → Authentication data: uses repository
- Dependency assembly → External repository lookup: assembles
- Storage factory → Secure local storage: creates
sources/Projects/Data/Shared/Factories/StorageFactory.swift - Secure local storage → Keychain: reads and writes
sources/Projects/Data/Shared/Stores/LocalSecureValueStorage.swift - Session record coding → Secure local storage: reads and writes session
sources/Projects/Data/Authentication/Codings/SessionRecordStorageCoding.swift - Notification handling → App user: delivers notifications
- Learning API data → Git It API: requests data
- Authentication data → Git It API: requests authentication
- External repository lookup → GitHub: fetches repository