mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced file, image, and document attachment support in the input box, including new UI components for managing and previewing attachments. - Added a searchable document picker view and a file attachment header with interactive management options. - Enabled an attachment management controller for viewing and deleting attachments. - Improved image attachment bar with horizontal scrolling and removal functionality. - Enhanced error handling for file attachments, providing user-facing alerts. - **Improvements** - Updated attachment menus for clearer file type indications. - Streamlined attachment handling logic and UI updates for a smoother user experience. - **Bug Fixes** - Addressed error notification by replacing console logging with user alerts when file attachment issues occur. - **Refactor** - Replaced and reorganized the input box view model and attachment bar for better modularity and maintainability. - **Chores** - Updated asset catalogs to include new attachment icons for various file types. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
37 lines
1.3 KiB
Swift
37 lines
1.3 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(url: "https://github.com/apollographql/apollo-ios.git", from: "1.22.0"),
|
|
.package(url: "https://github.com/apple/swift-collections", from: "1.2.0"),
|
|
.package(url: "https://github.com/devxoul/Then", from: "3.0.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"),
|
|
],
|
|
targets: [
|
|
.target(name: "Intelligents", dependencies: [
|
|
"AffineGraphQL",
|
|
"SnapKit",
|
|
"Then",
|
|
"SwifterSwift",
|
|
.product(name: "Apollo", package: "apollo-ios"),
|
|
.product(name: "OrderedCollections", package: "swift-collections"),
|
|
], resources: [
|
|
.process("Interface/View/InputBox/InputBox.xcassets"),
|
|
.process("Interface/Controller/AttachmentManagementController/AttachmentIcon.xcassets"),
|
|
]),
|
|
]
|
|
)
|