Files
OpenSourceController/README.md
T
2017-03-05 15:26:08 +01:00

3.4 KiB

OpenSourceController

Cocoapods version Cocoapods licence Cocoapods plateform Prs welcome

Features • Installation • Usage • Translation • License

Display a screen with all licences used in your application can be painful to maintain. OpenSourceController was built to respond to this problem. OpenSourceController is a simple parser to display the licences which are used in your application.

OpenSourceController

Features

  • Display tableView with licences used in your app
  • Download licence from an URL

Todo (feel free to make PR)

Requirements

  • Xcode 8
  • iOS 9.0+ target deployment
  • Swift 3 project

Installation

OpenSourceController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "OpenSourceController"

Usage

  • Import the library :
import OpenSourceController
  • Display the controller :
// Create controller 
let openSourceVC = OpenSourceController()

// Init with LicenceFile object 
openSourceVC.licences = [LicenceFile(title: "FacebookImagePicker", 
url: "https://raw.githubusercontent.com/terflogag/FacebookImagePicker/master/LICENSE"),
LicenceFile(title: "JSQMessagesViewController", 
url: "https://raw.githubusercontent.com/jessesquires/JSQMessagesViewController/develop/LICENSE")]

// Present controller 
openSourceVC.presentOpenSourceController(from: self)

Translation

OpenSourceController is currently write in english. If you need translation for the permission popup (or whatever thing), just add this line in your localized file :

"Tiers library" = "<your_translation>";
"Unable to load this licence." = "<your_translation>";

Applications

Some applications already use this controller like :

What about yours ? If your application also use this library, feel free to contact me or make pull request on the README 😁

Author

Florian Gabach, contact@floriangabach.fr

License

OpenSourceController is available under the MIT license.