Skip to content

Custom types shared by several readium-2 Swift modules

License

Notifications You must be signed in to change notification settings

ThePalaceProject/ios-r2-shared

 
 

Repository files navigation

BSD-3 Carthage compatible

r2-shared-swift

Contains the definitions of the custom types (model) used across the readium-2 Swift projects.

Changes and releases are documented in the Changelog

Adding the library to your iOS project

Note: requires Swift 4.2 (and Xcode 10.1).

Carthage

Carthage is a simple, decentralized dependency manager for Cocoa. To install R2Shared with Carthage:

  1. Make sure Carthage is installed.

  2. Update your Cartfile to include the following:

    github "readium/r2-shared-swift" ~> 1.2.7
  3. Run carthage update and add the appropriate framework.

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. To install R2Shared with CocoaPods:

  1. Make sure CocoaPods is installed. (R2Shared requires version 1.0.0 or greater.)

    # Using the default Ruby install will require you to use sudo when
    # installing and updating gems.
    [sudo] gem install cocoapods
  2. Update your Podfile to include the following:

    use_frameworks!
    
    target 'YourAppTargetName' do
        pod 'R2Shared', :git => 'https://github.com/readium/r2-shared-swift.git', '~> 1.2.7'
    end
  3. Run pod install --repo-update.

Import

In your Swift files :

// Swift source file

import R2Shared

About

Custom types shared by several readium-2 Swift modules

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Swift 99.6%
  • Other 0.4%