GithubHelp home page GithubHelp logo

prabhums / cloudminesdk-ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudmine/cloudminesdk-ios

0.0 1.0 0.0 10.42 MB

CloudMine iOS SDK

Home Page: https://cloudmine.io/docs/#/ios

License: MIT License

Ruby 0.37% Makefile 0.36% Shell 0.33% Perl 24.97% Objective-C 73.97%

cloudminesdk-ios's Introduction

CloudMine iOS SDK

This is the native iOS SDK for communicating with CloudMine and the Connected Health Cloud.

Interested in Apple ResearchKit? Check out the CMHealth iOS SDK and the CloudMine AsthmaHealth Demo app.

Installation

pod 'CloudMine', '~> 1.7'

Add that line to your Podfile.

The CloudMine library uses CocoaPods to manage it's dependencies and packaging. This has many benefits for the end user, such as:

  • Pod users can see the CloudMine source code, so you know where things are breaking. This makes it easier for you to debug, and easier for you to help us.
  • Pod users have the ability to modify the source code if you need to, which allows for you to tweak the code as necessary, and easy to submit a patch once you fixed a bug.
  • CocoaPods' share dependencies between Libraries. If two libraries are using AFNetworking, it gets downloaded once and is used for both, there are no collisions.
  • Installing pods is as easy as pod 'CloudMine', with a great website to help support them.
  • Pushing and installing updates is super fast and easy. CloudMine simply update the main repo with our new version (which points to the CloudMine Repo), and then you simply run "pod update" and you get the new update.

The CloudMine iOS SDK uses ARC and is compatible with Xcode 4.5 or higher and iOS 8 or higher.

Building the Library

If you are interested in doing some development on the library:

Tested with CocoaPods 1.0.1

  1. Install Cococapods: sudo gem install cocoapods
  2. Download the repository to your local machine: git clone git://github.com/cloudmine/cloudmine-ios.git;cd cloudmine-ios
  3. Get the dependenices: pod install.
  4. At this point, the framework can be modified and edited. To do so, open the cm-ios.xcworkspace file in Xcode.
  5. If you want to use your local version of the library in your application, you can use: pod 'CloudMine', :path => '~/path/to/iOS-SDK/' in your Podfile to checkout the local version.

Testing

If you have added any functionality to the library, ensure that it is well tested. To run the tests, use the libcloudmine scheme. To run the tests, select the libcloudmine scheme and do Product -> Test (โŒ˜U). All the unit tests are written using Kiwi, a nice BDD-style unit testing framework.

Code Coverage

With over 425 tests (unit and integration), the library has excellent code coverage, with 92.4% line coverage and 99.5% function coverage. The library uses XcodeCoverage to generate the code coverage docs. However, to make this all easier there is a Makefile to do the magic for you.

Since the Makefile runs on the command line, we use the gem xcpretty to make the output more readable. Before using the Makefile, you must install this gem (or remove the command from the Makefile).

To install: gem install xcpretty

The Makefile lets you build, clean, test, and generate code coverage:

build: Cleans and builds the library
clean: Cleans the library
cov: Cleans, builds, tests, and generates the code coverage HTML document.
test: Cleans, builds, and then tests the library.

So to get code coverage, run make cov

Before any pull requests are accepted, your code must be covered and all tests must pass.

Documentation

CloudMine has documentation here. The library also has documentation in the header files.

Contributing

Contributions to the SDK are always welcome. However, please be sure you have well-written tests that cover all your cases. Once all that is done, submit a pull request clearly explaining your additions and providing links to the external test cases if applicable. If you have any questions, please contact the maintainer directly at [email protected].

For more details, see the CONTRIBUTING guidelines.

Thanks in advance for all your hard work and awesome code! :)

cloudminesdk-ios's People

Contributors

marcweil avatar ethanmick avatar apbendi avatar geoffrey-young avatar nikkoschaff avatar keck avatar readmecritic avatar prabhums avatar

Watchers

 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.