-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6da8f24
commit 3539965
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
Plugins/UtilityPlugin/ProjectDescriptionHelpers/Dependency/Dependency+Modul.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import Foundation | ||
import ProjectDescription | ||
|
||
public extension Monster.DesignSystem { | ||
static let foldername = "DesignSystem" | ||
static func project(name: String) -> Monster { | ||
return .project(target: "\(name)", path: .relativeToRoot("\(foldername)")) | ||
} | ||
|
||
static let Implement = project(name: "DesignSystem") | ||
} | ||
|
||
public extension Monster.Core { | ||
static let folderName = "Core" | ||
static func project(name: String, isInterface: Bool) -> Monster { | ||
let postfix: String = isInterface ? "" : "Impl" | ||
return .project(target: "\(name)\(postfix)", | ||
path: .relativeToRoot("\(folderName)")) | ||
} | ||
|
||
static let CSLogger = project(name: "CSLogger", isInterface: true) | ||
static let DefaultsStore = project(name: "DefaultsStore", isInterface: true) | ||
static let RIBsUtil = project(name: "RIBsUtil", isInterface: true) | ||
static let SuperUI = project(name: "SuperUI", isInterface: true) | ||
} | ||
|
||
public extension Monster.ResourceKit { | ||
static let folderName = "ResourceKit" | ||
static func project(name: String) -> Monster { | ||
return .project(target: "\(name)", | ||
path: .relativeToRoot("\(folderName)")) | ||
} | ||
|
||
static let Implement = project(name: "ResourceKit") | ||
} | ||
|
||
// MARK: - Network | ||
public extension Monster.LKNetwork { | ||
static let folderName = "LKNetwork" | ||
static func project(name: String, isInterface: Bool) -> Monster { | ||
let postfix: String = isInterface ? "" : "Impl" | ||
return .project( | ||
target: "\(name)\(postfix)", | ||
path: .relativeToRoot("LKNetwork") | ||
) | ||
} | ||
|
||
static let Interface = project(name: "LKNetwork", isInterface: true) | ||
static let Implement = project(name: "LKNetwork", isInterface: false) | ||
} | ||
|
||
public extension Monster.TokenManager { | ||
static let folderName = "TokenManager" | ||
static func project(name: String, isInterface: Bool) -> Monster { | ||
let postfix: String = isInterface ? "" : "Impl" | ||
return .project(target: "\(name)\(postfix)", | ||
path: .relativeToRoot("\(folderName)")) | ||
} | ||
|
||
static let Interface = project(name: "TokenManager", isInterface: true) | ||
static let Implement = project(name: "TokenManager", isInterface: false) | ||
} |