ios/README.md

132 строки
7.3 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

add CI (#1711) * fix * 404 * fix * fix * coding * coding * fix * new Cartfile * added: allowedAlbumCloudShared * fix * fix svg * fix * update strings * new version * improved share * coding * coding * coding * coding * improved richWorkspace * fix * added link name (label) * Delete files / Clear cache * fix * test * coding * fix * fix * fix * update * update library * fix * #1642 * add size in share * set title Files as ALIAS * Build 3 * title & alias * improved cleanUp * Improvements pastePasteboard * coding * coding * coding * build 4 * fix * coding * coding * fix * fix * fix share * coding * coding * coding * coding * coding * coding * coding * coding * coding * coding * improved code * nextcloud_unsupported_version 16 * update lib * new lib * new build * Update README.md update readme * new version * update Strings & lib * Update README.md * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Revert "Talk notification" Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update NCCollectionViewCommon.swift Fix selection count (in NCRecent) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Version 4.2.0 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Precompile Brinding header NO Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements passcode Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Revert "Revert "Talk notification"" * Fix TalkNotification room token Get only roomToken if token & message id are present in objectId Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Update iOSClient/Supporting Files/en.lproj/Localizable.strings Co-authored-by: Henry <thisisthefoxe@gmail.com> * Update iOSClient/Settings/NCSettings.m Co-authored-by: Henry <thisisthefoxe@gmail.com> * update comment Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Use `guard` for splash screen checks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvement Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix server trust nitpicks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * New build for TestFlight Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Update NCLoginWeb.swift Use default app user agent for login. This will display *Nextcloud iOS app* in the user settings. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Use device name as user agent for login flow Make sure the user agent is ascii encoded. Will be shown when logging in, granting access and in /settings/user/security Use ONLY for login flow, when user agent is saved to DB. For API requests always use `getUserAgent()` Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Build 2 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix share email, not asked for password Check for password enforcement every time a new share should be created. Will display an alert. If password enforcement is off, callback returns `nil`. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add CI for xcbuild + linting Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "add resolved cartfile for caching" This reverts commit 53532867f906b22be8775220316eb413be2b097e. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * fix GoogleServices.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * update CI to XC 13 + fix GoogleService.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Caching..? Signed-off-by: Henrik Storch <thisisthefoxe@gmail.com> Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Delete lint.yml Remove for now since it seem it causes problems with other PRs Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "Delete lint.yml" This reverts commit 181739526bf76353b992d689a1899296a2dccbcf. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Linting (default, auto) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * SwiftLint customisation (few errors, many warnings) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update .SwiftLint.yml + autocorrect Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix linting Build Successful (?) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix GH actions yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Quarantine infected lint files Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Add initial tests Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * CI: Remove xc clean for extensions Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix notification weak delegate Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update Readme Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> Co-authored-by: marinofaggiana <marino@marinofaggiana.com> Co-authored-by: Nextcloud bot <bot@nextcloud.com>
2021-12-16 16:41:14 +03:00
# [Nextcloud](https://nextcloud.com) iOS app
[![Releases](https://img.shields.io/github/release/nextcloud/ios.svg)](https://github.com/nextcloud/ios/releases/latest) [![Build](https://github.com/nextcloud/ios/actions/workflows/xcode.yml/badge.svg)](https://github.com/nextcloud/ios/actions/workflows/xcode.yml) [![SwiftLint](https://github.com/nextcloud/ios/actions/workflows/lint.yml/badge.svg)](https://github.com/nextcloud/ios/actions/workflows/lint.yml)
[![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile)
2017-05-05 13:00:03 +03:00
<img src="Animation.gif" alt="Demo of the Nextcloud iOS files app" width="277" height="600"><img src="widget.png" alt="Widget of the Nextcloud iOS files app" width="277" height="600">
2017-05-05 13:00:03 +03:00
add CI (#1711) * fix * 404 * fix * fix * coding * coding * fix * new Cartfile * added: allowedAlbumCloudShared * fix * fix svg * fix * update strings * new version * improved share * coding * coding * coding * coding * improved richWorkspace * fix * added link name (label) * Delete files / Clear cache * fix * test * coding * fix * fix * fix * update * update library * fix * #1642 * add size in share * set title Files as ALIAS * Build 3 * title & alias * improved cleanUp * Improvements pastePasteboard * coding * coding * coding * build 4 * fix * coding * coding * fix * fix * fix share * coding * coding * coding * coding * coding * coding * coding * coding * coding * coding * improved code * nextcloud_unsupported_version 16 * update lib * new lib * new build * Update README.md update readme * new version * update Strings & lib * Update README.md * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Revert "Talk notification" Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update NCCollectionViewCommon.swift Fix selection count (in NCRecent) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Version 4.2.0 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Precompile Brinding header NO Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements passcode Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Revert "Revert "Talk notification"" * Fix TalkNotification room token Get only roomToken if token & message id are present in objectId Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Update iOSClient/Supporting Files/en.lproj/Localizable.strings Co-authored-by: Henry <thisisthefoxe@gmail.com> * Update iOSClient/Settings/NCSettings.m Co-authored-by: Henry <thisisthefoxe@gmail.com> * update comment Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Use `guard` for splash screen checks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvement Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix server trust nitpicks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * New build for TestFlight Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Update NCLoginWeb.swift Use default app user agent for login. This will display *Nextcloud iOS app* in the user settings. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Use device name as user agent for login flow Make sure the user agent is ascii encoded. Will be shown when logging in, granting access and in /settings/user/security Use ONLY for login flow, when user agent is saved to DB. For API requests always use `getUserAgent()` Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Build 2 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix share email, not asked for password Check for password enforcement every time a new share should be created. Will display an alert. If password enforcement is off, callback returns `nil`. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add CI for xcbuild + linting Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "add resolved cartfile for caching" This reverts commit 53532867f906b22be8775220316eb413be2b097e. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * fix GoogleServices.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * update CI to XC 13 + fix GoogleService.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Caching..? Signed-off-by: Henrik Storch <thisisthefoxe@gmail.com> Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Delete lint.yml Remove for now since it seem it causes problems with other PRs Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "Delete lint.yml" This reverts commit 181739526bf76353b992d689a1899296a2dccbcf. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Linting (default, auto) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * SwiftLint customisation (few errors, many warnings) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update .SwiftLint.yml + autocorrect Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix linting Build Successful (?) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix GH actions yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Quarantine infected lint files Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Add initial tests Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * CI: Remove xc clean for extensions Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix notification weak delegate Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update Readme Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> Co-authored-by: marinofaggiana <marino@marinofaggiana.com> Co-authored-by: Nextcloud bot <bot@nextcloud.com>
2021-12-16 16:41:14 +03:00
[<img src="https://developer.apple.com/assets/elements/badges/download-on-the-app-store.svg"
alt="Demo of the Nextcloud iOS files app"
height="40">](https://itunes.apple.com/us/app/nextcloud/id1125420102)
2017-05-05 13:00:03 +03:00
Check out https://nextcloud.com and follow us on [twitter.com/nextclouders](https://twitter.com/nextclouders)
2017-05-05 13:00:03 +03:00
2017-10-12 18:49:47 +03:00
## How to contribute
2017-10-27 12:38:01 +03:00
If you want to [contribute](https://nextcloud.com/contribute/) to Nextcloud, you are very welcome:
2017-05-05 13:00:03 +03:00
- our forum at https://help.nextcloud.com/c/clients/ios
2018-08-20 12:02:28 +03:00
- for translations of the app on [Transifex](https://www.transifex.com/nextcloud/nextcloud/dashboard/)
- opening issues and PRs (including a corresponding issue)
2017-05-05 13:00:03 +03:00
2018-08-20 12:02:28 +03:00
## Contribution Guidelines & License
2017-05-05 13:00:03 +03:00
2018-08-20 12:02:28 +03:00
[GPLv3](LICENSE.txt) with [Apple app store exception](COPYING.iOS).
2017-10-12 18:49:47 +03:00
2018-08-20 12:02:28 +03:00
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](https://nextcloud.com/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/](https://nextcloud.com/contribute/)
2017-05-05 13:00:03 +03:00
## Start contributing
2017-10-12 18:49:47 +03:00
2020-02-04 11:37:42 +03:00
You can start by forking this repository and creating pull requests on the develop
add CI (#1711) * fix * 404 * fix * fix * coding * coding * fix * new Cartfile * added: allowedAlbumCloudShared * fix * fix svg * fix * update strings * new version * improved share * coding * coding * coding * coding * improved richWorkspace * fix * added link name (label) * Delete files / Clear cache * fix * test * coding * fix * fix * fix * update * update library * fix * #1642 * add size in share * set title Files as ALIAS * Build 3 * title & alias * improved cleanUp * Improvements pastePasteboard * coding * coding * coding * build 4 * fix * coding * coding * fix * fix * fix share * coding * coding * coding * coding * coding * coding * coding * coding * coding * coding * improved code * nextcloud_unsupported_version 16 * update lib * new lib * new build * Update README.md update readme * new version * update Strings & lib * Update README.md * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Revert "Talk notification" Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update NCCollectionViewCommon.swift Fix selection count (in NCRecent) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Version 4.2.0 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Precompile Brinding header NO Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Coding Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements passcode Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Revert "Revert "Talk notification"" * Fix TalkNotification room token Get only roomToken if token & message id are present in objectId Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * PrivacyProtectionWindow Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Update iOSClient/Supporting Files/en.lproj/Localizable.strings Co-authored-by: Henry <thisisthefoxe@gmail.com> * Update iOSClient/Settings/NCSettings.m Co-authored-by: Henry <thisisthefoxe@gmail.com> * update comment Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * rename func Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Use `guard` for splash screen checks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvements Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Improvement Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix server trust nitpicks Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * New build for TestFlight Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Update NCLoginWeb.swift Use default app user agent for login. This will display *Nextcloud iOS app* in the user settings. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Use device name as user agent for login flow Make sure the user agent is ascii encoded. Will be shown when logging in, granting access and in /settings/user/security Use ONLY for login flow, when user agent is saved to DB. For API requests always use `getUserAgent()` Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Build 2 Signed-off-by: marinofaggiana <marino@marinofaggiana.com> * Fix share email, not asked for password Check for password enforcement every time a new share should be created. Will display an alert. If password enforcement is off, callback returns `nil`. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add CI for xcbuild + linting Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * add resolved cartfile for caching Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "add resolved cartfile for caching" This reverts commit 53532867f906b22be8775220316eb413be2b097e. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * fix GoogleServices.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * update CI to XC 13 + fix GoogleService.plist Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update xcode.yml Caching..? Signed-off-by: Henrik Storch <thisisthefoxe@gmail.com> Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Delete lint.yml Remove for now since it seem it causes problems with other PRs Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Revert "Delete lint.yml" This reverts commit 181739526bf76353b992d689a1899296a2dccbcf. Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Linting (default, auto) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * SwiftLint customisation (few errors, many warnings) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update .SwiftLint.yml + autocorrect Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix linting Build Successful (?) Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix GH actions yml Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Quarantine infected lint files Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Add initial tests Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * CI: Remove xc clean for extensions Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Fix notification weak delegate Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> * Update Readme Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com> Co-authored-by: marinofaggiana <marino@marinofaggiana.com> Co-authored-by: Nextcloud bot <bot@nextcloud.com>
2021-12-16 16:41:14 +03:00
branch. Maybe start working on [starter issues](https://github.com/nextcloud/ios/labels/good%20first%20issue).
Easy starting points are also reviewing [pull requests](https://github.com/nextcloud/ios/pulls)
### Xcode 15 Project Setup
#### Dependencies
After forking a repository you have to build the dependencies. Dependencies are managed with Carthage version 0.38.0 or later.
Run
```
carthage update --use-xcframeworks --platform iOS
```
to fetch and compile the dependencies.
2017-05-05 13:00:03 +03:00
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](https://github.com/firebase/quickstart-ios/blob/master/mock-GoogleService-Info.plist).
### Creating Pull requests
#### DCO Signoff
Nextcloud enforces the [Developer Certificate of Origin (DCO)](https://developercertificate.org/) 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.
2018-08-20 12:02:28 +03:00
## Support
2017-05-05 13:00:03 +03:00
If you need assistance or want to ask a question about the iOS app, you are welcome to [ask for support](https://help.nextcloud.com/c/clients/ios) in our Forums. If you have found a bug, feel free to [open a new Issue on GitHub](https://github.com/nextcloud/ios/issues). 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](https://github.com/nextcloud/server) for help!
2019-02-09 21:08:07 +03:00
## TestFlight
Do you want to try the latest version in development of Nextcloud iOS ? Simple, follow this simple step
2019-02-09 21:08:07 +03:00
[Apple TestFlight](https://testflight.apple.com/join/RXEJbWj9)
CI test integration (#2429) * Squash into one commit Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Refactor Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Put script in a gist Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Exclude tests from lint Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Add README info for tests Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Remove local script Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * New gist Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Revert "Remove local script" This reverts commit b0da80337709e500fc2d5888c062bcd7c471a1f5. Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Restore local script Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Update README Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Fix test Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Refactor Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Remove code Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Swiftlint Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Refactor Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Update Tests/NextcloudUITests/LoginUITests.swift Co-authored-by: Marcel Müller <marcel-mueller@gmx.de> Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Refactor Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Try to fix failing test Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Add base UI test class Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> * Use docker set up alternative Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> --------- Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com> Co-authored-by: Marcel Müller <marcel-mueller@gmx.de>
2023-06-22 16:59:55 +03:00
## Testing
#### Note: If a Unit or Integration test exclusively uses and tests NextcloudKit functions and components, then write that test in the NextcloudKit repo. NextcloudKit is used in many other repos as an API, and it's better if such tests are located there.
### Unit tests:
There are currently no preresquites for unit testing that need to be done. Mock everything that's not needed.
### Integration tests:
To run integration tests, we need a docker instance of a Nextcloud test server.
The CI does all this automatically, but to do it manually:
1. Run `docker run --rm -d -p 8080:80 ghcr.io/juliushaertl/nextcloud-dev-php80:latest` to spin up a docker container of the Nextcloud test server.
2. Log in on the test server and generate an app password for device. There are a couple test accounts, but `admin` as username and password works best.
3. Build the iOS project once. This will generate an `.env-vars` file in the root directory. It contains env vars that the project will use for testing.
4. Provide proper values for the env vars inside the file. Here is an example:
```
export TEST_SERVER_URL=http://localhost:8080
export TEST_USER=nextcloud
export TEST_PASSWORD=FAeSR-6Jk7s-DzLny-CCQHL-f49BP
```
5. Build the iOS project again. If all the values are set correctly you will see a generated file called `EnvVars.generated.swift`. It contains the env vars as Swift fields that can be easily used in code:
```
/**
This is generated from the .env-vars file in the root directory. If there is an environment variable here that is needed and not filled, please look into this file.
*/
public struct EnvVars {
static let testUser = "nextcloud"
static let testPassword = "FAeSR-6Jk7s-DzLny-CCQHL-f49BP"
static let testServerUrl = "http://localhost:8080"
}
```
6. You can now run the integration tests. They will use the env vars to connect to the test server to do the testing.
### UI tests
UI tests also use the docker server, but besides that there is nothing else you need to do.
### Snapshot tests
Snapshot tests are made via this library: https://github.com/pointfreeco/swift-snapshot-testing and these 2 extensions:
1. https://github.com/doordash-oss/swiftui-preview-snapshots - for creating SwiftUI snapshot tests via previews.
2. https://github.com/alexey1312/SnapshotTestingHEIC - makes snapshot images HEIC instead of PNGs for much reduced size.
Snapshot tests are a great way to test if UI elements are consistent with designs and don't break with new commits, but they can be very finicky and the smallest change can cause them to fail. Keep in mind:
- For SwiftUI snapshot tests, It's always a good idea to utilize previews, as they do not depend on device/app state and it has less chances to fail due to wrong state.
- For UIKit snapshot tests, try to include mock dependencies to always make sure the UI is rendered the same way. Even a text change can cause the tests to fail.