/Carthage-License

plugin for generating License page from Carthage dependencies in Swift

Primary LanguageShell

Carthage - Licenses

batch generate License citations from Carthage dependancies

Useful for grabbing License text from Carthage dependancies As Carthage updates library frameworks for your project, the License citation page should also update dynamically.

This is a plugin to render the most recent Licenses

1 - compileText.sh

include this as Run Script to generate a new license on each build OR Run after Carthage has built or updated

this will grab all License file inside the Carthage Checkout directory populate a PLIST

2 - License.plist

start with a file name License.plist in your project directory with a License key as array, then the Items will be generated by compileText.sh

License:Array 
	> Item 0: Dictionary 
			>> name:String = "SampleSwiftFramework"
			>> text:String = "The MIT License(MIT) ....."
	> Item 1: Dictionary 
			>> name:String = "SampleSwiftFramework2"
			>> text:String = "The MIT License(MIT) ....."
	> Item 2: Dictionary 
			>> 

3 - LicenseViewController

  • reads the License.plist once viewDidLoad,
  • loops through the array and concantenates a long string,
  • generates UIView that fills deviceScreen,
  • sets enableScroll to true for the daydreamers who mindlessly caress their screens ALL SET !

Thanks to @HirokiTerashima0816

Suggestions and comments welcome! Hope this helps you