• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

gitリポジトリのurlを貼り付けるだけでアプリケーションのビルドを実行するアプリ。 macOS用


Commit MetaInfo

Revision9b6a7823693379c3690501c5fb8f527e4241f7dd (tree)
Time2017-08-13 13:45:04
Authormasakih <masakih@user...>
Commitermasakih

Log Message

struct内でしか使用しないenumを内部に隠した

Change Summary

Incremental Difference

--- a/AppBuilderWithGit/BuildInfo.swift
+++ b/AppBuilderWithGit/BuildInfo.swift
@@ -8,28 +8,26 @@
88
99 import Foundation
1010
11-
12-enum ProjectType {
13-
14- case xcodeproj
15-
16- case xcworkspace
11+struct BuildInfo {
1712
18- init?(projectFileURL: URL) {
13+ private enum ProjectType {
1914
20- switch projectFileURL.pathExtension {
21-
22- case "xcodeproj": self = .xcodeproj
23-
24- case "xcworkspace": self = .xcworkspace
15+ case xcodeproj
16+
17+ case xcworkspace
18+
19+ init?(projectFileURL: URL) {
2520
26- default: return nil
21+ switch projectFileURL.pathExtension {
22+
23+ case "xcodeproj": self = .xcodeproj
24+
25+ case "xcworkspace": self = .xcworkspace
26+
27+ default: return nil
28+ }
2729 }
2830 }
29-}
30-
31-
32-struct BuildInfo {
3331
3432 private static let buildDir = "Build"
3533