Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: 작업 이슈
about: 기능, 수정, 디자인 변경 등 작업을 등록합니다.
title: "[type] 작업 내용"
labels: []
assignees: []
---

### 상세 내용

- 작업할 내용을 작성해주세요.

### 작업 목록

- [ ] 작업 내용 1
- [ ] 작업 내용 2

### 추가사항

- 관련 Figma, 문서, 참고사항을 작성해주세요.

제목 형식: `[feat] 작업 내용` (`feat`, `fix`, `design`, `refactor`, `docs`, `chore`)
25 changes: 25 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
### 개요

- 이 PR의 목적과 변경사항을 간략하게 설명해주세요.
- 관련 Issue: `Closes #번호` 또는 `Refs #번호`

### 작업 내용

- 주요 변경사항을 상세히 나열해주세요.

### 스크린샷

- UI 변경이 있으면 실제 화면 스크린샷을 첨부해주세요.
- UI 변경이 없으면 `해당 없음`으로 적어주세요.

### 질문사항

- 리뷰어에게 특별히 확인받고 싶은 부분을 작성해주세요.
- 없으면 `없음`으로 적어주세요.

### 테스트 결과

- [ ] 코드가 정상적으로 컴파일되고 실행되는지 확인했습니다.
- [ ] `git diff --check`를 통과했습니다.
- [ ] 기존 기능이 정상적으로 작동하는지 확인했습니다.
- 실행하지 않은 검증 항목은 체크하지 말고 아래에 이유를 적어주세요.
40 changes: 40 additions & 0 deletions .github/workflows/ios-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: iOS CI

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Generate and build
runs-on: macos-26

steps:
- name: Check out source
uses: actions/checkout@v7

- name: Install pinned Tuist
uses: jdx/mise-action@v4

- name: Generate Xcode project
run: tuist generate --no-open

- name: Build for iOS Simulator
run: >-
tuist xcodebuild build
-workspace Reflua.xcworkspace
-scheme Reflua
-configuration Debug
-destination 'generic/platform=iOS Simulator'
CODE_SIGNING_ALLOWED=NO
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# macOS and Xcode
.DS_Store
*.xcuserstate
*.xcuserdatad/
DerivedData/
Derived/

# Tuist generated files and caches
*.xcodeproj/
*.xcworkspace/
Tuist/Cache/
.tuist-cache/
.build/

# Swift Package Manager generated workspace data
.swiftpm/xcode/package.xcworkspace/
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tuist 4.202.0
22 changes: 22 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 기여 안내

## Issue

코드 변경 전에 Issue를 만들고 작업 범위와 완료 조건을 적습니다. 제목 형식은 `[type] 작업 내용`이며 `feat`, `fix`, `design`, `refactor`, `docs`, `chore`를 사용합니다.

## 브랜치와 커밋

- 브랜치: `feature/<짧은-kebab-case-작업명>` (예: `feature/project-setup`)
- 커밋: `type :: 작업 내용 #이슈번호` (예: `chore :: Tuist 앱 기본 구조 추가 #2`)
- 한 커밋에는 함께 검토하고 되돌릴 수 있는 변경만 담습니다.

## Pull Request

- 제목: `[type/#이슈번호] 작업 내용` (예: `[chore/#2] Tuist 앱 기본 구조 추가`)
- 기본 브랜치: 현재 저장소의 `main`
- 설명: 개요, 작업 내용, 스크린샷, 질문사항, 테스트 결과를 작성합니다.
- 화면을 바꿨다면 실제 화면 스크린샷을 첨부합니다.
- 실행하지 않은 빌드나 테스트는 통과한 것으로 표시하지 않습니다.
- Issue를 모두 마쳤을 때만 `Closes #번호`를 사용합니다.

이 규칙은 Reflua 조직의 기존 웹 저장소에서 쓰는 Issue/PR 제목과 템플릿 형식을 참고해 시작했습니다. 저장소에 자동화된 브랜치 보호 규칙은 아직 설정되어 있지 않습니다.
29 changes: 29 additions & 0 deletions Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import ProjectDescription

let project = Project(
name: "Reflua",
organizationName: "Reflua",
targets: [
.target(
name: "Reflua",
destinations: .iOS,
product: .app,
bundleId: "com.reflua.ios",
deploymentTargets: .iOS("17.0"),
infoPlist: .extendingDefault(
with: [
"CFBundleDisplayName": "Reflua",
"UILaunchScreen": [:],
]
),
sources: ["Sources/**"],
dependencies: [],
settings: .settings(
base: [
"SWIFT_VERSION": "6.0",
],
defaultSettings: .recommended
)
),
]
)
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# Reflua-iOS-v1
# Reflua iOS

Reflua iOS 앱 저장소입니다. Tuist로 Xcode 프로젝트를 생성하며, 앱 화면은 SwiftUI를 기본으로 구성하고 UIKit은 앱 생명주기와 필요한 플랫폼 연동에 사용합니다.

## 개발 환경

- Xcode 27+
- Tuist 4.202.0 (`.tool-versions`에 고정)
- mise 사용 시 저장소 루트에서 `mise install`

## 프로젝트 실행

```sh
tuist generate
open Reflua.xcworkspace
```

생성된 `Reflua` scheme을 선택해 시뮬레이터에서 실행합니다. Xcode 프로젝트 파일은 Tuist가 생성하므로 커밋하지 않습니다.

## CI

GitHub Actions는 `main` 대상 PR과 `main` 브랜치 푸시에서 Tuist 프로젝트를 생성하고 iOS Simulator용 Debug 빌드를 실행합니다. 현재 저장소에는 테스트 타깃이 없어 CI는 빌드까지 확인합니다.

## GitHub 작업 흐름

1. 작업 전에 Issue를 만들고 `[feat]`, `[fix]`, `[design]`, `[refactor]`, `[docs]`, `[chore]` 중 작업 유형을 제목에 표시합니다.
2. `feature/<작업명>` 형식의 브랜치에서 작업합니다. 예: `feature/project-setup`.
3. 커밋은 `type :: 작업 내용 #이슈번호` 형식을 사용합니다.
4. PR 제목은 `[type/#이슈번호] 작업 내용`으로 작성하고, Issue 링크와 실제 검증 결과를 포함합니다.
5. UI 변경 PR에는 변경 화면 스크린샷을 첨부합니다.

PR 양식과 Issue 양식은 `.github` 아래 템플릿을 사용합니다.
12 changes: 12 additions & 0 deletions Sources/App/RefluaApp.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import SwiftUI

@main
struct RefluaApp: App {
@UIApplicationDelegateAdaptor(RefluaAppDelegate.self) private var appDelegate

var body: some Scene {
WindowGroup {
RootView()
}
}
}
4 changes: 4 additions & 0 deletions Sources/App/RefluaAppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import UIKit

@MainActor
final class RefluaAppDelegate: NSObject, UIApplicationDelegate {}
7 changes: 7 additions & 0 deletions Sources/UI/RootView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import SwiftUI

struct RootView: View {
var body: some View {
Text("Reflua")
}
}
Loading