{"id":19466668,"url":"https://github.com/mahmudahsan/licenses","last_synced_at":"2025-04-25T09:33:51.579Z","repository":{"id":56919752,"uuid":"113179428","full_name":"mahmudahsan/Licenses","owner":"mahmudahsan","description":"Quick way to showcase 3rd party libraries and their licenses those are used to develop app.","archived":false,"fork":false,"pushed_at":"2023-01-23T13:23:41.000Z","size":4994,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-31T16:12:47.186Z","etag":null,"topics":["ios-swift","ios-ui","license-management","licenses","swift","swift-library","swift4","xcode"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahmudahsan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-05T12:28:48.000Z","updated_at":"2023-10-04T15:37:57.000Z","dependencies_parsed_at":"2023-02-12T23:31:37.266Z","dependency_job_id":null,"html_url":"https://github.com/mahmudahsan/Licenses","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmudahsan%2FLicenses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmudahsan%2FLicenses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmudahsan%2FLicenses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmudahsan%2FLicenses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahmudahsan","download_url":"https://codeload.github.com/mahmudahsan/Licenses/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223996377,"owners_count":17238274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios-swift","ios-ui","license-management","licenses","swift","swift-library","swift4","xcode"],"created_at":"2024-11-10T18:29:37.237Z","updated_at":"2024-11-10T18:29:37.815Z","avatar_url":"https://github.com/mahmudahsan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Licenses\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://cocoapods.org/pods/Licenses\"\u003e\n        \u003cimg src=\"https://img.shields.io/cocoapods/p/AppsPortfolio.svg?style=flat\" alt=\"CocoaPods\" /\u003e\n    \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Swift-4.0-orange.svg\" alt=\"swift 4.0\" /\u003e\n    \u003ca href=\"https://cocoapods.org/pods/Licenses\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/pods-v2.0-orange.svg\" alt=\"CocoaPods\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://swift.org/package-manager\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/spm-compatible-brightgreen.svg?style=flat\" alt=\"Swift Package Manager\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://twitter.com/mahmudahsan\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/contact%40-mahmudahsan-green.svg\" alt=\"Twitter: @mahmudahsan\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\nQuick way to showcase 3rd party libraries and their licenses those are used to develop app.\nMost of the open source license's common terms is that \n\"The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\"\n\u003c/p\u003e\n\u003cp\u003e\nAs normally when we develop app, we use several open source libraries. So this property list based UI library will help to easily integrate to showcase them in part of the app.\n\u003c/p\u003e\n\u003cp\u003e\nThere are 2 ways to show credits by this library. If you selected .DESC style, then the license description provided by you will be shown. And .URL style, the url will be redirected when user click to see the license.\n\u003c/p\u003e\n \n \u003cp align=\"center\"\u003e\n    \u003cimg src=\"preview1.gif\" width=\"320\" alt=\"Licenses Preview\" /\u003e\n    \u003cimg src=\"preview2.gif\" width=\"320\" alt=\"Licenses Preview\" /\u003e\n\u003c/p\u003e\n\n## Features\n\n- [x] Showcase open source libraries name with licenses\n- [x] Property List (.plist) based data integration\n- [x] Delegate to integrate analytics\n- [x] Show license description or open url (2 ways)\n- [x] Works in iOS apps\n\n## Examples Show Description\n\nIntegrate within a UIViewController:\n\n```swift\nlet bundle = Bundle(for: LicensesViewController.self)\nlet storyboard = UIStoryboard(name: \"Licenses\", bundle: bundle)\n\nlet licenseVC = storyboard.instantiateInitialViewController() as! LicensesViewController\nlicenseVC.title = \"Licenses\"\nlicenseVC.loadLicenseList(name: \"licenses\", viewStyle: .DESC) // without .plist extension\n//licenseVC.analytics = self\nself.navigationController?.pushViewController(licenseVC, animated: true)\n```\n\n## Examples Open Url\n\nIntegrate within a UIViewController:\n\n```swift\nlet bundle = Bundle(for: LicensesViewController.self)\nlet storyboard = UIStoryboard(name: \"Licenses\", bundle: bundle)\n\nlet licenseVC = storyboard.instantiateInitialViewController() as! LicensesViewController\nlicenseVC.title = \"Licenses\"\nlicenseVC.loadLicenseList(name: \"licenses\", viewStyle: .URL) // without .plist extension\n//licenseVC.analytics = self\nself.navigationController?.pushViewController(licenseVC, animated: true)\n```\n\nlicenses.plist file structure:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003cdict\u003e\n\t\u003ckey\u003elibraries\u003c/key\u003e\n\t\u003carray\u003e\n\t\t\u003cdict\u003e\n\t\t\t\u003ckey\u003etitle\u003c/key\u003e\n\t\t\t\u003cstring\u003eAppirater\u003c/string\u003e\n\t\t\t\u003ckey\u003eurl\u003c/key\u003e\n\t\t\t\u003cstring\u003ehttps://github.com/arashpayan/appirater.git\u003c/string\u003e\n\t\t\t\u003ckey\u003elicense\u003c/key\u003e\n\t\t\t\u003cstring\u003eMIT License\u003c/string\u003e\n      \u003ckey\u003edesc\u003c/key\u003e\n\t\t\t\u003cstring\u003eCopyright 2017. [Arash Payan] arash. This library is distributed under the terms of the MIT/X11.\nWhile not required, I greatly encourage and appreciate any improvements that you make to this library be contributed back for the benefit of all who use Appirater.\u003c/string\u003e\n\t\t\u003c/dict\u003e\n\t\t\u003cdict\u003e\n\t\t\t\u003ckey\u003etitle\u003c/key\u003e\n\t\t\t\u003cstring\u003eAppsPortfolio\u003c/string\u003e\n\t\t\t\u003ckey\u003eurl\u003c/key\u003e\n\t\t\t\u003cstring\u003ehttps://github.com/mahmudahsan/AppsPortfolio\u003c/string\u003e\n\t\t\t\u003ckey\u003elicense\u003c/key\u003e\n\t\t\t\u003cstring\u003eMIT License\u003c/string\u003e\n      \u003ckey\u003edesc\u003c/key\u003e\n\t\t\t\u003cstring\u003e...\u003c/string\u003e\n\t\t\u003c/dict\u003e\n\t\t\u003c/dict\u003e\n\t\u003c/array\u003e\n\u003c/dict\u003e\n\u003c/plist\u003e\n\n```\n\n## Usage in an iOS application\n\nEither\n\n- Drag the folders Licenses/Sources folder into your application's Xcode project.\n\nor\n\n- Use Swift Package manager to include Licenses as a dependency in your project.\n\n```Ruby\npod 'Licenses', :git =\u003e 'https://github.com/mahmudahsan/Licenses'\n```\n\n- In your project create a new **licenses.plist** file and supply the libraries name, urls and licenses. Follow the licenses.plist file format provided in Licenses/Data.\n\n## Questions or feedback?\n\nFeel free to [open an issue](https://github.com/mahmudahsan/Licenses/issues/new), or find me [@mahmudahsan on Twitter](https://twitter.com/mahmudahsan).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmudahsan%2Flicenses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahmudahsan%2Flicenses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmudahsan%2Flicenses/lists"}