All Projects → carloe → Licensegenerator Ios

carloe / Licensegenerator Ios

Licence: other
Build script that recursively searches for LICENSE files and generates a Settings.bundle friendly plist.

Programming Languages

python
139335 projects - #7 most used programming language
swift
15916 projects

Projects that are alternatives of or similar to Licensegenerator Ios

Infokit
Strongly Typed access to the Info.plist for iOS, macOS and tvOS.
Stars: ✭ 276 (+48.39%)
Mutual labels:  plist, tvos
SwiftVer
Easily Manage Versioning in MacOS, iOS, watchOS, and tvOS projects.
Stars: ✭ 23 (-87.63%)
Mutual labels:  tvos, plist
L10n Swift
Localization of the application with ability to change language "on the fly" and support for plural form in any language.
Stars: ✭ 177 (-4.84%)
Mutual labels:  plist, tvos
Fontblaster
Programmatically load custom fonts into your iOS and tvOS app.
Stars: ✭ 1,000 (+437.63%)
Mutual labels:  plist, tvos
Cocoalumberjack
A fast & simple, yet powerful & flexible logging framework for Mac and iOS
Stars: ✭ 12,584 (+6665.59%)
Mutual labels:  tvos
Sbt Header
sbt-header is an sbt plugin for creating file headers, e.g. copyright headers
Stars: ✭ 166 (-10.75%)
Mutual labels:  license
Licenses
OpenSource License Explains
Stars: ✭ 165 (-11.29%)
Mutual labels:  license
Sgplayer
A powerful media play framework for iOS, macOS, and tvOS.
Stars: ✭ 1,974 (+961.29%)
Mutual labels:  tvos
Openssl For Iphone
A script for compiling OpenSSL for iOS Devices (iPhone, iPad, iPod Touch, AppleTV, MacCatalyst)
Stars: ✭ 2,190 (+1077.42%)
Mutual labels:  tvos
Anydate
Swifty Date & Time API inspired from Java 8 DateTime API.
Stars: ✭ 178 (-4.3%)
Mutual labels:  tvos
Xamarin Macios
Bridges the worlds of .NET with the native APIs of macOS, iOS, tvOS, and watchOS.
Stars: ✭ 2,109 (+1033.87%)
Mutual labels:  tvos
Carte
🍴 Open source license notice view generator for Swift
Stars: ✭ 167 (-10.22%)
Mutual labels:  license
Apple Runtime Headers
Objective-C runtime headers for Apple's iOS, macOS, tvOS and watchOS frameworks
Stars: ✭ 174 (-6.45%)
Mutual labels:  tvos
Thememanager
ThemeManager is a lightweight library for application to switching themes. support more attributes and theme extensions. more easy and convenient to use.
Stars: ✭ 165 (-11.29%)
Mutual labels:  plist
Copyright Header
© Copyright Header is a utility to manipulate software licenses on source code.
Stars: ✭ 168 (-9.68%)
Mutual labels:  license
Oc Tool
POSIX shell script that builds an OpenCore EFI folder from an OpenCore config.plist
Stars: ✭ 164 (-11.83%)
Mutual labels:  plist
Universaljavaapplicationstub
universalJavaApplicationStub - an alternative Application launcher script for Java based macOS Apps that works with both Apple's and Oracle's PList format and supports the old Apple Java 6 as well as all the latest Oracle/OpenJDK/Adopt/Corretto JRE's/JDK's. Plus it supports drag&drop to the Dock icon 🎉
Stars: ✭ 174 (-6.45%)
Mutual labels:  plist
Bugsnag Cocoa
Bugsnag crash reporting for iOS, macOS and tvOS apps
Stars: ✭ 167 (-10.22%)
Mutual labels:  tvos
Npm License Crawler
Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
Stars: ✭ 168 (-9.68%)
Mutual labels:  license
Svprogresshud
A clean and lightweight progress HUD for your iOS and tvOS app.
Stars: ✭ 12,339 (+6533.87%)
Mutual labels:  tvos

LicenseGenerator iOS

Build Version Swift Maintainability

Recursively finds all LICENSE.* files in a directory and generates a plist that can be displayed in Settings.bundle or the provided view controller.

Screenshot

The script can help ensure that the license section of your app is always up to date. Since it searches recursively the script works well with cocoapods projects.

Inspired by JosephH and Sean's comments on stackoverflow.

Build Script

The build script recursively searches the project for LICENSE files and generates a plist that can be used in a Settings.bundle. The script assumes that the parent directory of the LICENSE file is also the name of the library to be credited.

Usage

  • Copy credits.py to the your project root
  • Open your project, select your Target and select Build Phases
  • Add a new Run Script Phase after target dependencies
  • Add something like: ./credits.py -s "$SRCROOT" -o "$SRCROOT/Project/Settings.bundle/Credits.plist"
  • Build & profit

Excluding Directories

You can optionally tell the generator to ignore certain paths. To do so use the -e option and pass it a comma separated list of path fragments.

View Controller

If your app doesn't use a Settings.bundle you can use the provided view controller to show the licenses.

Installation

Add LicensesViewController to your Podfile:

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

pod 'LicensesViewController', '~> 0.9.0'

Then tell Pod to install it:

$ pod install

Grab credits.py from this repo and add it to your project.

Usage

Add the build script as described above and make sure the resulting plist is included in the app target.

import LicensesViewController

// ...

let licensesController = LicensesViewController()
licensesController.loadPlist(Bundle.main, resourceName: "Credits")

// ...

Example Project

git clone https://github.com/carloe/LicenseGenerator-iOS.git
cd LicenseGenerator-iOS/Example
pod install
open LicensesViewControllerExample.xcworkspace

Requirements

  • iOS 8.0
  • tvOS 9.0
  • Swift 4.2, 5.0, 5.1, 5.2

If you are targeting Swift 4.0 use '~> 0.6.6' in your Podfile.

Contact

Twitter: @carloeugster Email: [email protected]

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].