• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

owncloud/ios-library

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

owncloud/ios-library

开源软件地址(OpenSource Url):

https://github.com/owncloud/ios-library

开源编程语言(OpenSource Language):

Objective-C 99.5%

开源软件介绍(OpenSource Introduction):

ownCloud iOS Library v 2.2.1

Introduction

Using ownCloud iOS library it will be the easiest way to communicate with ownCloud servers. Add this library in your project and integrate your application with ownCloud seamlessly.

Install Library

2.1. Information how to get the library

Get this code and compile with Xcode 8. In the repository it is not only the library project “ownCloud iOS library” but also the example project “OCLibraryExample”. Thanks to the “OCLibraryExample” you will learn how to use the library.

2.2. Add library to your project

There are two ways of adding this library to your code:

Method 1. Reference the headers and the library binary file (.a) directly.

Method 2. Include the library project as a Subproject.

Choosing one method or the other one just depends on your own preferences as well as whether you have the source code and the project file of the static library at your disposal.

Method 1: Header and library binary files

Step 1. Compile the "ownCloud iOS library" and run the project, the libownCloudiOS.a will be generated.

You need these files:

Library File

  • libownCloudiOS.a (Library)

Library Classes

  • OCComunication.h (Accesors) Import in the communication classes
  • OCErrorMsg.h (Error messages) Import in the communication classes
  • OCFileDto.h (File/Folder object) Import when you use readFolder and readFile methods
  • OCFileDto.m
  • OCFrameworkConstants.h (Customize constants)
  • OCSharedDto.h
  • OCSharedDto.m
  • OCShareUser.h
  • OCShareUser.m

Step 2. Add the library file in your project. Link the library file in your project target. "build phases" -> "Link binary with libraries" and tap in "+" and select the library file.

Step 3. Add the path of the library headers. In your project target "build settings" in the option "Header Search Paths" add the path.

Step 4. In your project target "build settings" add the flag "-Obj-C" to the "Other Linker Flag" option

Method 2: Subprojects

Step 1. Add the file "ownCloud iOS library.xcodeproj" to your project using drag and drop.

Step 2. In your project target go to "build phases" -> "Target Dependencies" and tap in "+" and select the library target.

Step 3. Now link the library file in your project target. "build phases" -> "Link binary with libraries" and tap in "+" and select the library file.

Step 4. In your project target "build settings" add the flag "-Obj-C" to the "Other Linker Flag" option

Step 5. And finally, add the path of the library headers. In your project target "build settings" in the option "Header Search Paths" add the path.

Source:

RayWenderlich.com http://www.raywenderlich.com/41377/creating-a-static-library-in-ios-tutorial

Apple.com https://developer.apple.com/library/ios/technotes/iOSStaticLibraries/Articles/configuration.html#/apple_ref/doc/uid/TP40012554-CH3-SW2

Branching strategy

The repository holds two main branches with an infinite lifetime:

  • stable
  • master

Branch origin/stable is considered the main branch where the source code of HEAD always reflects a production-ready state.

Branch origin/master is considered the main branch where the source code of HEAD always reflects a state with the latest delivered development changes for the next release.

When the source code in the master branch reaches a stable point and is ready to be released, all of the changes should be merged back into stable somehow and then tagged with a release number.

Other branches, some supporting branches are used to aid parallel development between team members, ease tracking of features, prepare for production releases and to assist in quickly fixing live production problems. Unlike the main branches, these branches always have a limited life time, since they will be removed eventually.

The different types of branches we may use are:

  • Branch perNewFeature
  • Branch releaseBranches

Both of them branch off from master and must merge back into stable branch through a Pull Request in Github. Once the PR is approved and merged, the US branch may be deleted

Source: http://nvie.com/posts/a-successful-git-branching-model

License

ownCloud iOS library is available under the MIT License.

Copyright (c) 2017 ownCloud (http://www.owncloud.org/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Third party libraries

ownCloud iOS library uses AFNetworking version 3.1.0 AFNetworking is available under the MIT license.

ownCloud iOS library uses some classes based in https://github.com/zwaldowski/DZWebDAVClient. Copyright (c) 2012 Zachary Waldowski, Troy Brant, Marcus Rohrmoser, and Sam Soffes under the MIT license.

Compatibility

ownCloud iOS library supports iOS 9, iOS10, iOS11 and works in Xcode 8 and Xcode 9.

ownCloud iOS library supports ownCloud server from version 4.5.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
phusion/passenger_library: Phusion Passenger documentation发布时间:2022-08-15
下一篇:
ycdxsb/LibraryManageDesktopApp: A library manage for windows发布时间:2022-08-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap