GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nextcloud/NextcloudKit: ☎️ NextcloudKit library to build Nextcloud related Apple apps

BranchesTags
Open more actions menu

Latest commit

 

History

1,132 Commits
1,132 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.tx
.tx
 
 
LICENSES
LICENSES
 
 
Sources
Sources
 
 
Tests
Tests
 
 
.gitignore
.gitignore
 
 
.swiftlint.yml
.swiftlint.yml
 
 
AGENTS.md
AGENTS.md
 
 
AUTHORS.md
AUTHORS.md
 
 
COPYING.iOS
COPYING.iOS
 
 
Gemfile
Gemfile
 
 
LICENSE.txt
LICENSE.txt
 
 
NextcloudKit.png
NextcloudKit.png
 
 
NextcloudKit.pxd
NextcloudKit.pxd
 
 
NextcloudKit.svg
NextcloudKit.svg
 
 
Package.resolved
Package.resolved
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
REUSE.toml
REUSE.toml
 
 
create-docker-test-server.sh
create-docker-test-server.sh
 
 

Repository files navigation

Logo of NextcloudKit

NextcloudKit

REUSE status

Installation

Swift Package Manager

Swift 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.

dependencies: [
    .package(url: "https://github.com/Nextcloud/NextcloudKit.git", .upToNextMajor(from: "2.0.0"))
]

Manual

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.

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

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

Testing

Unit Tests

Since most functions in NextcloudKit involve a server call, you can mock the Alamofire session request. For that we use Mocker.

Integration Tests

To run integration tests, you need a docker instance of a Nextcloud test server. This is a good start.

  1. In TestConstants.swift you must specify your instance credentials. The app token is automatically generated.
public class TestConstants {
    static let timeoutLong: Double = 400
    static let server = "http://localhost:8080"
    static let username = "admin"
    static let password = "admin"
    static let account = "\(username) \(server)"
}
  1. Run the integration tests.

Contribution Guidelines & License

GPLv3 with Apple app store exception.

Nextcloud doesn't require a CLA (Contributor License Agreement). The copyright belongs to all the individual contributors. Therefore we recommend that every contributor adds following line to the header of a file, if they changed it substantially:

@copyright Copyright (c) <year>, <your name> (<your email address>)

Please read the Code of Conduct. This document offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other.

More information how to contribute: https://nextcloud.com/contribute/

About

☎️ NextcloudKit library to build Nextcloud related Apple apps

nextcloud.github.io/NextcloudKit/

Topics

iosmacosnextcloudopen-source

Resources

Readme

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

29 stars

Watchers

2 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.