GithubHelp home page GithubHelp logo

ios-library's Introduction

ownCloud iOS Library v 2.0.0

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 6. 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) 2016 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 8 and iOS 9 and works in Xcode 7.

ownCloud iOS library supports ownCloud server from version 4.5.

ios-library's People

Contributors

javiergonzper avatar nasli avatar ggdiez avatar rebecamartin avatar kant avatar deepdiver1975 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.