mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
> [!NOTE] > Mend has cancelled [the proposed renaming](https://redirect.github.com/renovatebot/renovate/discussions/37842) of the Renovate GitHub app being renamed to `mend[bot]`. > > This notice will be removed on 2025-10-07. <hr> This PR contains the following updates: | Package | Update | Change | |---|---|---| | [SwifterSwift/SwifterSwift](https://redirect.github.com/SwifterSwift/SwifterSwift) | minor | `from: "6.0.0"` -> `from: "6.2.0"` | --- ### Release Notes <details> <summary>SwifterSwift/SwifterSwift (SwifterSwift/SwifterSwift)</summary> ### [`v6.2.0`](https://redirect.github.com/SwifterSwift/SwifterSwift/blob/HEAD/CHANGELOG.md#v620) [Compare Source](https://redirect.github.com/SwifterSwift/SwifterSwift/compare/6.1.1...6.2.0) ##### Added - **NSView** - Added `addArrangedSubviews(_ views: )` to add an array of views to the end of the arrangedSubviews array. [#​1181](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1181) by [Roman Podymov](https://redirect.github.com/RomanPodymov) - Added `removeArrangedSubviews` to remove all views in stack’s array of arranged subviews. [#​1181](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1181) by [Roman Podymov](https://redirect.github.com/RomanPodymov) - **Sequence** - `sorted(by:)`, `sorted(by:with:)`, `sorted(by:and:)`, `sorted(by:and:and:)`, `sum(for:)`, `first(where:equals:)` now have alternatives that receive functions as parameters. This change maintains compatibility with KeyPath while making the methods more flexible. [#​1170](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1170) by [MartonioJunior](https://redirect.github.com/MartonioJunior) ##### Changed - **Sequence** - `sorted(by:)`, `sorted(by:with:)`, `sorted(by:and:)`, `sorted(by:and:and:)`, `sum(for:)`, `first(where:equals:)` now have alternatives that receive functions as parameters. This change maintains compatibility with KeyPath while making the methods more flexible. [#​1170](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1170) by [MartonioJunior](https://redirect.github.com/MartonioJunior) - `contains(_:)` for `Element: Hashable` now can receive any type that conforms to `Sequence`, not just an `Array`. [#​1169](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1169) by [MartonioJunior](https://redirect.github.com/MartonioJunior) ##### Fixed - **PrivacyInfo.xcprivacy** - XCode Generate Privacy Report: `Missing an expected key: 'NSPrivacyCollectedDataTypes'`. [#​1182](https://redirect.github.com/SwifterSwift/SwifterSwift/issues/1182) by [Phil](https://redirect.github.com/cdoky) ### [`v6.1.1`](https://redirect.github.com/SwifterSwift/SwifterSwift/blob/HEAD/CHANGELOG.md#v611) [Compare Source](https://redirect.github.com/SwifterSwift/SwifterSwift/compare/6.1.0...6.1.1) ##### Added - **Cocoapods** - Added the privacy manifest to Cocoapods. [#​1178](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1178) by [guykogus](https://redirect.github.com/guykogus) ### [`v6.1.0`](https://redirect.github.com/SwifterSwift/SwifterSwift/blob/HEAD/CHANGELOG.md#v610) [Compare Source](https://redirect.github.com/SwifterSwift/SwifterSwift/compare/6.0.0...6.1.0) ##### Deprecated - **UIImageView** - `blurred(withStyle:)` should have copied the image view and blurred the new instance, but instead it performed the same functionality as `blur(withStyle:)`, making the outcome unexpected as well as being obsolete. [#​1161](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1161) by [guykogus](https://redirect.github.com/guykogus) ##### Added - **Swift Package Manager** - Added a privacy manifest to comply with Apple's requirements regarding [Describing use of required reason API](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api). [#​1176](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1176) by [guykogus](https://redirect.github.com/guykogus) - **Measurement** - Added `+=`, `-=`, `*=`, `/=` to add, subtract, multiply and divide measurements. [#​1162](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1162) by [Roman Podymov](https://redirect.github.com/RomanPodymov) - **Sequence** - Added `product()` for calculating the product of all `Numeric` elements. [#​1168](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1168) by [MartonioJunior](https://redirect.github.com/MartonioJunior) - Added `product(for:)` for calculating the product of the `Numeric` property for all elements in `Sequence`. [#​1168](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1168) by [MartonioJunior](https://redirect.github.com/MartonioJunior) - **UIView** - Added `removeBlur()` method for removing the applied blur effect from the view. [#​1159](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1159) by [regi93](https://redirect.github.com/regi93) - Added `makeCircle(diameter:)` method to make the view circular. [#​1165](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1165) by [happyduck-git](https://redirect.github.com/happyduck-git) ##### Fixed - **UIImageView** - Moved `blur(withStyle:)` from `UIImageView` to `UIView`, as it can be performed on all views. [#​1161](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1161) by [guykogus](https://redirect.github.com/guykogus) - **UIView** - `GradientDirection` initializer and constants had access level `internal` instead of `public`. [#​1152](https://redirect.github.com/SwifterSwift/SwifterSwift/pull/1152) by [guykogus](https://redirect.github.com/guykogus) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42MC4xIiwidXBkYXRlZEluVmVyIjoiNDEuMTMxLjkiLCJ0YXJnZXRCcmFuY2giOiJjYW5hcnkiLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
46 lines
1.7 KiB
Swift
46 lines
1.7 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: [
|
|
// static linking is required or GraphQL (ApolloAPI) will crash
|
|
.library(name: "Intelligents", type: .static, targets: ["Intelligents"]),
|
|
],
|
|
dependencies: [
|
|
.package(path: "../AffineGraphQL"),
|
|
.package(path: "../AffineResources"),
|
|
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.23.0"),
|
|
.package(url: "https://github.com/apple/swift-collections.git", from: "1.2.1"),
|
|
.package(url: "https://github.com/SnapKit/SnapKit.git", from: "5.7.1"),
|
|
.package(url: "https://github.com/SwifterSwift/SwifterSwift.git", from: "6.2.0"),
|
|
.package(url: "https://github.com/Recouse/EventSource.git", from: "0.1.5"),
|
|
.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"),
|
|
]),
|
|
]
|
|
)
|