Skip to content

Latest commit

 

History

History
 
 

ios

DroidKaigi 2021 iOS Application

Get started

  1. Run $ make run-swiftgen and $ make create-kmm-framework
  2. Run $ make open to open this project.

How to preview SwiftUI View

Change to build scheme which places the view you want to preview.

For example, if you preview AboutScreen.swift file, change build scheme to AboutFeature .

Snapshot Testing

  • In this app, we introduce Snapshot Testing. Snapshots are saved in each Test module's __Snapshots__ directory.
  • Snapshots in __Snapshots__ are stored in Git LFS. So if you want to snapshot test. Please install Git LFS and git lfs pull
  • When component or view's appearance are updated, there is no need to update snapshots in PR. CI will automaticaly update snapshots and create PullRequest.

Requirements

Xcode version is 13.0

Project structure

ios
├── DroidKaigi\ 2021
|   |   // Debug Configuration project
│   ├── Debug.xcodeproj/
|   |   // App Sources
│   ├── DroidKaigi\ 2021/
│   ├── Package.swift
|   |   // Release Configuration project
│   └── Release.xcodeproj/
├── DroidKaigi2021.xcworkspace
├── Mintfile
├── Package.swift
├── README.md
|   // Swift Pacakge Sources
├── Sources
|   // Swift Pacakge Tests
└── Tests

Modules

  • Feature modules
    • Module for each feature.
  • Component
  • Repository (If needed)
    • Connecting with KMM Repository layer
  • Utility
    • Common logic, extensions
  • etc (If needed)