// swift-tools-version: 6.0
//
//  Package.swift
//  Config
//
//  Created by  on 3/13/24.
//

import PackageDescription


#if TUIST
import ProjectDescription
import CarveEnvironment

let packageSettings = PackageSettings(
    productTypes: Environment.forPreview.getBoolean(default: false) ? [
        // TCA의 하위 라이브러리들도 dynamic으로 설정
        "ComposableArchitecture": .framework,
        "Dependencies": .framework,
        "CombineSchedulers": .framework,
        "Sharing": .framework,
        "SwiftUINavigation": .framework,
        "UIKitNavigation": .framework,
        "UIKitNavigationShim": .framework,
        "ConcurrencyExtras": .framework,
        "Clocks": .framework,
        "CustomDump": .framework,
        "IdentifiedCollections": .framework,
        "XCTestDynamicOverlay": .framework,
        "IssueReporting": .framework,
        "_CollectionsUtilities": .framework,
        "PerceptionCore": .framework,
        "Perception": .framework,
        "OrderedCollections": .framework,
        "CasePaths": .framework,
        "DependenciesMacros": .framework,
    ] : [:] ,
   // ... 기타 설정들
)

#endif

let package = Package(
    name: "Carve",
    dependencies: [
        .package(url: "https://github.com/pointfreeco/swift-composable-architecture", .upToNextMajor(from: "1.17.1")),
        // ... 기타 의존성들 
    ]
)