Skip to content
nextcloudPublic

About

πŸ“± Nextcloud iOS App

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2.6k stars

Watchers

106 watching

Forks

Latest commit

Β 

History

22,885 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Nextcloud iOS app

Releases Build SwiftLint

Demo of the Nextcloud iOS files app

Download on the App Store

Check out https://nextcloud.com and follow us on Mastodon

How to contribute

If you want to contribute to Nextcloud, you are very welcome:

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. Use SPDX headers for source files, preserving existing contributor credits and adding your own when making substantial changes:

// SPDX-FileCopyrightText: Nextcloud GmbH
// SPDX-FileCopyrightText: <year> <your name>
// SPDX-License-Identifier: GPL-3.0-or-later

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/

Start contributing

You can start by forking this repository and creating pull requests on the master branch. Maybe start working on starter issues.

Easy starting points are also reviewing pull requests.

Project Setup

Open Nextcloud.xcodeproj; package dependencies are managed by Swift Package Manager. The app runs on iOS 17 and later. Use at least the Xcode version and simulator set in .github/workflows/xcode.yml, which is what CI builds and tests with.

Dependencies

The app builds on two Swift packages developed alongside it: NextcloudKit for the server API and LucidBanner for banners and progress HUDs.

In order to build the project in Xcode you will also need a file GoogleService-Info.plist at the root of the repository which contains the Firebase configuration. For development work you can use a mock version found here.

Creating Pull requests

DCO Signoff

Nextcloud enforces the Developer Certificate of Origin (DCO) on Pull Requests. It requires your commit messages to contain a Signed-off-by line with an email address that matches your GitHub account.

How to Sign off

The DCO is a way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing by adding a Signed-off-by line to commit messages.

My Commit message

Signed-off-by: Random Contributor <random@contributor.dev>

Git even has a -s | --signoff command line option to append this to your commit messages automatically.

Code Style

CI runs SwiftLint on every pull request with the rules in .swiftlint.yml. Run swiftlint at the root of the repository before opening a pull request to catch issues early.

AI-assisted Contributions

Contributions made with the help of AI tools are welcome. Declare it in the pull request description (the template has a checkbox for it) and add an Assisted-by: AGENT_NAME:MODEL_VERSION trailer to each affected commit. AGENTS.md describes the project conventions for AI agents and is a useful read for everyone.

Support

If you need assistance or want to ask a question about the iOS app, you are welcome to ask for support in our Forums. If you have found a bug, feel free to open a new Issue on GitHub. Keep in mind, that this repository only manages the iOS app. If you find bugs or have problems with the server/backend, you should ask the Nextcloud server team for help!

Please do not report security vulnerabilities through public GitHub issues. Follow the security policy instead.

TestFlight

Do you want to try the latest development version of Nextcloud iOS? Join the beta on Apple TestFlight.

Testing

Note: If a unit or integration test exclusively uses and tests NextcloudKit functions and components, then add that test to the NextcloudKit project instead. NextcloudKit is used in many other projects as an API, and it's better if such tests are located there.

Unit Tests

Unit tests live in Tests/NextcloudUnitTests, use Swift Testing and need no server. Run them with:

xcodebuild test -scheme Nextcloud -destination "platform=iOS Simulator,name=iPhone 17" -only-testing:NextcloudUnitTests

Adjust the simulator name to one installed on your Mac.

Test Server

UI tests need a running Nextcloud server. Configure the server URL and credentials in Tests/TestConstants.swift. The defaults are http://localhost:8080 and admin / admin, matching CI. Locally, use the shallow CI server image through the Docker script below. GitHub Actions instead installs Nextcloud directly on the runner and serves it on port 8080 using PHP. Both currently use the stable30 server branch.

Launch the server once before running the tests locally. This project comes with a convenience script to do so, see or run Tests/Server.sh. Please familiarize yourself with its content before running it to avoid unintended removal of a container named like in the script.

The same instance is reused for all tests. A long term goal is to automatically create and discard container per test to ensure maximum test isolation and a clean test environment. Note that plain HTTP is used in this case to circumvent certificate issues and simplify the sign-in flow in automation.

UI Tests

UI tests run against the test server described above. Important: UI tests assume your test device (regardless whether physical or Simulator) is set to US English. This is required because in some parts of the user interface the automation has no other choice than to rely on localized texts for control.

About

πŸ“± Nextcloud iOS App

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2.6k stars

Watchers

106 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages