Skip to content

Commit

Permalink
[Fix] sopt-makers#320 - Dev 앱의 Playground 관련 링크들 분기처리
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed Dec 3, 2023
1 parent 120052a commit 3cb19b7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
18 changes: 9 additions & 9 deletions SOPT-iOS/Projects/Core/Sources/Enum/ServiceType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ public enum ServiceType {

public var serviceDomainLink: String {
switch self {
case .officialHomepage: return "https://sopt.org"
case .review: return "https://sopt.org/review"
case .project: return "https://playground.sopt.org/projects"
case .faq: return "https://sopt.org/FAQ"
case .youtube: return "https://m.youtube.com/@SOPTMEDIA"
case .officialHomepage: return ExternalURL.SOPT.officialHomepage
case .review: return ExternalURL.SOPT.review
case .project: return ExternalURL.Playground.project
case .faq: return ExternalURL.SOPT.faq
case .youtube: return ExternalURL.SNS.youtube
case .attendance: return ""
case .member: return "https://playground.sopt.org/members"
case .group: return "https://playground.sopt.org/group?utm_source=playground_group&utm_medium=app_button&utm_campaign=app"
case .instagram: return "https://www.instagram.com/sopt_official"
case .playgroundCommunity: return "https://playground.sopt.org"
case .member: return ExternalURL.Playground.member
case .group: return ExternalURL.Playground.group
case .instagram: return ExternalURL.SNS.instagram
case .playgroundCommunity: return ExternalURL.Playground.playgroundCommunity
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions SOPT-iOS/Projects/Core/Sources/Literals/ExternalURL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ public struct ExternalURL {

public struct SOPT {
public static let project = "https://sopt.org/project"
public static let officialHomepage = "https://sopt.org"
public static let review = "https://sopt.org/review"
public static let faq = "https://sopt.org/FAQ"
}

public struct SNS {
public static let youtube = "https://m.youtube.com/@SOPTMEDIA"
public static let instagram = "https://www.instagram.com/sopt_official"

}

public struct Playground {
Expand All @@ -33,5 +42,10 @@ public struct ExternalURL {
public static func login(state: String = "") -> String {
return "\(main)/auth/oauth?redirect_uri=sopt-makers://org.sopt.makers.iOS/oauth2redirect&state=\(state)"
}

public static let project = "\(main)/projects"
public static let member = "\(main)/members"
public static let group = "\(main)/group?utm_source=playground_group&utm_medium=app_button&utm_campaign=app"
public static let playgroundCommunity = main
}
}

0 comments on commit 3cb19b7

Please sign in to comment.