Skip to content

Commit

Permalink
[fix] Fix folder naming
Browse files Browse the repository at this point in the history
  • Loading branch information
blyscuit committed Sep 28, 2023
1 parent 3449d97 commit 79afd7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Scripts/Swift/SetUpInterface.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ struct SetUpInterface {
case swiftUI, uiKit

init?(_ name: String) {
switch name.lowercased() {
case "s", "swiftui":
if name == "s" || name == "swiftui" {
self = .swiftUI
case "u", "uikit":
} else if name == "u" || name == "uikit" {
self = .uiKit
default: return nil
} else {
return nil
}
}

Expand Down Expand Up @@ -40,7 +40,7 @@ struct SetUpInterface {
let folderName = interface.folderName

fileManager.moveFiles(in: "tuist/Interfaces/\(folderName)/Project", to: "")
fileManager.moveFiles(in: "tuist/Interfaces/\(folderName)/Sources", to: "TemplateApp/Sources")
fileManager.moveFiles(in: "tuist/Interfaces/\(folderName)/Sources", to: "\(projectName)/Sources")
fileManager.removeItems(in: "tuist/Interfaces")
}
}
5 changes: 2 additions & 3 deletions Scripts/Swift/SetUpiOSProject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ class SetUpIOSProject {

print("Remove script files and git/index")
fileManager.removeItems(in: "make.sh")
fileManager.removeItems(in: ".github/workflows/test_install_script.yml")
fileManager.removeItems(in: ".github/workflows/test_uikit_install_script.yml")
fileManager.removeItems(in: ".github/workflows/test_swiftui_install_script.yml")
fileManager.removeItems(in: ".git/index")
try safeShell("git reset")
}
Expand All @@ -159,8 +160,6 @@ class SetUpIOSProject {
if !isCI {
SetUpCICDService().perform()
SetUpDeliveryConstants().perform()
fileManager.removeItems(in: "fastlane/Tests")
fileManager.removeItems(in: "set_up_test_testflight.sh")
fileManager.removeItems(in: "Scripts")
}
print("✅ Completed")
Expand Down

0 comments on commit 79afd7e

Please sign in to comment.