Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

[추가] 실제 기기에서 실행이 불가한 경우를 위한 대안 추가 #7

Merged
merged 2 commits into from
Dec 31, 2023
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
5 changes: 0 additions & 5 deletions .github/workflows/REVIEW_CODE.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: 코드 검증을 시작합니다.

on:
# 제거
push:
branches:
- '*'

# PR 이벤트가 발생할 때 액션 시작
pull_request:
branches:
Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ SwiftCinema 는 쿠링에서 훌륭한 iOS 개발 멤버를 모시기 위해 개
- Dynamic Library

버그를 찾아내는 과정에서 많은 iOS 지식을 얻을 수 있길 바랍니다!

### 꼭 읽어주세요!

👉🏼 [**시작가이드**](/시작가이드.md)

👉🏾 [**제출가이드**](/제출가이드.md)

위 가이드를 준수하지 않으면 코드 검증이 불가능 합니다.

### 개발 환경

Expand All @@ -41,14 +49,8 @@ SwiftCinema 는 `SwiftCinema` 라는 `.xcproj` 와 `swift-cinema` 라는 스위
|___ 📁 swift-cinema # 스위프트 패키지
```

## 코드 제출 방법 (이메일 제출)
1. GitHub 에서 퍼블릭 레포지토리를 다운로드 합니다.
2. 코드를 수정합니다.
3. [[email protected]](mailto:[email protected]) 으로 코드가 수정된 폴더와 커피챗 안내를 받을 연락처를 전송합니다.
6. 코드 검증이 완료되면 쿠링 팀에서 보내주신 연락처로 커피챗 안내를 도와드립니다.

## 라이센스
이 오픈소스 프로젝트는 [MIT 라이센스](../LICENSE)를 준수합니다.
이 오픈소스 프로젝트는 [MIT 라이센스](/LICENSE.txt)를 준수합니다.

## 연락처
문의사항이나 이슈 레포트는 인스타그램 [@kuring.konkuk](https://instagram.com/kuring.konkuk) 또는 이메일 [[email protected]](mailto:[email protected]) 으로 해주시면 빠르게 답변드리겠습니다.
Expand Down
13 changes: 11 additions & 2 deletions swift-cinema/Sources/CinemaUI/MovieList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ public struct MovieList: View {
// 수정하지 마십시오
Section {
#if targetEnvironment(simulator)
Text("실제 기기에서 돌리면 버튼이 나타납니다")
Text("실제 기기에서 돌리십시오")

NavigationLink("개발자 계정이 없어서 실제 기기 실행이 불가합니까?") {
SubmissionDetailView(
needsAlternative: true
)
}
.disabled(fetcher.movies.isEmpty)
#else
NavigationLink("코드 제출 안내") {
SubmissionDetailView()
SubmissionDetailView(
needsAlternative: false
)
}
.disabled(fetcher.movies.isEmpty)
#endif
Expand Down
20 changes: 17 additions & 3 deletions swift-cinema/Sources/CinemaUI/SubmissionDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,25 @@
import SwiftUI

struct SubmissionDetailView: View {
let needsAlternative: Bool

var body: some View {
Form {
Section {
Text("학우님의 수정으로 앱이 작동하게 되었습니다!")
Text(
needsAlternative
? "학우님의 수정으로 앱이 정상적으로 영화 목록을 가져오게 되었습니다!"
: "학우님의 수정으로 앱이 올바르게 작동하게 되었습니다!"
)
.font(.headline)

Text("[[email protected]](mailto:[email protected])으로 **수정하신 코드를 포함한 전체 폴더**와 커피챗 안내를 받을 **연락처**를 알려주시면 추가적인 코드 검증 후 **커피챗** 안내를 도와드릴 예정입니다.")
Text("수정하신 코드를 **push** 한 후에 학우님의 레포지토리에 **x-0o0** 계정을 **collaborator** 로 추가해주세요")

Text("그런 다음 [[email protected]](mailto:[email protected]) 으로 커피챗 안내를 받을 **연락처**를 알려주시면 추가적인 코드 검증 후 **커피챗** 안내를 도와드릴 예정입니다.")

if needsAlternative {
Text("반드시 메일에 **실제 기기에서 돌릴 수 없는 이유**를 같이 전달해주셔야 합니다. 그렇지 않으면 코드 검증 과정에서 실패가 발생해 커피챗 안내가 가지 않습니다.")
}

Text("**쿠링 미션에 참여해주셔서 감사합니다**")
} footer: {
Expand All @@ -27,6 +39,8 @@ struct SubmissionDetailView: View {

#Preview {
NavigationView {
SubmissionDetailView()
SubmissionDetailView(
needsAlternative: false
)
}
}
Loading