{"id":24324177,"url":"https://github.com/cyb3rko/android-licenses-library","last_synced_at":"2026-04-21T11:36:21.887Z","repository":{"id":145423044,"uuid":"288657575","full_name":"cyb3rko/android-licenses-library","owner":"cyb3rko","description":"Lightweight Android library which provides most common licenses in formatted and plain text","archived":false,"fork":false,"pushed_at":"2021-05-24T20:01:45.000Z","size":3945,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-25T23:25:56.391Z","etag":null,"topics":["android","attribution","html","kotlin","legal","library","licenses","licensing","lightweight"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyb3rko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-19T06:56:40.000Z","updated_at":"2025-07-06T04:28:48.000Z","dependencies_parsed_at":"2023-05-25T20:30:29.157Z","dependency_job_id":null,"html_url":"https://github.com/cyb3rko/android-licenses-library","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cyb3rko/android-licenses-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyb3rko%2Fandroid-licenses-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyb3rko%2Fandroid-licenses-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyb3rko%2Fandroid-licenses-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyb3rko%2Fandroid-licenses-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyb3rko","download_url":"https://codeload.github.com/cyb3rko/android-licenses-library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyb3rko%2Fandroid-licenses-library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32090390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["android","attribution","html","kotlin","legal","library","licenses","licensing","lightweight"],"created_at":"2025-01-17T19:32:58.107Z","updated_at":"2026-04-21T11:36:21.861Z","avatar_url":"https://github.com/cyb3rko.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Licenses Library\n[![API](https://img.shields.io/badge/API-1%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=1)\n[![HJitpack](https://jitpack.io/v/cyb3rko/android-licenses-library.svg)](https://jitpack.io/#cyb3rko/android-licenses-library)\n[![last commit](https://img.shields.io/github/last-commit/cyb3rko/android-licenses-library?color=F34C9F)](https://github.com/cyb3rko/android-licenses-library/commits/master)\n[![license](https://img.shields.io/github/license/cyb3rko/android-licenses-library)](https://www.gnu.org/licenses/gpl-3.0.html)\n\n- [About this project](#about-this-project)  \n- [Features](#feature)  \n- [How to use](#how-to-use)  \n- [Screenshots](#screenshots)  \n- [Contribute](#contribute)  \n- [Thanks](#thanks)  \n- [Apps using this library](#apps--libraries-using-this-library)  \n- [License](#license)  \n\n---\n\n## About this project\nThis lightweight Android library provides the most common licenses in formatted and plain text (as [Spanned object](https://developer.android.com/reference/android/text/Spanned)) for easy use.\n\nYOU CAN **DOWNLOAD** THE **SAMPLE APP** [HERE](https://github.com/cyb3rko/android-licenses-library/raw/master/.github//Sample%20App/AndroidLicensesSample%20v1.0.1.apk)\n\nI'm still a student so the progress might not be as fast as on other projects.\n\n## Feature\nproviding you the most common licenses in formatted and plain text form as Spanned objects\n\n## How to use\n\n### 1. Implementation\nAdd this to your **root** build.gradle file:\n```gradle\nallprojects {\n  repositories {\n    maven { url \"https://jitpack.io\" }\n  }\n}\n```\n\nThen add this to your **module's** build.gradle file:\n```gradle\ndependencies {\n  implementation 'com.github.cyb3rko:android-licenses-library:lastest-version'\n}\n```\n\n### 2. Initialize AndroidLicenses\n```kotlin\nAndroidLicenses.init(applicationContext)\n```\n\n### 3. Get Spanned Object\nThe method `get(licenseName)` needs the license name as a parameter and returns a Spanned object.  \nAs the parameter you should use the predefined constants of `AndroidLicenses` class (which also show, which licenses are currently available):\n- APACHE_2_0 / APACHE_2_0_PLAIN\n- CC_BY_3_0 / CC_BY_3_0_PLAIN\n- CC_BY_4_0 / CC_BY_4_0_PLAIN\n- CC_BY_SA_3_0 / CC_BY_SA_3_0_PLAIN\n- CC_BY_SA_4_0 / CC_BY_SA_4_0_PLAIN\n- CC_BY_NC_3_0 / CC_BY_NC_3_0_PLAIN\n- CC_BY_NC_SA_3_0 / CC_BY_NC_SA_3_0_PLAIN\n- MIT / MIT_PLAIN\n\n```kotlin\ntextView.setText(AndroidLicenses.get(AndroidLicenses.CC_BY_SA_4_0)\n```\n\n## Screenshots\nOnly the shown text belongs to the library, the ui is implemented in the sample app to showcase the Spanned objects.\n\n|\u003cimg src=\".github/images/v1.1.0/screenshot_1.webp\" width=\"270\"\u003e|\u003cimg src=\".github/images/v1.1.0/screenshot_2.webp\" width=\"270\"\u003e|\n|:---:|:---:|\n\n## Contribute\nOf course I'm happy about any kind of contribution.\n\nFeel free to open [issues](https://github.com/cyb3rko/android-licenses-library/issues) for new features or bug reports.\nIf you want to directly contribute code just open [pull requests](https://github.com/cyb3rko/android-licenses-library/pulls).\n\n## Thanks\nSpecial thanks to reddit user [jderp7](https://www.reddit.com/user/jderp7/) for [contributing completely reworked library code](https://www.reddit.com/r/androiddev/comments/ipprkr/kotlin_companion_object_caching/), which was commited by me in [THIS COMMIT](https://github.com/cyb3rko/android-licenses-library/commit/eb42bac7c5a17bf6e0ee5318ef8bfc3c1e5f290f).\n\n## Apps / Libraries using this library\n*If you want to add an app/library here, just open a [new issue](https://github.com/cyb3rko/android-licenses-library/issues/new) / [PR](https://github.com/cyb3rko/android-licenses-library/compare).*\n\n\u003cdetails\u003e\n  \u003csummary\u003e\u003cstrong\u003eClick here to see the list\u003c/strong\u003e\u003c/summary\u003e\n\u003cbr\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"https://github.com/cyb3rko/about-icons\"\u003eAbout Icons Library\u003c/a\u003e\u003c/td\u003e\n    \u003ctd\u003eby \u003ca href=\"https://github.com/cyb3rko\"\u003eCyb3rko\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\u003c/details\u003e\n\n## License\n\n```\nCopyright (C) 2020  Cyb3rKo\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it\nunder certain conditions.\n```\n`For details see` [License text](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyb3rko%2Fandroid-licenses-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyb3rko%2Fandroid-licenses-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyb3rko%2Fandroid-licenses-library/lists"}