Skip to content

Commit 6e5e491

Browse files
authored
chore: Add dependabot (#240)
* chore: add dependabot Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Clarify instructions for adding NextcloudKit Updated instructions for adding NextcloudKit to clarify local package usage. Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> --------- Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
1 parent f3ca28c commit 6e5e491

6 files changed

Lines changed: 38 additions & 21 deletions

File tree

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SPDX-FileCopyrightText: Nextcloud GmbH
2+
# SPDX-FileCopyrightText: 2026 Milen Pivchev
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
5+
version: 2
6+
updates:
7+
# Package.swift dependencies (Alamofire, SwiftyJSON, SwiftyXMLParser, CodeScanner, Mocker)
8+
- package-ecosystem: "swift"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
open-pull-requests-limit: 10
13+
labels:
14+
- "dependencies"
15+
commit-message:
16+
prefix: "fix(deps)"
17+
18+
# Keep the GitHub Actions used by our workflows up to date
19+
- package-ecosystem: "github-actions"
20+
directory: "/"
21+
schedule:
22+
interval: "weekly"
23+
labels:
24+
- "dependencies"
25+
commit-message:
26+
prefix: "ci"

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ DerivedData
3434
*.hmap
3535
*.xccheckout
3636

37-
## Package
38-
Carthage/
39-
4037
### SwiftPackageManager ###
4138
.swiftpm
4239
Package.resolved

.swiftlint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ disabled_rules:
4242
- compiler_protocol_init
4343

4444
excluded:
45-
- Carthage
4645
- Pods
4746
- Package.swift
4847
- Tests

Cartfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@
1111

1212
## Installation
1313

14-
### Carthage
15-
16-
[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`:
17-
18-
```
19-
github "nextcloud/NextcloudKit" "main"
20-
```
21-
22-
Run `carthage update` to build the framework and drag the built `NextcloudKit.framework` into your Xcode project.
23-
2414
### Swift Package Manager
2515

2616
[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`.
@@ -33,8 +23,17 @@ dependencies: [
3323

3424
### Manual
3525

36-
To add **NextcloudKit** to your app without Carthage, clone this repo and place it somewhere in your project folder.
37-
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`.
26+
To add **NextcloudKit** to your app, clone this repo and place it somewhere in your project folder.
27+
28+
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`.
29+
30+
If used in another Swift package, reference it by path instead:
31+
32+
```swift
33+
dependencies: [
34+
.package(path: "../NextcloudKit")
35+
]
36+
```
3837

3938
## Testing
4039

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SPDX-FileCopyrightText = "2024 Nextcloud GmbH"
1212
SPDX-License-Identifier = "LicenseRef-NextcloudTrademarks"
1313

1414
[[annotations]]
15-
path = ["Cartfile", "Gemfile", "Package.resolved"]
15+
path = ["Gemfile", "Package.resolved"]
1616
precedence = "aggregate"
1717
SPDX-FileCopyrightText = "2022 Nextcloud GmbH and Nextcloud contributors"
1818
SPDX-License-Identifier = "GPL-3.0-or-later"

0 commit comments

Comments
 (0)