Skip to content

Commit

Permalink
🚚 (ContentKit): Move Category to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Nov 13, 2023
1 parent 54f5152 commit 80c7aa3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
15 changes: 15 additions & 0 deletions Modules/ContentKit/Sources/Exercise/Exercise+Category.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Leka - iOS Monorepo
// Copyright 2023 APF France handicap
// SPDX-License-Identifier: Apache-2.0

import Foundation

extension Exercise {

// TODO(@ladislas): is this really needed here?

Check failure on line 9 in Modules/ContentKit/Sources/Exercise/Exercise+Category.swift

View workflow job for this annotation

GitHub Actions / lint

TODOs should be resolved ((@ladislas): is this really ne...) (todo)
public enum Category: String, Codable {
case selection
case dragAndDrop
}

}
6 changes: 0 additions & 6 deletions Modules/ContentKit/Sources/Exercise/Exercise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,4 @@ public struct Exercise: Codable {
public let gameplay: Gameplay
public let payload: Payload

// TODO(@ladislas): is this really needed here?
public enum Category: String, Codable {
case selection
case dragAndDrop
}

}

0 comments on commit 80c7aa3

Please sign in to comment.