# [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)
<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">
[<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)
Check out https://nextcloud.com and follow us on [twitter.com/nextclouders](https://twitter.com/nextclouders)
## How to contribute
If you want to [contribute](https://nextcloud.com/contribute/) to Nextcloud, you are very welcome:
- our forum at https://help.nextcloud.com/c/clients/ios
- for translations of the app on [Transifex](https://www.transifex.com/nextcloud/nextcloud/dashboard/)
- opening issues and PRs (including a corresponding issue)
## Contribution Guidelines & License
[GPLv3](LICENSE.txt) with [Apple app store exception](COPYING.iOS).
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/)
## Start contributing
You can start by forking this repository and creating pull requests on the develop
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.
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.
## Support
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!
## TestFlight
Do you want to try the latest version in development of Nextcloud iOS ? Simple, follow this simple step
[Apple TestFlight](https://testflight.apple.com/join/RXEJbWj9)
## 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.
没有合适的资源?快使用搜索试试~ 我知道了~
Nextcloud iOS 应用程序源代码开发
共1214个文件
strings:257个
swift:251个
json:220个
0 下载量 85 浏览量
2024-03-28
14:44:33
上传
评论
收藏 16.86MB ZIP 举报
温馨提示
Nextcloud是一个可靠、安全的协作平台,将文件共享、视频聊天、电子邮件、任务管理和实时文档协作整合到一个集成界面下。 在不牺牲隐私的情况下享受效率和舒适性。Nextcloud 将您的数据保存在您的控制区域内,并为您提供防止合规性问题和安全风险所需的一切。 建立通往真正数字主权的道路。现在是时候拥有您创建、存储和共享的每一点数据了,而无需第三方访问您的 IT。 Nextcloud 提供了一个现代、易于使用的内容协作平台,可通过移动、桌面和 Web 界面访问。团队可以实时协作处理文档、聊天和参与视频通话、访问电子邮件或在日历中计划会议。作为一家纯粹的软件供应商,Nextcloud不会强迫客户在其数据中心托管,而是与各种领先的合作伙伴合作,提供SaaS或本地解决方案。
资源推荐
资源详情
资源评论
收起资源包目录
Nextcloud iOS 应用程序源代码开发 (1214个子文件)
AUTHORS 135B
Cartfile 175B
config 1KB
iOSClient.entitlements 525B
Widget.entitlements 438B
File_Provider_Extension.entitlements 423B
Share.entitlements 423B
File_Provider_Extension_UI.entitlements 423B
WidgetDashboardIntentHandler.entitlements 423B
Notification_Service_Extension.entitlements 423B
Gemfile 59B
Animation.gif 3.61MB
loading.gif 8KB
.gitattributes 87B
.gitignore 924B
NCEndToEndEncryption.h 4KB
NYMnemonic.h 3KB
UIImage+animatedGIF.h 3KB
CCUtility.h 2KB
NCPushNotification.h 2KB
NCBridgeSwift.h 1KB
NCPushNotificationEncryption.h 1KB
NCSettings.h 1KB
CCAdvanced.h 1KB
Acknowledgements.h 1013B
CCManageAutoUpload.h 954B
CCManageAccount.h 948B
FileProviderExtensionUI-Bridging-Header.h 912B
FileProviderExtension-Bridging-Header.h 912B
Notification_Service_Extension-Bridging-Header.h 879B
Nextcloud-Bridging-Header.h 314B
Share-Bridging-Header.h 191B
Widget-Brinding-header.h 158B
WidgetDashboardIntentHandler-Brinding-header.h 126B
test_CapalitiesView.DefaultPreviewConfiguration.heic 31KB
test_HUDView.DefaultPreviewConfiguration.heic 18KB
Intent.intentdefinition 10KB
COPYING.iOS 869B
Contents.json 3KB
Contents.json 695B
Contents.json 505B
Contents.json 502B
Contents.json 493B
Contents.json 492B
Contents.json 484B
Contents.json 484B
Contents.json 483B
Contents.json 481B
Contents.json 478B
Contents.json 478B
Contents.json 475B
Contents.json 475B
Contents.json 473B
Contents.json 472B
Contents.json 472B
Contents.json 472B
Contents.json 469B
Contents.json 469B
Contents.json 469B
Contents.json 468B
Contents.json 468B
Contents.json 466B
Contents.json 463B
Contents.json 463B
Contents.json 463B
Contents.json 463B
Contents.json 463B
Contents.json 460B
Contents.json 460B
Contents.json 460B
Contents.json 457B
Contents.json 457B
Contents.json 454B
Contents.json 454B
Contents.json 454B
Contents.json 454B
Contents.json 451B
Contents.json 451B
Contents.json 448B
Contents.json 448B
Contents.json 448B
Contents.json 445B
Contents.json 445B
Contents.json 442B
Contents.json 437B
Contents.json 423B
Contents.json 381B
Contents.json 379B
Contents.json 378B
Contents.json 376B
Contents.json 286B
Contents.json 281B
Contents.json 280B
Contents.json 280B
Contents.json 277B
Contents.json 277B
Contents.json 276B
Contents.json 276B
Contents.json 276B
Contents.json 275B
共 1214 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
资源评论
技术探秘者
- 粉丝: 1121
- 资源: 48
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功