-
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.
Merge branch 'Dev' of github.com:DDD-Community/PINGPONG-IOS into Dev
# Conflicts: # PingPong/Projects/Feature/Search/Sources/ViewModel/ExploreViewModel.swift
- Loading branch information
Showing
32 changed files
with
419 additions
and
103 deletions.
There are no files selected for viewing
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
45 changes: 0 additions & 45 deletions
45
PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Dependency+Project.swift
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
39 changes: 39 additions & 0 deletions
39
PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Scripts/Extension+TargetScript.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,39 @@ | ||
// | ||
// Extension+TargetScript.swift | ||
// MyPlugin | ||
// | ||
// Created by 서원지 on 11/4/23. | ||
// | ||
|
||
import ProjectDescription | ||
|
||
public extension TargetScript { | ||
static let FirebaseCrashlyticsString = TargetScript.post( | ||
script: Scripts.FirebaseCrashlytics, | ||
name: "FirebaseCrashlytics", | ||
inputPaths: [ | ||
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}", | ||
"$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)", | ||
"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Resources/Firebase/GoogleService-Info.plist -p ios ${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}" | ||
|
||
], | ||
basedOnDependencyAnalysis: true, // 또는 true, 필요에 따라 변경 | ||
runForInstallBuildsOnly: true // 또는 true, 필요에 따라 변경 | ||
) | ||
|
||
static let GoogleServiceInfoString = TargetScript.pre( | ||
script: Scripts.GoogleServiceInfo, | ||
name: "GoogleServiceInfo", | ||
inputPaths: [], | ||
basedOnDependencyAnalysis: false, | ||
runForInstallBuildsOnly: true | ||
) | ||
|
||
static let widgetRunScripts = TargetScript.pre( | ||
script: Scripts.widgetPhaseScripts, | ||
name: "widgetPhaseScripts", | ||
inputPaths: [], | ||
basedOnDependencyAnalysis: true, | ||
runForInstallBuildsOnly: true | ||
) | ||
} |
31 changes: 31 additions & 0 deletions
31
PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/Scripts/Scripts.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,31 @@ | ||
// | ||
// Scripts.swift | ||
// MyPlugin | ||
// | ||
// Created by 서원지 on 11/4/23. | ||
// | ||
|
||
import Foundation | ||
|
||
public enum Scripts { | ||
public static let FirebaseCrashlytics: String = """ | ||
ROOT_DIR=\(ProcessInfo.processInfo.environment["TUIST_ROOT_DIR"] ?? "") | ||
"${ROOT_DIR}/Tuist/Dependencies/SwiftPackageManager/.build/checkouts/firebase-ios-sdk/Crashlytics/run" | ||
""" | ||
public static let GoogleServiceInfo: String = | ||
""" | ||
if [[ "${CONFIGURATION}" == "Debug" ]]; then | ||
cp -r "$SRCROOT/ChaeviUS/Project/Resources/Firebase/GoogleService-Info.plist" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist" | ||
elif [[ "${CONFIGURATION}" == "Release" ]]; then | ||
cp -r "$SRCROOT/ChaeviUS/Project/Resources/Firebase/GoogleService-Info.plist" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist" | ||
fi | ||
""" | ||
|
||
|
||
public static let widgetPhaseScripts: String = """ | ||
cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/" | ||
if [[ -d "Frameworks" ]]; then | ||
rm -fr Frameworks | ||
fi | ||
""" | ||
} |
File renamed without changes.
File renamed without changes.
62 changes: 62 additions & 0 deletions
62
PingPong/Plugins/PingPongs/ProjectDescriptionHelpers/TargetDependency+Module/Modules.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 @@ | ||
// | ||
// Modules.swift | ||
// MyPlugin | ||
// | ||
// Created by 서원지 on 11/4/23. | ||
// | ||
|
||
import Foundation | ||
import ProjectDescription | ||
|
||
public enum ModulePath { | ||
case feature(Feature) | ||
case core(Core) | ||
case domain(Domain) | ||
case design(Design) | ||
} | ||
|
||
// MARK: FeatureModule | ||
public extension ModulePath { | ||
enum Feature: String, CaseIterable { | ||
case Archive | ||
case Auth | ||
case Core | ||
case Bake | ||
case Home | ||
case OnBoarding | ||
case Search | ||
case PayMent | ||
// case Profile | ||
|
||
public static let name: String = "Feature" | ||
} | ||
} | ||
|
||
//MARK: - CoreMoudule | ||
public extension ModulePath { | ||
enum Core: String, CaseIterable { | ||
case Authorization | ||
case Common | ||
|
||
public static let name: String = "Core" | ||
} | ||
} | ||
|
||
//MARK: - CoreDomainModule | ||
public extension ModulePath { | ||
enum Domain: String, CaseIterable { | ||
case API | ||
case Model | ||
case Service | ||
|
||
public static let name: String = "Domain" | ||
} | ||
} | ||
|
||
public extension ModulePath { | ||
enum Design: String, CaseIterable { | ||
case DesignSystem | ||
|
||
public static let name: String = "DesignSystem" | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
...ng/Plugins/PingPongs/ProjectDescriptionHelpers/TargetDependency+Module/Path+Modules.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,58 @@ | ||
// | ||
// Path+Modules.swift | ||
// MyPlugin | ||
// | ||
// Created by 서원지 on 11/4/23. | ||
// | ||
|
||
import Foundation | ||
|
||
import Foundation | ||
import ProjectDescription | ||
|
||
// MARK: ProjectDescription.Path + Feature | ||
public extension ProjectDescription.Path { | ||
static var feature: Self { | ||
return .relativeToRoot("Projects/\(ModulePath.Feature.name)") | ||
} | ||
|
||
static func feature(implementation module: ModulePath.Feature) -> Self { | ||
return .relativeToRoot("Projects/\(ModulePath.Feature.name)/\(module.rawValue)") | ||
} | ||
} | ||
|
||
// MARK: ProjectDescription.Path + Core | ||
public extension ProjectDescription.Path { | ||
static var core: Self { | ||
return .relativeToRoot("Projects/\(ModulePath.Core.name)") | ||
} | ||
|
||
static func core(implementation module: ModulePath.Core) -> Self { | ||
return .relativeToRoot("Projects/\(ModulePath.Core.name)/\(module.rawValue)") | ||
} | ||
} | ||
|
||
|
||
// MARK: ProjectDescription.Path + DesignSystem | ||
|
||
public extension ProjectDescription.Path { | ||
static var design: Self { | ||
return .relativeToRoot("Projects/\(ModulePath.Design.name)") | ||
} | ||
|
||
static func design(implementation module: ModulePath.Design) -> Self { | ||
return .relativeToRoot("Projects/\(module.rawValue)") | ||
} | ||
} | ||
|
||
// MARK: ProjectDescription.Path + Domain | ||
|
||
public extension ProjectDescription.Path { | ||
static var domain: Self { | ||
return .relativeToRoot("Projects/\(ModulePath.Core.name)/\(ModulePath.Domain.name)") | ||
} | ||
|
||
static func domain(implementation module: ModulePath.Domain) -> Self { | ||
return .relativeToRoot("Projects/\(ModulePath.Core.name)/\(ModulePath.Domain.name)/\(module.rawValue)") | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...ingPongs/ProjectDescriptionHelpers/TargetDependency+Module/TargetDependency+Modules.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,40 @@ | ||
// | ||
// TargetDependency+Modules.swift | ||
// MyPlugin | ||
// | ||
// Created by 서원지 on 11/4/23. | ||
// | ||
|
||
|
||
import Foundation | ||
import ProjectDescription | ||
|
||
// MARK: TargetDependency + Feature | ||
public extension TargetDependency { | ||
static func feature(implements module: ModulePath.Feature) -> Self { | ||
return .project(target: module.rawValue, path: .feature(implementation: module)) | ||
} | ||
} | ||
|
||
// MARK: TargetDependency + Design | ||
public extension TargetDependency { | ||
static func design(implements module: ModulePath.Design) -> Self { | ||
return .project(target: module.rawValue, path: .design(implementation: module)) | ||
} | ||
} | ||
|
||
// MARK: TargetDependency + Core | ||
public extension TargetDependency { | ||
static func core(implements module: ModulePath.Core) -> Self { | ||
return .project(target: module.rawValue, path: .core(implementation: module)) | ||
} | ||
} | ||
|
||
|
||
// MARK: TargetDependency + Domain | ||
|
||
public extension TargetDependency { | ||
static func domain(implements module: ModulePath.Domain) -> Self { | ||
return .project(target: module.rawValue, path: .domain(implementation: module)) | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.