Skip to content

Commit

Permalink
✨[feat]: 브런치 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy-wonji committed Dec 29, 2023
1 parent a985c47 commit 11b36ce
Show file tree
Hide file tree
Showing 166 changed files with 1,832 additions and 164 deletions.
66 changes: 0 additions & 66 deletions BeatCounter/BeatCounter.xcworkspace/contents.xcworkspacedata

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,9 @@ Derived/

### Tuist managed dependencies ###
Tuist/Dependencies
Tuist/master.key
*.p12
*.cer
Tuist/Signing
BuildConfigurations
*.p8
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// Extension+String.swift
// MyPlugin
//
// Created by 서원지 on 12/29/23.
//

import Foundation
import ProjectDescription

extension String {
public static func appVersion() -> String {
let version: String = "1.0.0"
return version
}

public static func mainBundleID() -> String {
return Project.Environment.bundlePrefix
}

public static func appBuildVersion() -> String {
let buildVersion: String = "10"
return buildVersion
}


public static func appBundleID(name: String) -> String {
return Project.Environment.bundlePrefix+name
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// Project+Enviorment.swift
// MyPlugin
//
// Created by 서원지 on 12/29/23.
//

import Foundation
import ProjectDescription

public extension Project {
public enum Environment {
public static let appName = "BeatMaster"
public static let appDevName = "BeatMaster-Dev"
public static let organizationName = "Wonji suh"
public static let organizationTeamId = "N94CS4N6VR"
public static let deploymentTarget = DeploymentTarget.iOS(targetVersion: "17.0", devices: [.iphone, .ipad])
public static let bundlePrefix = "com.Haejoo.BeatMaster"
public static let appVersion = "1.0.0"
public static let mainBundleId = "com.BeatCounter"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@

import ProjectDescription

public extension Project {
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.Haejoo.BeatCounter" // and so on
public static let appVersion = "1.0.0"
public static let mainBundleId = "com.BeatCounter"
}
}

public extension Project {
static func makeAppModule(
name: String = Environment.appName,
Expand Down Expand Up @@ -45,7 +34,7 @@ public extension Project {
sources: sources,
resources: resources,
entitlements: entitlements,
scripts: [],
scripts: [.SwiftLintString],
dependencies: dependencies
)

Expand All @@ -59,7 +48,7 @@ public extension Project {
sources: sources,
resources: resources,
entitlements: entitlements,
scripts: [],
scripts: [.SwiftLintString],
dependencies: dependencies

)
Expand Down Expand Up @@ -110,30 +99,4 @@ extension Scheme {
}


extension String {
public static func appVersion() -> String {
let version: String = "1.0.0"
return version
}

public static func watchAppVersion() -> String {
let version: String = "1.0.0"
return version
}

public static func appBuildVersion() -> String {
let buildVersion: String = "10"
return buildVersion
}

public static func mainBundleID() -> String {
let bundleID = "com.BeatCounter"
return bundleID
}

public static func appBundleID(name: String) -> String {
let bundleID = "com.BeatCounter\(name)"
return bundleID+name
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Extension+Script.swift
// MyPlugin
//
// Created by 서원지 on 12/29/23.
//

import Foundation
import ProjectDescription

public extension TargetScript {
static let SwiftLintString = TargetScript.pre(
script: swiftLintScript,
name: "SwiftLintString",
basedOnDependencyAnalysis: false
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// Scripts.swift
// MyPlugin
//
// Created by 서원지 on 12/29/23.
//

import Foundation
import ProjectDescription

let swiftLintScript: String = """
if test -d "/opt/homebrew/bin/"; then
PATH="/opt/homebrew/bin/:${PATH}"
fi
export PATH
if which swiftlint > /dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
"""

Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
//
// Project+Settings.swift
// MyPlugin
//
// Created by 서원지 on 12/29/23.
//

import Foundation
import ProjectDescription

extension Settings {
public static let appMainSetting: Settings = .settings(
base: [ "PRODUCT_NAME": "\(Project.Environment.appName)",
"CFBundleDisplayName" : "\(Project.Environment.appName)",
"MARKETING_VERSION": .string(.appVersion()),
"AS_AUTHENTICATION_SERVICES_ENABLED": "YES",
"PUSH_NOTIFICATIONS_ENABLED":"YES",
"ENABLE_BACKGROUND_MODES" : "YES",
"BACKGROUND_MODES" : "remote-notification",
// "ASSOCIATED_DOMAINS": "applinks:PingPong.page.link",
"CURRENT_PROJECT_VERSION": .string(.appBuildVersion()),
"CODE_SIGN_IDENTITY": "iPhone Developer",
"CODE_SIGN_STYLE": "Automatic",
"DEVELOPMENT_TEAM": "\(Project.Environment.organizationTeamId)",
"VERSIONING_SYSTEM": "apple-generic",
"DEBUG_INFORMATION_FORMAT": "DWARF with dSYM File",
"DEVELOPMENT_ASSET_PATH" : "\"Resources/Preview Content\""]
,configurations: [
.debug(name: .debug, settings: [
"PRODUCT_NAME" : "\(Project.Environment.appName)",
"DISPLAY_NAME" : "\(Project.Environment.appName)",
"OTHER_LDFLAGS": [
"-Xlinker", "-interposable", "-all_load", // Set the strip style to non-global symbols
],
"STRIP_STYLE": [
"non-global"
],
]),
.debug(name: "Dev", settings: [
"PRODUCT_NAME" : "\(Project.Environment.appDevName)",
"DISPLAY_NAME" : "\(Project.Environment.appDevName)",
"OTHER_LDFLAGS": [
"-Xlinker", "-interposable", "-all_load", // Set the strip style to non-global symbols
],
"STRIP_STYLE": [
"non-global"
],

]),
.release(name: .release, settings: [
"DEVELOPMENT_ASSET_PATHS": "\"Resources/Preview Content\"",
"PRODUCT_NAME" : "\(Project.Environment.appName)" ,
"DISPLAY_NAME" : "\(Project.Environment.appName)" ,
"OTHER_LDFLAGS": [
"-all_load",
],
"STRIP_STYLE": [
"non-global"
],

])], defaultSettings: .recommended)


public static let appBaseSetting: Settings = .settings(
base: ["PRODUCT_NAME": "\(Project.Environment.appName)",
"MARKETING_VERSION": .string(.appVersion()),
"CURRENT_PROJECT_VERSION": .string(.appBuildVersion()),
"CODE_SIGN_STYLE": "Automatic",
"DEVELOPMENT_TEAM": "\(Project.Environment.organizationTeamId)",
"DEBUG_INFORMATION_FORMAT": "DWARF with dSYM File"],
configurations: [
.debug(name: .debug, settings: [
"PRODUCT_NAME": "\(Project.Environment.appName)",
"OTHER_LDFLAGS": [
"-Xlinker", "-interposable", "-all_load", // Set the strip style to non-global symbols
],
"STRIP_STYLE": [
"non-global"
],
]),
.release(name: .release, settings: [
"PRODUCT_NAME": "\(Project.Environment.appName)",
"OTHER_LDFLAGS": [
"-all_load",
],
"STRIP_STYLE": [
"non-global"
],
])], defaultSettings: .recommended)

}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public extension ModulePath {
//MARK: - CoreDomainModule
public extension ModulePath {
enum Networkings: String, CaseIterable {
case Networking
case Networkings
case Model
case Service
Expand Down
13 changes: 13 additions & 0 deletions BeatMaster/BeatMaster/Projects/App/.swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
opt_in_rules:
- sorted_imports

disabled_rules:
- trailing_whitespace
- function_body_length
- identifier_name

excluded:
- Derived
- Plugins
- Project.swift
- Tuist
Loading

0 comments on commit 11b36ce

Please sign in to comment.