├── .github └── workflows │ └── copy-issues.yml ├── .gitignore ├── LICENSE ├── README.md ├── README_Images └── app.gif ├── iOSEngineerCodeCheck.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── iOSEngineerCodeCheck ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── SceneDelegate.swift ├── ViewController.swift └── ViewController2.swift ├── iOSEngineerCodeCheckTests ├── Info.plist └── iOSEngineerCodeCheckTests.swift └── iOSEngineerCodeCheckUITests ├── Info.plist └── iOSEngineerCodeCheckUITests.swift /.github/workflows/copy-issues.yml: -------------------------------------------------------------------------------- 1 | name: "Copy issues" 2 | on: 3 | workflow_dispatch: 4 | 5 | jobs: 6 | get-issue-labels: 7 | if: github.repository != 'yumemi-inc/ios-engineer-codecheck' 8 | runs-on: ubuntu-latest 9 | outputs: 10 | labels: ${{ steps.output_label_data.outputs.value }} 11 | steps: 12 | - name: Getting Labels data 13 | id: get_label_data 14 | uses: octokit/request-action@v2.1.0 15 | with: 16 | route: GET /repos/yumemi-inc/ios-engineer-codecheck/labels 17 | env: 18 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 19 | - id: output_label_data 20 | run: | 21 | result=$(echo '${{ steps.get_label_data.outputs.data }}' | sed -z 's/\n//g') 22 | echo "::set-output name=value::${result}" 23 | 24 | create-issue-labels: 25 | needs: get-issue-labels 26 | runs-on: ubuntu-latest 27 | permissions: 28 | issues: write 29 | strategy: 30 | matrix: 31 | label: ${{ fromJson(needs.get-issue-labels.outputs.labels) }} 32 | steps: 33 | - name: Create a label 34 | uses: octokit/request-action@v2.1.0 35 | with: 36 | route: POST /repos/${{ github.repository }}/labels 37 | name: ${{ matrix.label.name }} 38 | color: ${{ matrix.label.color }} 39 | description: ${{ matrix.label.description }} 40 | env: 41 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 42 | 43 | get-milestones: 44 | if: github.repository != 'yumemi-inc/ios-engineer-codecheck' 45 | runs-on: ubuntu-latest 46 | outputs: 47 | milestones: ${{ steps.output_milestones_data.outputs.value }} 48 | steps: 49 | - name: Getting Milestones data 50 | id: get_milestones_data 51 | uses: octokit/request-action@v2.1.0 52 | with: 53 | route: GET /repos/yumemi-inc/ios-engineer-codecheck/milestones 54 | env: 55 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 56 | - id: output_milestones_data 57 | run: | 58 | result=$(echo '${{ steps.get_milestones_data.outputs.data }}' | sed -z 's/\n//g') 59 | echo "::set-output name=value::${result}" 60 | 61 | create-milestones: 62 | needs: get-milestones 63 | runs-on: ubuntu-latest 64 | permissions: 65 | issues: write 66 | strategy: 67 | matrix: 68 | milestone: ${{ fromJson(needs.get-milestones.outputs.milestones) }} 69 | steps: 70 | - name: Create a milestone 71 | uses: octokit/request-action@v2.1.0 72 | with: 73 | route: POST /repos/${{ github.repository }}/milestones 74 | title: ${{ matrix.milestone.title }} 75 | description: ${{ matrix.milestone.description }} 76 | env: 77 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 78 | 79 | get-myrepo-milestones: 80 | needs: create-milestones 81 | runs-on: ubuntu-latest 82 | permissions: 83 | issues: read 84 | outputs: 85 | milestones: ${{ steps.output_milestones_data.outputs.value }} 86 | steps: 87 | - name: Getting Milestones data 88 | id: get_milestones_data 89 | uses: octokit/request-action@v2.1.0 90 | with: 91 | route: GET /repos/${{ github.repository }}/milestones 92 | env: 93 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 94 | - id: output_milestones_data 95 | run: | 96 | result=$(echo '${{ steps.get_milestones_data.outputs.data }}' | sed -z 's/\n/%0A/g' | sed -z 's/\r/%0D/g') 97 | echo "::set-output name=value::${result}" 98 | 99 | get-issues: 100 | if: github.repository != 'yumemi-inc/ios-engineer-codecheck' 101 | runs-on: ubuntu-latest 102 | outputs: 103 | issues: ${{ steps.output_issues_data.outputs.value }} 104 | steps: 105 | - name: Getting issues data 106 | id: get_issues_data 107 | uses: octokit/request-action@v2.1.0 108 | with: 109 | route: GET /repos/yumemi-inc/ios-engineer-codecheck/issues 110 | sort: created 111 | direction: asc 112 | env: 113 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 114 | - id: output_issues_data 115 | run: | 116 | result=$(echo '${{ steps.get_issues_data.outputs.data }}' | sed -z 's/\n/%0A/g' | sed -z 's/\r/%0D/g') 117 | echo "::set-output name=value::${result}" 118 | - run: echo -e '${{ steps.output_issues_data.outputs.value }}' 119 | 120 | get-myrepo-issues: 121 | if: github.repository != 'yumemi-inc/ios-engineer-codecheck' 122 | runs-on: ubuntu-latest 123 | permissions: 124 | issues: read 125 | outputs: 126 | issues: ${{ steps.output_issues_data.outputs.value }} 127 | steps: 128 | - name: Getting issues data 129 | id: get_issues_data 130 | uses: octokit/request-action@v2.1.0 131 | with: 132 | route: GET /repos/${{ github.repository }}/issues 133 | state: all 134 | per_page: 100 135 | env: 136 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 137 | - id: output_issues_data 138 | run: | 139 | result=$(echo '${{ steps.get_issues_data.outputs.data }}' | sed -z 's/\n/%0A/g' | sed -z 's/\r/%0D/g') 140 | echo "::set-output name=value::${result}" 141 | - run: echo -e '${{ steps.output_issues_data.outputs.value }}' 142 | 143 | create-issues: 144 | needs: [create-issue-labels, get-myrepo-milestones, get-issues, get-myrepo-issues] 145 | runs-on: ubuntu-latest 146 | permissions: 147 | issues: write 148 | strategy: 149 | max-parallel: 1 150 | matrix: 151 | issue: ${{ fromJson(needs.get-issues.outputs.issues) }} 152 | steps: 153 | - name: Find milestone 154 | id: find-milestone 155 | run: | 156 | milestones='${{ needs.get-myrepo-milestones.outputs.milestones }}' 157 | milestone_number=$(echo ${milestones} | jq '.[] | select (.title=="${{ matrix.issue.milestone.title }}") | .number' ) 158 | echo "::set-output name=number::${milestone_number}" 159 | - name: Create a issue 160 | if: ${{ matrix.issue.pull_request == null }} 161 | run: | 162 | body=$(echo '${{ matrix.issue.body }}') 163 | body="${body//$'\n'/\\n}" 164 | body="${body//$'\r'/\\r}" 165 | 166 | if [[ "$body" =~ '#'[0-9] ]]; then 167 | link=$(echo "$body" | grep -o "#[0-9]") 168 | num=$(echo $link | tr -d '#') 169 | 170 | issues=$(echo '${{ needs.get-issues.outputs.issues }}' | jq '[ . as $d | keys[] | $d[.] + {index:.} ]') 171 | issue_index=$(echo "$issues" | jq ".[] | select (.number==${num}) | .index") 172 | my_issue_count=$(echo '${{ needs.get-myrepo-issues.outputs.issues }}' | jq '. | length') 173 | 174 | num=$(($issue_index+$my_issue_count+1)) 175 | body=$(echo $body | sed "s/$link/#${num}/g") 176 | fi 177 | 178 | labels='${{ toJson(matrix.issue.labels.*.name) }}' 179 | curl -X POST -H "Accept: application/vnd.github.v3+json" \ 180 | -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ 181 | https://api.github.com/repos/${{ github.repository }}/issues \ 182 | -d "{ 183 | \"title\" : \"${{ matrix.issue.title }}\", 184 | \"body\" : \"$body\", 185 | \"labels\" : ${labels}, 186 | \"milestone\" : ${{ steps.find-milestone.outputs.number }} 187 | }" 188 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.toptal.com/developers/gitignore/api/macos,swift,xcode 3 | # Edit at https://www.toptal.com/developers/gitignore?templates=macos,swift,xcode 4 | 5 | ### macOS ### 6 | # General 7 | .DS_Store 8 | .AppleDouble 9 | .LSOverride 10 | 11 | # Icon must end with two \r 12 | Icon 13 | 14 | 15 | # Thumbnails 16 | ._* 17 | 18 | # Files that might appear in the root of a volume 19 | .DocumentRevisions-V100 20 | .fseventsd 21 | .Spotlight-V100 22 | .TemporaryItems 23 | .Trashes 24 | .VolumeIcon.icns 25 | .com.apple.timemachine.donotpresent 26 | 27 | # Directories potentially created on remote AFP share 28 | .AppleDB 29 | .AppleDesktop 30 | Network Trash Folder 31 | Temporary Items 32 | .apdisk 33 | 34 | ### Swift ### 35 | # Xcode 36 | # 37 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 38 | 39 | ## User settings 40 | xcuserdata/ 41 | 42 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 43 | *.xcscmblueprint 44 | *.xccheckout 45 | 46 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 47 | build/ 48 | DerivedData/ 49 | *.moved-aside 50 | *.pbxuser 51 | !default.pbxuser 52 | *.mode1v3 53 | !default.mode1v3 54 | *.mode2v3 55 | !default.mode2v3 56 | *.perspectivev3 57 | !default.perspectivev3 58 | 59 | ## Obj-C/Swift specific 60 | *.hmap 61 | 62 | ## App packaging 63 | *.ipa 64 | *.dSYM.zip 65 | *.dSYM 66 | 67 | ## Playgrounds 68 | timeline.xctimeline 69 | playground.xcworkspace 70 | 71 | # Swift Package Manager 72 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 73 | # Packages/ 74 | # Package.pins 75 | # Package.resolved 76 | # *.xcodeproj 77 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata 78 | # hence it is not needed unless you have added a package configuration file to your project 79 | # .swiftpm 80 | 81 | .build/ 82 | 83 | # CocoaPods 84 | # We recommend against adding the Pods directory to your .gitignore. However 85 | # you should judge for yourself, the pros and cons are mentioned at: 86 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 87 | # Pods/ 88 | # Add this line if you want to avoid checking in source code from the Xcode workspace 89 | # *.xcworkspace 90 | 91 | # Carthage 92 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 93 | # Carthage/Checkouts 94 | 95 | Carthage/Build/ 96 | 97 | # Add this lines if you are using Accio dependency management (Deprecated since Xcode 12) 98 | # Dependencies/ 99 | # .accio/ 100 | 101 | # fastlane 102 | # It is recommended to not store the screenshots in the git repo. 103 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 104 | # For more information about the recommended setup visit: 105 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 106 | 107 | fastlane/report.xml 108 | fastlane/Preview.html 109 | fastlane/screenshots/**/*.png 110 | fastlane/test_output 111 | 112 | # Code Injection 113 | # After new code Injection tools there's a generated folder /iOSInjectionProject 114 | # https://github.com/johnno1962/injectionforxcode 115 | 116 | iOSInjectionProject/ 117 | 118 | ### Xcode ### 119 | # Xcode 120 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 121 | 122 | 123 | 124 | 125 | ## Gcc Patch 126 | /*.gcno 127 | 128 | ### Xcode Patch ### 129 | *.xcodeproj/* 130 | !*.xcodeproj/project.pbxproj 131 | !*.xcodeproj/xcshareddata/ 132 | !*.xcworkspace/contents.xcworkspacedata 133 | **/xcshareddata/WorkspaceSettings.xcsettings 134 | 135 | # End of https://www.toptal.com/developers/gitignore/api/macos,swift,xcode 136 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 株式会社ゆめみ iOS エンジニアコードチェック課題 2 | 3 | ## 概要 4 | 5 | 本プロジェクトは株式会社ゆめみ(以下弊社)が、弊社に iOS エンジニアを希望する方に出す課題のベースプロジェクトです。本課題が与えられた方は、下記の説明を詳しく読んだ上で課題を取り組んでください。 6 | 7 | 新卒/未経験者エンジニアの場合、本リファクタリングの通常課題の代わりに、[新規アプリ作成の特別課題](https://yumemi-ios-junior-engineer-codecheck.app.swift.cloud)も選択できますので、ご自身が得意と感じる方を選んでください。特別課題を選んだ場合、通常課題の取り組みは不要です。新規アプリ作成の課題の説明を詳しく読んだ上で課題を取り組んでください。 8 | 9 | ## アプリ仕様 10 | 11 | 本アプリは GitHub のリポジトリーを検索するアプリです。 12 | 13 | ![動作イメージ](README_Images/app.gif) 14 | 15 | ### 環境 16 | 17 | - IDE:基本最新の安定版(本概要更新時点では Xcode 15.2) 18 | - Swift:基本最新の安定版(本概要更新時点では Swift 5.9) 19 | - 開発ターゲット:基本最新の安定版(本概要更新時点では iOS 17.2) 20 | - サードパーティーライブラリーの利用:オープンソースのものに限り制限しない 21 | 22 | ### 動作 23 | 24 | 1. 何かしらのキーワードを入力 25 | 2. GitHub API(`search/repositories`)でリポジトリーを検索し、結果一覧を概要(リポジトリ名)で表示 26 | 3. 特定の結果を選択したら、該当リポジトリの詳細(リポジトリ名、オーナーアイコン、プロジェクト言語、Star 数、Watcher 数、Fork 数、Issue 数)を表示 27 | 28 | ## 課題取り組み方法 29 | 30 | Issues を確認した上、本プロジェクトを [**Duplicate** してください](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/duplicating-a-repository)(Fork しないようにしてください。必要ならプライベートリポジトリーにしても大丈夫です)。今後のコミットは全てご自身のリポジトリーで行ってください。 31 | 32 | コードチェックの課題 Issue は全て [`課題`](https://github.com/yumemi/ios-engineer-codecheck/milestone/1) Milestone がついており、難易度に応じて Label が [`初級`](https://github.com/yumemi/ios-engineer-codecheck/issues?q=is%3Aopen+is%3Aissue+label%3A初級+milestone%3A課題)、[`中級`](https://github.com/yumemi/ios-engineer-codecheck/issues?q=is%3Aopen+is%3Aissue+label%3A中級+milestone%3A課題+) と [`ボーナス`](https://github.com/yumemi/ios-engineer-codecheck/issues?q=is%3Aopen+is%3Aissue+label%3Aボーナス+milestone%3A課題+) に分けられています。課題の必須/選択は下記の表とします: 33 | 34 | | | 初級 | 中級 | ボーナス 35 | |--:|:--:|:--:|:--:| 36 | | 新卒/未経験者 | 必須 | 選択 | 選択 | 37 | | 中途/経験者 | 必須 | 必須 | 選択 | 38 | 39 | 40 | 課題 Issueをご自身のリポジトリーにコピーするGitHub Actionsをご用意しております。 41 | [こちらのWorkflow](./.github/workflows/copy-issues.yml)を[手動でトリガーする](https://docs.github.com/ja/actions/managing-workflow-runs/manually-running-a-workflow)ことでコピーできますのでご活用下さい。 42 | 43 | 課題が完成したら、リポジトリーのアドレスを教えてください。 44 | 45 | ## 参考情報 46 | 47 | 提出された課題の評価ポイントについても詳しく書かれてありますので、ぜひご覧ください。 48 | 49 | - [私が(iOS エンジニアの)採用でコードチェックする時何を見ているのか](https://qiita.com/lovee/items/d76c68341ec3e7beb611) 50 | - [CocoaPods の利用手引き](https://qiita.com/ykws/items/b951a2e24ca85013e722) 51 | - [ChatGPT (Model: GPT-4) でコードリファクタリングをやってみる](https://qiita.com/mitsuharu_e/items/213491c668ab75924cfd) 52 | 53 | ChatGPTなどAIサービスの利用は禁止しておりません。 54 | 利用にあたって工夫したプロンプトやソースコメント等をご提出頂くと加点評価する場合がございます。 (減点評価はありません) 55 | -------------------------------------------------------------------------------- /README_Images/app.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yumemi-inc/ios-engineer-codecheck/121f618f0b82eac3318621dd46bc13382e8c31b7/README_Images/app.gif -------------------------------------------------------------------------------- /iOSEngineerCodeCheck.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 60; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | BF0A658D244F2A3B00280FA6 /* ViewController2.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF0A658C244F2A3B00280FA6 /* ViewController2.swift */; }; 11 | BFD945DF244DC5E80012785A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFD945DE244DC5E80012785A /* AppDelegate.swift */; }; 12 | BFD945E1244DC5E80012785A /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFD945E0244DC5E80012785A /* SceneDelegate.swift */; }; 13 | BFD945E3244DC5E80012785A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFD945E2244DC5E80012785A /* ViewController.swift */; }; 14 | BFD945E6244DC5E80012785A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BFD945E4244DC5E80012785A /* Main.storyboard */; }; 15 | BFD945E8244DC5EB0012785A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BFD945E7244DC5EB0012785A /* Assets.xcassets */; }; 16 | BFD945EB244DC5EB0012785A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BFD945E9244DC5EB0012785A /* LaunchScreen.storyboard */; }; 17 | BFD945F6244DC5EB0012785A /* iOSEngineerCodeCheckTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFD945F5244DC5EB0012785A /* iOSEngineerCodeCheckTests.swift */; }; 18 | BFD94601244DC5EC0012785A /* iOSEngineerCodeCheckUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFD94600244DC5EC0012785A /* iOSEngineerCodeCheckUITests.swift */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | BFD945F2244DC5EB0012785A /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = BFD945D3244DC5E80012785A /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = BFD945DA244DC5E80012785A; 27 | remoteInfo = iOSEngineerCodeCheck; 28 | }; 29 | BFD945FD244DC5EB0012785A /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = BFD945D3244DC5E80012785A /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = BFD945DA244DC5E80012785A; 34 | remoteInfo = iOSEngineerCodeCheck; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | BF0A658C244F2A3B00280FA6 /* ViewController2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController2.swift; sourceTree = ""; }; 40 | BFD945DB244DC5E80012785A /* iOSEngineerCodeCheck.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOSEngineerCodeCheck.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | BFD945DE244DC5E80012785A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 42 | BFD945E0244DC5E80012785A /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 43 | BFD945E2244DC5E80012785A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 44 | BFD945E5244DC5E80012785A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | BFD945E7244DC5EB0012785A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | BFD945EA244DC5EB0012785A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | BFD945EC244DC5EB0012785A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | BFD945F1244DC5EB0012785A /* iOSEngineerCodeCheckTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSEngineerCodeCheckTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | BFD945F5244DC5EB0012785A /* iOSEngineerCodeCheckTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSEngineerCodeCheckTests.swift; sourceTree = ""; }; 50 | BFD945F7244DC5EB0012785A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | BFD945FC244DC5EB0012785A /* iOSEngineerCodeCheckUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOSEngineerCodeCheckUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | BFD94600244DC5EC0012785A /* iOSEngineerCodeCheckUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOSEngineerCodeCheckUITests.swift; sourceTree = ""; }; 53 | BFD94602244DC5EC0012785A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | BFD945D8244DC5E80012785A /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | BFD945EE244DC5EB0012785A /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | BFD945F9244DC5EB0012785A /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | BFD945D2244DC5E80012785A = { 82 | isa = PBXGroup; 83 | children = ( 84 | BFD945DD244DC5E80012785A /* iOSEngineerCodeCheck */, 85 | BFD945F4244DC5EB0012785A /* iOSEngineerCodeCheckTests */, 86 | BFD945FF244DC5EB0012785A /* iOSEngineerCodeCheckUITests */, 87 | BFD945DC244DC5E80012785A /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | BFD945DC244DC5E80012785A /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | BFD945DB244DC5E80012785A /* iOSEngineerCodeCheck.app */, 95 | BFD945F1244DC5EB0012785A /* iOSEngineerCodeCheckTests.xctest */, 96 | BFD945FC244DC5EB0012785A /* iOSEngineerCodeCheckUITests.xctest */, 97 | ); 98 | name = Products; 99 | sourceTree = ""; 100 | }; 101 | BFD945DD244DC5E80012785A /* iOSEngineerCodeCheck */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | BFD945DE244DC5E80012785A /* AppDelegate.swift */, 105 | BFD945E0244DC5E80012785A /* SceneDelegate.swift */, 106 | BFD945E2244DC5E80012785A /* ViewController.swift */, 107 | BF0A658C244F2A3B00280FA6 /* ViewController2.swift */, 108 | BFD945E4244DC5E80012785A /* Main.storyboard */, 109 | BFD945E7244DC5EB0012785A /* Assets.xcassets */, 110 | BFD945E9244DC5EB0012785A /* LaunchScreen.storyboard */, 111 | BFD945EC244DC5EB0012785A /* Info.plist */, 112 | ); 113 | path = iOSEngineerCodeCheck; 114 | sourceTree = ""; 115 | }; 116 | BFD945F4244DC5EB0012785A /* iOSEngineerCodeCheckTests */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | BFD945F5244DC5EB0012785A /* iOSEngineerCodeCheckTests.swift */, 120 | BFD945F7244DC5EB0012785A /* Info.plist */, 121 | ); 122 | path = iOSEngineerCodeCheckTests; 123 | sourceTree = ""; 124 | }; 125 | BFD945FF244DC5EB0012785A /* iOSEngineerCodeCheckUITests */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | BFD94600244DC5EC0012785A /* iOSEngineerCodeCheckUITests.swift */, 129 | BFD94602244DC5EC0012785A /* Info.plist */, 130 | ); 131 | path = iOSEngineerCodeCheckUITests; 132 | sourceTree = ""; 133 | }; 134 | /* End PBXGroup section */ 135 | 136 | /* Begin PBXNativeTarget section */ 137 | BFD945DA244DC5E80012785A /* iOSEngineerCodeCheck */ = { 138 | isa = PBXNativeTarget; 139 | buildConfigurationList = BFD94605244DC5EC0012785A /* Build configuration list for PBXNativeTarget "iOSEngineerCodeCheck" */; 140 | buildPhases = ( 141 | BFD945D7244DC5E80012785A /* Sources */, 142 | BFD945D8244DC5E80012785A /* Frameworks */, 143 | BFD945D9244DC5E80012785A /* Resources */, 144 | ); 145 | buildRules = ( 146 | ); 147 | dependencies = ( 148 | ); 149 | name = iOSEngineerCodeCheck; 150 | productName = iOSEngineerCodeCheck; 151 | productReference = BFD945DB244DC5E80012785A /* iOSEngineerCodeCheck.app */; 152 | productType = "com.apple.product-type.application"; 153 | }; 154 | BFD945F0244DC5EB0012785A /* iOSEngineerCodeCheckTests */ = { 155 | isa = PBXNativeTarget; 156 | buildConfigurationList = BFD94608244DC5EC0012785A /* Build configuration list for PBXNativeTarget "iOSEngineerCodeCheckTests" */; 157 | buildPhases = ( 158 | BFD945ED244DC5EB0012785A /* Sources */, 159 | BFD945EE244DC5EB0012785A /* Frameworks */, 160 | BFD945EF244DC5EB0012785A /* Resources */, 161 | ); 162 | buildRules = ( 163 | ); 164 | dependencies = ( 165 | BFD945F3244DC5EB0012785A /* PBXTargetDependency */, 166 | ); 167 | name = iOSEngineerCodeCheckTests; 168 | productName = iOSEngineerCodeCheckTests; 169 | productReference = BFD945F1244DC5EB0012785A /* iOSEngineerCodeCheckTests.xctest */; 170 | productType = "com.apple.product-type.bundle.unit-test"; 171 | }; 172 | BFD945FB244DC5EB0012785A /* iOSEngineerCodeCheckUITests */ = { 173 | isa = PBXNativeTarget; 174 | buildConfigurationList = BFD9460B244DC5EC0012785A /* Build configuration list for PBXNativeTarget "iOSEngineerCodeCheckUITests" */; 175 | buildPhases = ( 176 | BFD945F8244DC5EB0012785A /* Sources */, 177 | BFD945F9244DC5EB0012785A /* Frameworks */, 178 | BFD945FA244DC5EB0012785A /* Resources */, 179 | ); 180 | buildRules = ( 181 | ); 182 | dependencies = ( 183 | BFD945FE244DC5EB0012785A /* PBXTargetDependency */, 184 | ); 185 | name = iOSEngineerCodeCheckUITests; 186 | productName = iOSEngineerCodeCheckUITests; 187 | productReference = BFD945FC244DC5EB0012785A /* iOSEngineerCodeCheckUITests.xctest */; 188 | productType = "com.apple.product-type.bundle.ui-testing"; 189 | }; 190 | /* End PBXNativeTarget section */ 191 | 192 | /* Begin PBXProject section */ 193 | BFD945D3244DC5E80012785A /* Project object */ = { 194 | isa = PBXProject; 195 | attributes = { 196 | BuildIndependentTargetsInParallel = YES; 197 | LastSwiftUpdateCheck = 1300; 198 | LastUpgradeCheck = 1520; 199 | ORGANIZATIONNAME = "YUMEMI Inc."; 200 | TargetAttributes = { 201 | BFD945DA244DC5E80012785A = { 202 | CreatedOnToolsVersion = 11.4.1; 203 | }; 204 | BFD945F0244DC5EB0012785A = { 205 | CreatedOnToolsVersion = 11.4.1; 206 | TestTargetID = BFD945DA244DC5E80012785A; 207 | }; 208 | BFD945FB244DC5EB0012785A = { 209 | CreatedOnToolsVersion = 11.4.1; 210 | TestTargetID = BFD945DA244DC5E80012785A; 211 | }; 212 | }; 213 | }; 214 | buildConfigurationList = BFD945D6244DC5E80012785A /* Build configuration list for PBXProject "iOSEngineerCodeCheck" */; 215 | compatibilityVersion = "Xcode 15.0"; 216 | developmentRegion = en; 217 | hasScannedForEncodings = 0; 218 | knownRegions = ( 219 | en, 220 | Base, 221 | ); 222 | mainGroup = BFD945D2244DC5E80012785A; 223 | productRefGroup = BFD945DC244DC5E80012785A /* Products */; 224 | projectDirPath = ""; 225 | projectRoot = ""; 226 | targets = ( 227 | BFD945DA244DC5E80012785A /* iOSEngineerCodeCheck */, 228 | BFD945F0244DC5EB0012785A /* iOSEngineerCodeCheckTests */, 229 | BFD945FB244DC5EB0012785A /* iOSEngineerCodeCheckUITests */, 230 | ); 231 | }; 232 | /* End PBXProject section */ 233 | 234 | /* Begin PBXResourcesBuildPhase section */ 235 | BFD945D9244DC5E80012785A /* Resources */ = { 236 | isa = PBXResourcesBuildPhase; 237 | buildActionMask = 2147483647; 238 | files = ( 239 | BFD945EB244DC5EB0012785A /* LaunchScreen.storyboard in Resources */, 240 | BFD945E8244DC5EB0012785A /* Assets.xcassets in Resources */, 241 | BFD945E6244DC5E80012785A /* Main.storyboard in Resources */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | BFD945EF244DC5EB0012785A /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | BFD945FA244DC5EB0012785A /* Resources */ = { 253 | isa = PBXResourcesBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | ); 257 | runOnlyForDeploymentPostprocessing = 0; 258 | }; 259 | /* End PBXResourcesBuildPhase section */ 260 | 261 | /* Begin PBXSourcesBuildPhase section */ 262 | BFD945D7244DC5E80012785A /* Sources */ = { 263 | isa = PBXSourcesBuildPhase; 264 | buildActionMask = 2147483647; 265 | files = ( 266 | BFD945E3244DC5E80012785A /* ViewController.swift in Sources */, 267 | BF0A658D244F2A3B00280FA6 /* ViewController2.swift in Sources */, 268 | BFD945DF244DC5E80012785A /* AppDelegate.swift in Sources */, 269 | BFD945E1244DC5E80012785A /* SceneDelegate.swift in Sources */, 270 | ); 271 | runOnlyForDeploymentPostprocessing = 0; 272 | }; 273 | BFD945ED244DC5EB0012785A /* Sources */ = { 274 | isa = PBXSourcesBuildPhase; 275 | buildActionMask = 2147483647; 276 | files = ( 277 | BFD945F6244DC5EB0012785A /* iOSEngineerCodeCheckTests.swift in Sources */, 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | }; 281 | BFD945F8244DC5EB0012785A /* Sources */ = { 282 | isa = PBXSourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | BFD94601244DC5EC0012785A /* iOSEngineerCodeCheckUITests.swift in Sources */, 286 | ); 287 | runOnlyForDeploymentPostprocessing = 0; 288 | }; 289 | /* End PBXSourcesBuildPhase section */ 290 | 291 | /* Begin PBXTargetDependency section */ 292 | BFD945F3244DC5EB0012785A /* PBXTargetDependency */ = { 293 | isa = PBXTargetDependency; 294 | target = BFD945DA244DC5E80012785A /* iOSEngineerCodeCheck */; 295 | targetProxy = BFD945F2244DC5EB0012785A /* PBXContainerItemProxy */; 296 | }; 297 | BFD945FE244DC5EB0012785A /* PBXTargetDependency */ = { 298 | isa = PBXTargetDependency; 299 | target = BFD945DA244DC5E80012785A /* iOSEngineerCodeCheck */; 300 | targetProxy = BFD945FD244DC5EB0012785A /* PBXContainerItemProxy */; 301 | }; 302 | /* End PBXTargetDependency section */ 303 | 304 | /* Begin PBXVariantGroup section */ 305 | BFD945E4244DC5E80012785A /* Main.storyboard */ = { 306 | isa = PBXVariantGroup; 307 | children = ( 308 | BFD945E5244DC5E80012785A /* Base */, 309 | ); 310 | name = Main.storyboard; 311 | sourceTree = ""; 312 | }; 313 | BFD945E9244DC5EB0012785A /* LaunchScreen.storyboard */ = { 314 | isa = PBXVariantGroup; 315 | children = ( 316 | BFD945EA244DC5EB0012785A /* Base */, 317 | ); 318 | name = LaunchScreen.storyboard; 319 | sourceTree = ""; 320 | }; 321 | /* End PBXVariantGroup section */ 322 | 323 | /* Begin XCBuildConfiguration section */ 324 | BFD94603244DC5EC0012785A /* Debug */ = { 325 | isa = XCBuildConfiguration; 326 | buildSettings = { 327 | ALWAYS_SEARCH_USER_PATHS = NO; 328 | CLANG_ANALYZER_NONNULL = YES; 329 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 330 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 331 | CLANG_CXX_LIBRARY = "libc++"; 332 | CLANG_ENABLE_MODULES = YES; 333 | CLANG_ENABLE_OBJC_ARC = YES; 334 | CLANG_ENABLE_OBJC_WEAK = YES; 335 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 336 | CLANG_WARN_BOOL_CONVERSION = YES; 337 | CLANG_WARN_COMMA = YES; 338 | CLANG_WARN_CONSTANT_CONVERSION = YES; 339 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 340 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 341 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 342 | CLANG_WARN_EMPTY_BODY = YES; 343 | CLANG_WARN_ENUM_CONVERSION = YES; 344 | CLANG_WARN_INFINITE_RECURSION = YES; 345 | CLANG_WARN_INT_CONVERSION = YES; 346 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 347 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 348 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 349 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 350 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 351 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 352 | CLANG_WARN_STRICT_PROTOTYPES = YES; 353 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 354 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 355 | CLANG_WARN_UNREACHABLE_CODE = YES; 356 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 357 | COPY_PHASE_STRIP = NO; 358 | DEBUG_INFORMATION_FORMAT = dwarf; 359 | ENABLE_STRICT_OBJC_MSGSEND = YES; 360 | ENABLE_TESTABILITY = YES; 361 | ENABLE_USER_SCRIPT_SANDBOXING = YES; 362 | GCC_C_LANGUAGE_STANDARD = gnu11; 363 | GCC_DYNAMIC_NO_PIC = NO; 364 | GCC_NO_COMMON_BLOCKS = YES; 365 | GCC_OPTIMIZATION_LEVEL = 0; 366 | GCC_PREPROCESSOR_DEFINITIONS = ( 367 | "DEBUG=1", 368 | "$(inherited)", 369 | ); 370 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 371 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 372 | GCC_WARN_UNDECLARED_SELECTOR = YES; 373 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 374 | GCC_WARN_UNUSED_FUNCTION = YES; 375 | GCC_WARN_UNUSED_VARIABLE = YES; 376 | IPHONEOS_DEPLOYMENT_TARGET = 17.2; 377 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 378 | MTL_FAST_MATH = YES; 379 | ONLY_ACTIVE_ARCH = YES; 380 | SDKROOT = iphoneos; 381 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 382 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 383 | }; 384 | name = Debug; 385 | }; 386 | BFD94604244DC5EC0012785A /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | buildSettings = { 389 | ALWAYS_SEARCH_USER_PATHS = NO; 390 | CLANG_ANALYZER_NONNULL = YES; 391 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 392 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 393 | CLANG_CXX_LIBRARY = "libc++"; 394 | CLANG_ENABLE_MODULES = YES; 395 | CLANG_ENABLE_OBJC_ARC = YES; 396 | CLANG_ENABLE_OBJC_WEAK = YES; 397 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 398 | CLANG_WARN_BOOL_CONVERSION = YES; 399 | CLANG_WARN_COMMA = YES; 400 | CLANG_WARN_CONSTANT_CONVERSION = YES; 401 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 403 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 404 | CLANG_WARN_EMPTY_BODY = YES; 405 | CLANG_WARN_ENUM_CONVERSION = YES; 406 | CLANG_WARN_INFINITE_RECURSION = YES; 407 | CLANG_WARN_INT_CONVERSION = YES; 408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 413 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 414 | CLANG_WARN_STRICT_PROTOTYPES = YES; 415 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 416 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 417 | CLANG_WARN_UNREACHABLE_CODE = YES; 418 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 419 | COPY_PHASE_STRIP = NO; 420 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 421 | ENABLE_NS_ASSERTIONS = NO; 422 | ENABLE_STRICT_OBJC_MSGSEND = YES; 423 | ENABLE_USER_SCRIPT_SANDBOXING = YES; 424 | GCC_C_LANGUAGE_STANDARD = gnu11; 425 | GCC_NO_COMMON_BLOCKS = YES; 426 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 427 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 428 | GCC_WARN_UNDECLARED_SELECTOR = YES; 429 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 430 | GCC_WARN_UNUSED_FUNCTION = YES; 431 | GCC_WARN_UNUSED_VARIABLE = YES; 432 | IPHONEOS_DEPLOYMENT_TARGET = 17.2; 433 | MTL_ENABLE_DEBUG_INFO = NO; 434 | MTL_FAST_MATH = YES; 435 | SDKROOT = iphoneos; 436 | SWIFT_COMPILATION_MODE = wholemodule; 437 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 438 | VALIDATE_PRODUCT = YES; 439 | }; 440 | name = Release; 441 | }; 442 | BFD94606244DC5EC0012785A /* Debug */ = { 443 | isa = XCBuildConfiguration; 444 | buildSettings = { 445 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 446 | CODE_SIGN_STYLE = Automatic; 447 | DEVELOPMENT_TEAM = ""; 448 | INFOPLIST_FILE = iOSEngineerCodeCheck/Info.plist; 449 | LD_RUNPATH_SEARCH_PATHS = ( 450 | "$(inherited)", 451 | "@executable_path/Frameworks", 452 | ); 453 | PRODUCT_BUNDLE_IDENTIFIER = jp.yumemi.iOSEngineerCodeCheck; 454 | PRODUCT_NAME = "$(TARGET_NAME)"; 455 | SWIFT_VERSION = 5.0; 456 | TARGETED_DEVICE_FAMILY = "1,2"; 457 | }; 458 | name = Debug; 459 | }; 460 | BFD94607244DC5EC0012785A /* Release */ = { 461 | isa = XCBuildConfiguration; 462 | buildSettings = { 463 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 464 | CODE_SIGN_STYLE = Automatic; 465 | DEVELOPMENT_TEAM = ""; 466 | INFOPLIST_FILE = iOSEngineerCodeCheck/Info.plist; 467 | LD_RUNPATH_SEARCH_PATHS = ( 468 | "$(inherited)", 469 | "@executable_path/Frameworks", 470 | ); 471 | PRODUCT_BUNDLE_IDENTIFIER = jp.yumemi.iOSEngineerCodeCheck; 472 | PRODUCT_NAME = "$(TARGET_NAME)"; 473 | SWIFT_VERSION = 5.0; 474 | TARGETED_DEVICE_FAMILY = "1,2"; 475 | }; 476 | name = Release; 477 | }; 478 | BFD94609244DC5EC0012785A /* Debug */ = { 479 | isa = XCBuildConfiguration; 480 | buildSettings = { 481 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 482 | BUNDLE_LOADER = "$(TEST_HOST)"; 483 | CODE_SIGN_STYLE = Automatic; 484 | DEVELOPMENT_TEAM = S7G9J68NLX; 485 | INFOPLIST_FILE = iOSEngineerCodeCheckTests/Info.plist; 486 | LD_RUNPATH_SEARCH_PATHS = ( 487 | "$(inherited)", 488 | "@executable_path/Frameworks", 489 | "@loader_path/Frameworks", 490 | ); 491 | PRODUCT_BUNDLE_IDENTIFIER = jp.yumemi.iOSEngineerCodeCheckTests; 492 | PRODUCT_NAME = "$(TARGET_NAME)"; 493 | SWIFT_VERSION = 5.0; 494 | TARGETED_DEVICE_FAMILY = "1,2"; 495 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iOSEngineerCodeCheck.app/iOSEngineerCodeCheck"; 496 | }; 497 | name = Debug; 498 | }; 499 | BFD9460A244DC5EC0012785A /* Release */ = { 500 | isa = XCBuildConfiguration; 501 | buildSettings = { 502 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 503 | BUNDLE_LOADER = "$(TEST_HOST)"; 504 | CODE_SIGN_STYLE = Automatic; 505 | DEVELOPMENT_TEAM = S7G9J68NLX; 506 | INFOPLIST_FILE = iOSEngineerCodeCheckTests/Info.plist; 507 | LD_RUNPATH_SEARCH_PATHS = ( 508 | "$(inherited)", 509 | "@executable_path/Frameworks", 510 | "@loader_path/Frameworks", 511 | ); 512 | PRODUCT_BUNDLE_IDENTIFIER = jp.yumemi.iOSEngineerCodeCheckTests; 513 | PRODUCT_NAME = "$(TARGET_NAME)"; 514 | SWIFT_VERSION = 5.0; 515 | TARGETED_DEVICE_FAMILY = "1,2"; 516 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iOSEngineerCodeCheck.app/iOSEngineerCodeCheck"; 517 | }; 518 | name = Release; 519 | }; 520 | BFD9460C244DC5EC0012785A /* Debug */ = { 521 | isa = XCBuildConfiguration; 522 | buildSettings = { 523 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 524 | CODE_SIGN_STYLE = Automatic; 525 | DEVELOPMENT_TEAM = S7G9J68NLX; 526 | INFOPLIST_FILE = iOSEngineerCodeCheckUITests/Info.plist; 527 | LD_RUNPATH_SEARCH_PATHS = ( 528 | "$(inherited)", 529 | "@executable_path/Frameworks", 530 | "@loader_path/Frameworks", 531 | ); 532 | PRODUCT_BUNDLE_IDENTIFIER = jp.yumemi.iOSEngineerCodeCheckUITests; 533 | PRODUCT_NAME = "$(TARGET_NAME)"; 534 | SWIFT_VERSION = 5.0; 535 | TARGETED_DEVICE_FAMILY = "1,2"; 536 | TEST_TARGET_NAME = iOSEngineerCodeCheck; 537 | }; 538 | name = Debug; 539 | }; 540 | BFD9460D244DC5EC0012785A /* Release */ = { 541 | isa = XCBuildConfiguration; 542 | buildSettings = { 543 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 544 | CODE_SIGN_STYLE = Automatic; 545 | DEVELOPMENT_TEAM = S7G9J68NLX; 546 | INFOPLIST_FILE = iOSEngineerCodeCheckUITests/Info.plist; 547 | LD_RUNPATH_SEARCH_PATHS = ( 548 | "$(inherited)", 549 | "@executable_path/Frameworks", 550 | "@loader_path/Frameworks", 551 | ); 552 | PRODUCT_BUNDLE_IDENTIFIER = jp.yumemi.iOSEngineerCodeCheckUITests; 553 | PRODUCT_NAME = "$(TARGET_NAME)"; 554 | SWIFT_VERSION = 5.0; 555 | TARGETED_DEVICE_FAMILY = "1,2"; 556 | TEST_TARGET_NAME = iOSEngineerCodeCheck; 557 | }; 558 | name = Release; 559 | }; 560 | /* End XCBuildConfiguration section */ 561 | 562 | /* Begin XCConfigurationList section */ 563 | BFD945D6244DC5E80012785A /* Build configuration list for PBXProject "iOSEngineerCodeCheck" */ = { 564 | isa = XCConfigurationList; 565 | buildConfigurations = ( 566 | BFD94603244DC5EC0012785A /* Debug */, 567 | BFD94604244DC5EC0012785A /* Release */, 568 | ); 569 | defaultConfigurationIsVisible = 0; 570 | defaultConfigurationName = Release; 571 | }; 572 | BFD94605244DC5EC0012785A /* Build configuration list for PBXNativeTarget "iOSEngineerCodeCheck" */ = { 573 | isa = XCConfigurationList; 574 | buildConfigurations = ( 575 | BFD94606244DC5EC0012785A /* Debug */, 576 | BFD94607244DC5EC0012785A /* Release */, 577 | ); 578 | defaultConfigurationIsVisible = 0; 579 | defaultConfigurationName = Release; 580 | }; 581 | BFD94608244DC5EC0012785A /* Build configuration list for PBXNativeTarget "iOSEngineerCodeCheckTests" */ = { 582 | isa = XCConfigurationList; 583 | buildConfigurations = ( 584 | BFD94609244DC5EC0012785A /* Debug */, 585 | BFD9460A244DC5EC0012785A /* Release */, 586 | ); 587 | defaultConfigurationIsVisible = 0; 588 | defaultConfigurationName = Release; 589 | }; 590 | BFD9460B244DC5EC0012785A /* Build configuration list for PBXNativeTarget "iOSEngineerCodeCheckUITests" */ = { 591 | isa = XCConfigurationList; 592 | buildConfigurations = ( 593 | BFD9460C244DC5EC0012785A /* Debug */, 594 | BFD9460D244DC5EC0012785A /* Release */, 595 | ); 596 | defaultConfigurationIsVisible = 0; 597 | defaultConfigurationName = Release; 598 | }; 599 | /* End XCConfigurationList section */ 600 | }; 601 | rootObject = BFD945D3244DC5E80012785A /* Project object */; 602 | } 603 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // iOSEngineerCodeCheck 4 | // 5 | // Created by 史 翔新 on 2020/04/20. 6 | // Copyright © 2020 YUMEMI Inc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | // MARK: UISceneSession Lifecycle 22 | 23 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 24 | // Called when a new scene session is being created. 25 | // Use this method to select a configuration to create the new scene with. 26 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 27 | } 28 | 29 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 30 | // Called when the user discards a scene session. 31 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 32 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 33 | } 34 | 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 38 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 84 | 85 | 86 | 87 | 93 | 94 | 95 | 96 | 102 | 108 | 114 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UISceneConfigurationName 33 | Default Configuration 34 | UISceneDelegateClassName 35 | $(PRODUCT_MODULE_NAME).SceneDelegate 36 | UISceneStoryboardFile 37 | Main 38 | 39 | 40 | 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIMainStoryboardFile 45 | Main 46 | UIRequiredDeviceCapabilities 47 | 48 | armv7 49 | 50 | UISupportedInterfaceOrientations 51 | 52 | UIInterfaceOrientationPortrait 53 | UIInterfaceOrientationLandscapeLeft 54 | UIInterfaceOrientationLandscapeRight 55 | 56 | UISupportedInterfaceOrientations~ipad 57 | 58 | UIInterfaceOrientationPortrait 59 | UIInterfaceOrientationPortraitUpsideDown 60 | UIInterfaceOrientationLandscapeLeft 61 | UIInterfaceOrientationLandscapeRight 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // iOSEngineerCodeCheck 4 | // 5 | // Created by 史 翔新 on 2020/04/20. 6 | // Copyright © 2020 YUMEMI Inc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 12 | 13 | var window: UIWindow? 14 | 15 | 16 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 17 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 18 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 19 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 20 | guard let _ = (scene as? UIWindowScene) else { return } 21 | } 22 | 23 | func sceneDidDisconnect(_ scene: UIScene) { 24 | // Called as the scene is being released by the system. 25 | // This occurs shortly after the scene enters the background, or when its session is discarded. 26 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 27 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 28 | } 29 | 30 | func sceneDidBecomeActive(_ scene: UIScene) { 31 | // Called when the scene has moved from an inactive state to an active state. 32 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 33 | } 34 | 35 | func sceneWillResignActive(_ scene: UIScene) { 36 | // Called when the scene will move from an active state to an inactive state. 37 | // This may occur due to temporary interruptions (ex. an incoming phone call). 38 | } 39 | 40 | func sceneWillEnterForeground(_ scene: UIScene) { 41 | // Called as the scene transitions from the background to the foreground. 42 | // Use this method to undo the changes made on entering the background. 43 | } 44 | 45 | func sceneDidEnterBackground(_ scene: UIScene) { 46 | // Called as the scene transitions from the foreground to the background. 47 | // Use this method to save data, release shared resources, and store enough scene-specific state information 48 | // to restore the scene back to its current state. 49 | } 50 | 51 | 52 | } 53 | 54 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // iOSEngineerCodeCheck 4 | // 5 | // Created by 史 翔新 on 2020/04/20. 6 | // Copyright © 2020 YUMEMI Inc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UITableViewController, UISearchBarDelegate { 12 | 13 | @IBOutlet weak var SchBr: UISearchBar! 14 | 15 | var repo: [[String: Any]]=[] 16 | 17 | var task: URLSessionTask? 18 | var word: String! 19 | var url: String! 20 | var idx: Int! 21 | 22 | override func viewDidLoad() { 23 | super.viewDidLoad() 24 | // Do any additional setup after loading the view. 25 | SchBr.text = "GitHubのリポジトリを検索できるよー" 26 | SchBr.delegate = self 27 | } 28 | 29 | func searchBarShouldBeginEditing(_ searchBar: UISearchBar) -> Bool { 30 | // ↓こうすれば初期のテキストを消せる 31 | searchBar.text = "" 32 | return true 33 | } 34 | 35 | func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) { 36 | task?.cancel() 37 | } 38 | 39 | func searchBarSearchButtonClicked(_ searchBar: UISearchBar) { 40 | 41 | word = searchBar.text! 42 | 43 | if word.count != 0 { 44 | url = "https://api.github.com/search/repositories?q=\(word!)" 45 | task = URLSession.shared.dataTask(with: URL(string: url)!) { (data, res, err) in 46 | if let obj = try! JSONSerialization.jsonObject(with: data!) as? [String: Any] { 47 | if let items = obj["items"] as? [[String: Any]] { 48 | self.repo = items 49 | DispatchQueue.main.async { 50 | self.tableView.reloadData() 51 | } 52 | } 53 | } 54 | } 55 | // これ呼ばなきゃリストが更新されません 56 | task?.resume() 57 | } 58 | 59 | } 60 | 61 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 62 | 63 | if segue.identifier == "Detail"{ 64 | let dtl = segue.destination as! ViewController2 65 | dtl.vc1 = self 66 | } 67 | 68 | } 69 | 70 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 71 | return repo.count 72 | } 73 | 74 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 75 | 76 | let cell = UITableViewCell() 77 | let rp = repo[indexPath.row] 78 | cell.textLabel?.text = rp["full_name"] as? String ?? "" 79 | cell.detailTextLabel?.text = rp["language"] as? String ?? "" 80 | cell.tag = indexPath.row 81 | return cell 82 | 83 | } 84 | 85 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 86 | // 画面遷移時に呼ばれる 87 | idx = indexPath.row 88 | performSegue(withIdentifier: "Detail", sender: self) 89 | 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheck/ViewController2.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController2.swift 3 | // iOSEngineerCodeCheck 4 | // 5 | // Created by 史 翔新 on 2020/04/21. 6 | // Copyright © 2020 YUMEMI Inc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController2: UIViewController { 12 | 13 | @IBOutlet weak var ImgView: UIImageView! 14 | 15 | @IBOutlet weak var TtlLbl: UILabel! 16 | 17 | @IBOutlet weak var LangLbl: UILabel! 18 | 19 | @IBOutlet weak var StrsLbl: UILabel! 20 | @IBOutlet weak var WchsLbl: UILabel! 21 | @IBOutlet weak var FrksLbl: UILabel! 22 | @IBOutlet weak var IsssLbl: UILabel! 23 | 24 | var vc1: ViewController! 25 | 26 | override func viewDidLoad() { 27 | super.viewDidLoad() 28 | 29 | let repo = vc1.repo[vc1.idx] 30 | 31 | LangLbl.text = "Written in \(repo["language"] as? String ?? "")" 32 | StrsLbl.text = "\(repo["stargazers_count"] as? Int ?? 0) stars" 33 | WchsLbl.text = "\(repo["wachers_count"] as? Int ?? 0) watchers" 34 | FrksLbl.text = "\(repo["forks_count"] as? Int ?? 0) forks" 35 | IsssLbl.text = "\(repo["open_issues_count"] as? Int ?? 0) open issues" 36 | getImage() 37 | 38 | } 39 | 40 | func getImage(){ 41 | 42 | let repo = vc1.repo[vc1.idx] 43 | 44 | TtlLbl.text = repo["full_name"] as? String 45 | 46 | if let owner = repo["owner"] as? [String: Any] { 47 | if let imgURL = owner["avatar_url"] as? String { 48 | URLSession.shared.dataTask(with: URL(string: imgURL)!) { (data, res, err) in 49 | let img = UIImage(data: data!)! 50 | DispatchQueue.main.async { 51 | self.ImgView.image = img 52 | } 53 | }.resume() 54 | } 55 | } 56 | 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheckTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheckTests/iOSEngineerCodeCheckTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // iOSEngineerCodeCheckTests.swift 3 | // iOSEngineerCodeCheckTests 4 | // 5 | // Created by 史 翔新 on 2020/04/20. 6 | // Copyright © 2020 YUMEMI Inc. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import iOSEngineerCodeCheck 11 | 12 | class iOSEngineerCodeCheckTests: XCTestCase { 13 | 14 | override func setUpWithError() throws { 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDownWithError() throws { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | } 21 | 22 | func testExample() throws { 23 | // This is an example of a functional test case. 24 | // Use XCTAssert and related functions to verify your tests produce the correct results. 25 | } 26 | 27 | func testPerformanceExample() throws { 28 | // This is an example of a performance test case. 29 | self.measure { 30 | // Put the code you want to measure the time of here. 31 | } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheckUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /iOSEngineerCodeCheckUITests/iOSEngineerCodeCheckUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // iOSEngineerCodeCheckUITests.swift 3 | // iOSEngineerCodeCheckUITests 4 | // 5 | // Created by 史 翔新 on 2020/04/20. 6 | // Copyright © 2020 YUMEMI Inc. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class iOSEngineerCodeCheckUITests: XCTestCase { 12 | 13 | override func setUpWithError() throws { 14 | // Put setup code here. This method is called before the invocation of each test method in the class. 15 | 16 | // In UI tests it is usually best to stop immediately when a failure occurs. 17 | continueAfterFailure = false 18 | 19 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 20 | } 21 | 22 | override func tearDownWithError() throws { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | } 25 | 26 | func testExample() throws { 27 | // UI tests must launch the application that they test. 28 | let app = XCUIApplication() 29 | app.launch() 30 | 31 | // Use recording to get started writing UI tests. 32 | // Use XCTAssert and related functions to verify your tests produce the correct results. 33 | } 34 | 35 | func testLaunchPerformance() throws { 36 | if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { 37 | // This measures how long it takes to launch your application. 38 | measure(metrics: [XCTApplicationLaunchMetric()]) { 39 | XCUIApplication().launch() 40 | } 41 | } 42 | } 43 | } 44 | --------------------------------------------------------------------------------