
- 在Package.swift中更新依赖路径,确保项目结构清晰。 - 在AppSettingFeature中新增初始化方法,支持用户信息、头像和昵称的设置。 - 更新FeedListFeature和MainFeature,新增测试按钮和导航功能,提升用户交互体验。 - 在MeFeature中优化用户信息加载逻辑,增强错误处理能力。 - 新增TestView以支持测试功能,验证导航跳转的有效性。 - 更新多个视图以整合新功能,提升代码可读性与维护性。
36 lines
872 B
Swift
36 lines
872 B
Swift
// swift-tools-version: 5.9
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "yana",
|
|
platforms: [
|
|
.iOS(.v15),
|
|
.macOS(.v12)
|
|
],
|
|
products: [
|
|
.library(
|
|
name: "yana",
|
|
targets: ["yana"]
|
|
),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "1.20.2"),
|
|
.package(url: "https://github.com/pointfreeco/swift-case-paths.git", branch: "main")
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "yana",
|
|
dependencies: [
|
|
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
|
|
],
|
|
path: "yana",
|
|
),
|
|
.testTarget(
|
|
name: "yanaTests",
|
|
dependencies: ["yana"],
|
|
path: "yanaAPITests",
|
|
),
|
|
]
|
|
)
|