Skip to content

Commit

Permalink
add: 코어 까지 모듈 분리 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltCastle77 committed Dec 10, 2023
1 parent cd62579 commit ead6a51
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 111 deletions.
Binary file added .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
import ProjectDescription

public extension Project {
enum Environment {
public enum Environment {
public static let appName = "BeatCounter"
public static let organizationName = "" // and so on
public static let deploymentTarget = DeploymentTarget.iOS(targetVersion: "17.0", devices: [.iphone, .ipad])
public static let bundlePrefix = "com." // and so on
// public static let watchDeploymentTarget = DeploymentTarget.watchOS(targetVersion: "10.0")
public static let appVersion = "1.0.0"
public static let mainBundleId = "com.BeatCounter"
}
}

Expand All @@ -31,7 +32,7 @@ public extension Project {
sources: SourceFilesList = .sources,
resources: ResourceFileElements? = nil,
infoPlist: InfoPlist = .default,
entitlements: Path? = nil,
entitlements: Entitlements? = nil,
schemes: [Scheme] = []
) -> Project {
let appTarget = Target(
Expand Down Expand Up @@ -62,7 +63,5 @@ public extension Project {
}

public extension SourceFilesList {
static let sources: SourceFilesList = "Sources/"
static let sources: SourceFilesList = "Sources/**"
}


29 changes: 0 additions & 29 deletions BeatCounter/Project.swift

This file was deleted.

12 changes: 12 additions & 0 deletions BeatCounter/Projects/App/Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import ProjectDescription
import MyPlugin

// Local plugin loaded
let localHelper = LocalHelper(name: "MyPlugin")

// Creates our project using a helper function defined in ProjectDescriptionHelpers
let project = Project.makeAppModule(
bundleId: Project.Environment.appName,
product: .app,
settings: .settings()
)
Empty file.
11 changes: 11 additions & 0 deletions BeatCounter/Projects/Core/Authorization/Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import ProjectDescription
import MyPlugin

// Local plugin loaded

// Creates our project using a helper function defined in ProjectDescriptionHelpers
let project = Project.makeAppModule(
bundleId: "Authorization",
product: .staticFramework,
settings: .settings()
)
Empty file.
13 changes: 13 additions & 0 deletions BeatCounter/Projects/Core/Networking/Project.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import ProjectDescription
import MyPlugin

// Local plugin loaded
let localHelper = LocalHelper(name: "MyPlugin")

// Creates our project using a helper function defined in ProjectDescriptionHelpers
let project = Project.makeAppModule(
bundleId: "Networking",
product: .staticFramework,
settings: .settings(),
dependencies: []
)
Empty file.

This file was deleted.

16 changes: 16 additions & 0 deletions BeatCounter/WorkSpace.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// WorkSpace.swift
// ProjectDescriptionHelpers
//
// Created by 염성훈 on 12/10/23.
//

import Foundation
import ProjectDescription
import MyPlugin


let workSpace = Workspace(
name: Project.Environment.appName,
projects: ["Projects/**"]
)

0 comments on commit ead6a51

Please sign in to comment.