Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SPDX-FileCopyrightText: Nextcloud GmbH
# SPDX-FileCopyrightText: 2026 Milen Pivchev
# SPDX-License-Identifier: GPL-3.0-or-later
Comment thread
mpivchev marked this conversation as resolved.

version: 2
updates:
# Package.swift dependencies (Alamofire, SwiftyJSON, SwiftyXMLParser, CodeScanner, Mocker)
- package-ecosystem: "swift"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
labels:
- "dependencies"
commit-message:
prefix: "fix(deps)"

# Keep the GitHub Actions used by our workflows up to date
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
commit-message:
prefix: "ci"
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ DerivedData
*.hmap
*.xccheckout

## Package
Carthage/

### SwiftPackageManager ###
.swiftpm
Package.resolved
Expand Down
1 change: 0 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ disabled_rules:
- compiler_protocol_init

excluded:
- Carthage
- Pods
- Package.swift
- Tests
Expand Down
4 changes: 0 additions & 4 deletions Cartfile

This file was deleted.

23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@

## Installation

### Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate **NextcloudKit** into your Xcode project using Carthage, specify it in your `Cartfile`:

```
github "nextcloud/NextcloudKit" "main"
```

Run `carthage update` to build the framework and drag the built `NextcloudKit.framework` into your Xcode project.

### Swift Package Manager

[Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. Once you have your Swift package set up, adding NextcloudKit as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
Expand All @@ -33,8 +23,17 @@ dependencies: [

### Manual

To add **NextcloudKit** to your app without Carthage, clone this repo and place it somewhere in your project folder.
Then, add `NextcloudKit.xcodeproj` to your project, select your app target and add the NextcloudKit framework as an embedded binary under `General` and as a target dependency under `Build Phases`.
To add **NextcloudKit** to your app, clone this repo and place it somewhere in your project folder.

In an Xcode project, drag the cloned folder into the Project navigator — Xcode picks it up as a local Swift package. Then select your app target and add the `NextcloudKit` library (and `NextcloudKitUI`, if you need the UI components) under `General ▸ Frameworks, Libraries, and Embedded Content`.
Comment thread
mpivchev marked this conversation as resolved.

If used in another Swift package, reference it by path instead:

```swift
dependencies: [
.package(path: "../NextcloudKit")
]
```

## Testing

Expand Down
2 changes: 1 addition & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SPDX-FileCopyrightText = "2024 Nextcloud GmbH"
SPDX-License-Identifier = "LicenseRef-NextcloudTrademarks"

[[annotations]]
path = ["Cartfile", "Gemfile", "Package.resolved"]
path = ["Gemfile", "Package.resolved"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2022 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "GPL-3.0-or-later"
Expand Down
Loading