mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-11 05:58:56 +08:00
1f228382c2
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Built-in Then-style DSL for fluent configuration. - Centralized theming via a new resources library exposing standardized colors and icons for SwiftUI and UIKit. - Refactor - Migrated color and icon accessors to the new resources provider. - Removed redundant imports and streamlined UI configuration. - Dependencies - Updated MarkdownView to 3.4.2. - Removed the Then third-party dependency; updated package sources; added resources package and assets. - Documentation - Added iOS Swift code style and architecture guidelines. - Chores - Updated Xcode project format and repository ignore rules. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
45 lines
1.6 KiB
Swift
45 lines
1.6 KiB
Swift
// swift-tools-version: 5.9
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "Intelligents",
|
|
defaultLocalization: "en",
|
|
platforms: [
|
|
.iOS(.v16),
|
|
],
|
|
products: [
|
|
.library(name: "Intelligents", type: .dynamic, targets: ["Intelligents"]),
|
|
],
|
|
dependencies: [
|
|
.package(path: "../AffineGraphQL"),
|
|
.package(path: "../AffineResources"),
|
|
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.22.0"),
|
|
.package(url: "https://github.com/apple/swift-collections.git", from: "1.2.0"),
|
|
.package(url: "https://github.com/SnapKit/SnapKit.git", from: "5.7.1"),
|
|
.package(url: "https://github.com/SwifterSwift/SwifterSwift.git", from: "6.0.0"),
|
|
.package(url: "https://github.com/Recouse/EventSource.git", from: "0.1.4"),
|
|
.package(url: "https://github.com/Lakr233/ListViewKit.git", from: "1.1.6"),
|
|
.package(url: "https://github.com/Lakr233/MarkdownView.git", from: "3.4.2"),
|
|
],
|
|
targets: [
|
|
.target(name: "Intelligents", dependencies: [
|
|
"AffineGraphQL",
|
|
"AffineResources",
|
|
"SnapKit",
|
|
"SwifterSwift",
|
|
.product(name: "Apollo", package: "apollo-ios"),
|
|
.product(name: "OrderedCollections", package: "swift-collections"),
|
|
"ListViewKit",
|
|
"MarkdownView",
|
|
"EventSource",
|
|
], resources: [
|
|
.process("Resources/main.metal"),
|
|
.process("Resources/Media.xcassets"),
|
|
.process("Interface/View/InputBox/InputBox.xcassets"),
|
|
.process("Interface/Controller/AttachmentManagementController/AttachmentIcon.xcassets"),
|
|
]),
|
|
]
|
|
)
|