Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiplatform support #14

Merged
merged 13 commits into from Mar 30, 2017
Merged

Add multiplatform support #14

merged 13 commits into from Mar 30, 2017

Conversation

initFabian
Copy link
Collaborator

Changelog

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.1.0+ is required to build Cely 2.0.0+.

To integrate Cely into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'Cely', '~> 2.0.0'

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Cely into your Xcode project using Carthage, specify it in your Cartfile:

github "Cely/Cely" ~> 2.0.0

Manually

If you prefer not to use either of the aforementioned dependency managers, you can integrate Cely into your project manually.

Git Submodules

  • Open up Terminal, cd into your top-level project directory, and run the following command "if" your project is not initialized as a git repository:
$ git init
  • Add Cely as a git submodule by running the following command:
$ git submodule add https://github.com/ChaiOne/Cely.git
$ git submodule update --init --recursive
  • Open the new Cely folder, and drag the Cely.xcodeproj into the Project Navigator of your application's Xcode project.

    It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.

  • Select the Cely.xcodeproj in the Project Navigator and verify the deployment target matches that of your application target.

  • Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the "Targets" heading in the sidebar.

  • In the tab bar at the top of that window, open the "General" panel.

  • Click on the + button under the "Embedded Binaries" section.

  • You will see two different Cely.xcodeproj folders each with two different versions of the Cely.framework nested inside a Products folder.

    It does not matter which Products folder you choose from.

  • Select the Cely.framework.

  • And that's it!

The Cely.framework is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.

Embeded Binaries

  • Download the latest release from https://github.com/ChaiOne/Cely/releases
  • Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the "Targets" heading in the sidebar.
  • In the tab bar at the top of that window, open the "General" panel.
  • Click on the + button under the "Embedded Binaries" section.
  • Add the downloaded Cely.framework.
  • And that's it!

@codecov-io
Copy link

codecov-io commented Mar 30, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@dce75f9). Click here to learn what that means.
The diff coverage is 94.52%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #14   +/-   ##
=========================================
  Coverage          ?   93.04%           
=========================================
  Files             ?       25           
  Lines             ?     1394           
  Branches          ?        0           
=========================================
  Hits              ?     1297           
  Misses            ?       97           
  Partials          ?        0
Impacted Files Coverage Δ
Sources/LocksmithError.swift 100% <ø> (ø)
Sources/Cely.swift 96.96% <ø> (ø)
Cely Demo/AppDelegate.swift 58.33% <ø> (ø)
Tests/CelyTests.swift 97.8% <ø> (ø)
Cely Demo/LoginStyles.swift 53.33% <ø> (ø)
Tests/LocksmithAccessibleOptionTests.swift 100% <ø> (ø)
Sources/CelyLoginViewController.swift 97.05% <ø> (ø)
Tests/ConstantsAndProtocolTests.swift 100% <ø> (ø)
Sources/Locksmith.swift 96.27% <ø> (ø)
Sources/LocksmithSecurityClass.swift 100% <ø> (ø)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dce75f9...1b884bd. Read the comment docs.

@initFabian initFabian merged commit 482bcda into master Mar 30, 2017
@initFabian initFabian deleted the add-multiplatform-support branch March 30, 2017 14:32
@initFabian
Copy link
Collaborator Author

#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants