Skip to content

Commit

Permalink
드디어 빌드가 된다
Browse files Browse the repository at this point in the history
  • Loading branch information
presto95 committed Mar 13, 2019
1 parent 6d89a5f commit 279daae
Show file tree
Hide file tree
Showing 118 changed files with 1,798 additions and 980 deletions.
2 changes: 2 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ disabled_rules:
- leading_whitespace
- force_try
- function_body_length
- large_tuple
- type_body_length

excluded:
- Pods
Expand Down
856 changes: 428 additions & 428 deletions RespectU.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "1.000",
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000"
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "1.000",
"alpha" : "1.000",
"blue" : "1.000",
"green" : "1.000"
}
}
}
]
}
2 changes: 2 additions & 0 deletions RespectU/Resources/SwiftGen/Assets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ internal enum Asset {
internal static let technicalMixing = ColorAsset(name: "technicalMixing")
internal static let clubMixing = ColorAsset(name: "clubMixing")
internal static let starMixing = ColorAsset(name: "starMixing")
internal static let crewChallenge = ColorAsset(name: "crewChallenge")
internal static let popMixing = ColorAsset(name: "popMixing")
internal static let rSide = ColorAsset(name: "rSide")
internal static let tSide = ColorAsset(name: "tSide")
internal static let portable1 = ColorAsset(name: "portable1")
Expand Down
4 changes: 4 additions & 0 deletions RespectU/Resources/SwiftGen/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ internal enum L10n {
internal static let error = L10n.tr("Localizable", "Error")
/// 실패
internal static let fail = L10n.tr("Localizable", "Fail")
/// 닉네임을 변경하지 못했습니다.
internal static let failedToChangingYourNickname = L10n.tr("Localizable", "Failed to changing your nickname.")
/// 내보낸 성과 기록 정보를 가져옵니다.
internal static let getExportedPerformanceRecordData = L10n.tr("Localizable", "Get exported performance record data.")
/// 그래프
Expand Down Expand Up @@ -247,6 +249,8 @@ internal enum L10n {
internal static let storeRecordedPerformanceInformationOnTheServer = L10n.tr("Localizable", "Store recorded performance information on the server.")
/// 성공
internal static let success = L10n.tr("Localizable", "Success")
/// 닉네임을 변경했습니다.
internal static let successfullyChangingYourNickname = L10n.tr("Localizable", "Successfully changing your nickname.")
/// 요약
internal static let summary = L10n.tr("Localizable", "Summary")
/// 설정값에 따라 첫 실행 화면에 표시되는 정보가 달라집니다.
Expand Down
3 changes: 3 additions & 0 deletions RespectU/Resources/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,6 @@
"Guide for DJMAX RESPECT" = "DJMAX RESPECT 가이드";
"Personal Setting" = "개인 설정";
"More" = "더보기";

"Successfully changing your nickname." = "닉네임을 변경했습니다.";
"Failed to changing your nickname." = "닉네임을 변경하지 못했습니다.";
1 change: 0 additions & 1 deletion RespectU/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
if let favoriteButton = UserDefaults.standard.string(forKey: "favoriteButton") {
UserDefaults.standard.set(favoriteButton.lowercased(), forKey: "favoriteButton")
}
// 전역 프로퍼티 설정
UINavigationBar.appearance().do {
$0.setBackgroundImage(.init(), for: .default)
$0.shadowImage = .init()
Expand Down
1 change: 1 addition & 0 deletions RespectU/Sources/Common/Button.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ enum Button: String {
}
}

/// The all buttons in normal mode.
static let all: [Button] = [.button4, .button5, .button6, .button8]
}
138 changes: 122 additions & 16 deletions RespectU/Sources/Common/MissionSection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@

import UIKit

protocol MissionSectionType {

var color: UIColor? { get }

func makeGradient(by direction: GradientDirection) -> CAGradientLayer?
}

/// The `enum` that defines each mission sections.
enum MissionSection {

/// The `enum` that defines RESPECT mission sections.
enum Respect: String {
enum Respect: String, MissionSectionType {

/// RESPECT - Departure.
case departure = "Departure"
Expand Down Expand Up @@ -43,75 +50,174 @@ enum MissionSection {

/// RESPECT - Destination.
case destination = "Destination"

var color: UIColor? {
switch self {
case .departure: return .departure
case .clubRoad645: return .clubRoad645
case .maxTheater: return .maxTheater
case .anotherWorld: return .anotherWorld
case .backStage: return .backStage
case .chaosTheory: return .chaosTheory
case .soundLab: return .soundLab
case .visualizer: return .visualizer
case .developers: return .developers
case .destination: return .destination
}
}
}

/// The `enum` that defines TRILOGY mission sections.
enum Trilogy: String {
enum Trilogy: String, MissionSectionType {

/// TRILOGY - T-SIDE.
case tSide = "T-SIDE"

/// TRILOGY - R-SIDE.
case rSide = "R-SIDE"

var color: UIColor? {
switch self {
case .tSide: return .tSide
case .rSide: return .rSide
}
}
}

/// The `enum` that defines CLAZZIQUAI EDITION mission sections.
enum CE: String {
enum CE: String, MissionSectionType {

/// CE - Electronic City.
case electronicCity = "Electronic City"

/// CE - Metropolis.
case metropolis = "Metropolis"

var color: UIColor? {
switch self {
case .electronicCity: return .electronicCity
case .metropolis: return .metropolis
}
}
}

/// The `enum` that defines TECHNIKA 1 mission sections.
enum Technika1: String {
enum Technika1: String, MissionSectionType {

/// TECHNIKA 1 - Platinum Mixing.
case platinumMixing = "Platinum Mixing"

/// TECHNIKA 1 - Technical Mixing.
case technicalMixing = "Technical Mixing"

var color: UIColor? {
switch self {
case .platinumMixing: return .platinumMixing
case .technicalMixing: return .technicalMixing
}
}
}

/// The `enum` that defines BLACK SQUARE mission sections.
enum BS: String {
enum BS: String, MissionSectionType {

/// BS - Stylish Performance.
case stylishPerformance = "Stylish Performance"

/// BS - Absolute Sound.
case absoluteSound = "Absolute Sound"
}

/// The `enum` that defines LINK DISK mission sections.
enum LinkDisk: String {

/// LINK DISK - WHITE DISK.
case whiteDisk = "WHITE DISK"

/// LINK DISK - BLACK DISK.
case blackDisk = "BLACK DISK"
var color: UIColor? {
switch self {
case .stylishPerformance: return .stylishPerformance
case .absoluteSound: return .absoluteSound
}
}
}

/// The `enum` that defines TECHNIKA 2 mission sections.
enum Technika2: String {
enum Technika2: String, MissionSectionType {

/// TECHNIKA 2 - STAR MIXING.
case starMixing = "STAR MIXING"

/// TECHNIKA 2 - CLUB MIXING.
case clubMixing = "CLUB MIXING"

var color: UIColor? {
switch self {
case .starMixing: return .starMixing
case .clubMixing: return .clubMixing
}
}
}

/// The `enum` that defines LINK DISK mission sections.
enum LinkDisk: String, MissionSectionType {

/// LINK DISK - WHITE DISK.
case whiteDisk = "WHITE DISK"

/// LINK DISK - BLACK DISK.
case blackDisk = "BLACK DISK"

var color: UIColor? {
switch self {
case .whiteDisk: return .whiteDisk
case .blackDisk: return .blackDisk
}
}
}

/// The `enum` that defines TECHNIKA 3 mission sections.
enum Technika3: String {
enum Technika3: String, MissionSectionType {

/// TECHNIKA 3 - POP MIXING.
case popMixing = "POP MIXING"

/// TECHNIKA 3 - Crew Challenge.
case crewChallenge = "Crew Challenge"

var color: UIColor? {
switch self {
case .popMixing: return .popMixing
case .crewChallenge: return .crewChallenge
}
}
}

case respect

case trilogy

case ce

case technika1

case bs

case technika2

case technika3

static func makeSection(bySeries series: Series, section: String) -> MissionSectionType? {
switch series {
case .respect:
return MissionSection.Respect(rawValue: section)
case .trilogy:
return MissionSection.Trilogy(rawValue: section)
case .ce:
return MissionSection.CE(rawValue: section)
case .technika1:
return MissionSection.Technika1(rawValue: section)
case .bs:
return MissionSection.BS(rawValue: section)
case .technika2:
return MissionSection.Technika2(rawValue: section)
case .technika3:
return MissionSection.Technika3(rawValue: section)
default:
return nil
}
}
}
5 changes: 0 additions & 5 deletions RespectU/Sources/Common/Note.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ enum Note: String {
return nil
}
}
}

// MARK: - Extension

extension Note {

/// Expanded string.
///
Expand Down
3 changes: 3 additions & 0 deletions RespectU/Sources/Common/Rank.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ enum Rank: String {

/// C Rank.
case c

/// None.
case none = ""
}
5 changes: 5 additions & 0 deletions RespectU/Sources/Common/SearchRecordDetail.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@

import Foundation

/// The `struct` using in search record detail.
struct SearchRecordDetail {

/// The series string value.
let series: String

/// The title.
let title: String

/// The difficulty string value.
let difficulty: String

/// The rating double value.
let rate: Double
}
34 changes: 26 additions & 8 deletions RespectU/Sources/Extension/CAGradientLayer+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,33 @@ extension CAGradientLayer {
/// - locations: The locations of a gradient layer.
///
/// - Returns: The gradient layer.
static func make(startPoint: CGPoint,
// static func make(startPoint: CGPoint,
// endPoint: CGPoint,
// colors: [CGColor],
// locations: [NSNumber]) -> CAGradientLayer {
// let gradient = CAGradientLayer()
// gradient.startPoint = startPoint
// gradient.endPoint = endPoint
// gradient.colors = colors
// gradient.locations = locations
// return gradient
// }

/// Initializes the gradient layer.
///
/// - Parameters:
/// - startPoint: The start point of a gradient layer.
/// - endPoint: The end point of a gradient layer.
/// - colors: The colors of a gradient layer.
/// - locations: The locations of a gradient layer.
convenience init(startPoint: CGPoint,
endPoint: CGPoint,
colors: [CGColor],
locations: [NSNumber]) -> CAGradientLayer {
let gradient = CAGradientLayer()
gradient.startPoint = startPoint
gradient.endPoint = endPoint
gradient.colors = colors
gradient.locations = locations
return gradient
locations: [NSNumber]) {
self.init()
self.startPoint = startPoint
self.endPoint = endPoint
self.colors = colors
self.locations = locations
}
}
Loading

0 comments on commit 279daae

Please sign in to comment.