{"id":17877723,"url":"https://github.com/yshrsmz/licenseadapter","last_synced_at":"2025-04-06T06:11:26.504Z","repository":{"id":57737955,"uuid":"56307386","full_name":"yshrsmz/LicenseAdapter","owner":"yshrsmz","description":"adapter for RecyclerView to display app's oss dependencies' license","archived":false,"fork":false,"pushed_at":"2021-02-22T06:35:20.000Z","size":76337,"stargazers_count":215,"open_issues_count":2,"forks_count":17,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-30T05:06:56.552Z","etag":null,"topics":["android","android-library","recyclerview"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/yshrsmz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"yshrsmz","patreon":null,"open_collective":null,"ko_fi":"yshrsmz","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-04-15T09:15:20.000Z","updated_at":"2024-11-21T06:02:32.000Z","dependencies_parsed_at":"2022-08-24T14:42:27.217Z","dependency_job_id":null,"html_url":"https://github.com/yshrsmz/LicenseAdapter","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yshrsmz%2FLicenseAdapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yshrsmz%2FLicenseAdapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yshrsmz%2FLicenseAdapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yshrsmz%2FLicenseAdapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yshrsmz","download_url":"https://codeload.github.com/yshrsmz/LicenseAdapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441053,"owners_count":20939239,"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":["android","android-library","recyclerview"],"created_at":"2024-10-28T11:55:16.200Z","updated_at":"2025-04-06T06:11:26.487Z","avatar_url":"https://github.com/yshrsmz.png","language":"Java","funding_links":["https://github.com/sponsors/yshrsmz","https://ko-fi.com/yshrsmz"],"categories":[],"sub_categories":[],"readme":"# LicenseAdapter\n\n[![Build Status](https://travis-ci.org/yshrsmz/LicenseAdapter.svg?branch=master)](https://travis-ci.org/yshrsmz/LicenseAdapter)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-LicenseAdapter-green.svg?style=true)](https://android-arsenal.com/details/1/3516)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.yslibrary.licenseadapter/licenseadapter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.yslibrary.licenseadapter/licenseadapter)\n\nLicenseAdapter is an easy-to-use library that provides a RecyclerView\nadapter to display OSS dependencies and their associated licenses.\n\n\u003cimg src=\"assets/demo.gif\" width=\"50%\" height=\"50%\" /\u003e\n\n\u003cimg src=\"assets/list.png\" width=\"50%\" height=\"50%\" /\u003e\u003cimg src=\"assets/expanded.png\" width=\"50%\" height=\"50%\" /\u003e\n\n## Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Predefined license names](#predefined-license-names)\n  - [Predefined license file names](#predefined-license-file-names)\n- [Apps using LicenseAdapter](#apps-using-licenseadapter)\n- [License](#license)\n\n## Installation\n\nLicenseAdapter is distributed via MavenCentral:\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.yslibrary.licenseadapter/licenseadapter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.yslibrary.licenseadapter/licenseadapter)\n\n```gradle\ndependencies {\n  implementation 'net.yslibrary.licenseadapter:licenseadapter:LATEST_LIBRARY_VERSION'\n}\n```\n\n## Usage\n\n```java\n// Create list of libraries\nList\u003cLibrary\u003e libraries = new ArrayList\u003c\u003e();\n\n// Add libraries that are hosted on GitHub with an Apache v2 license.\nlibraries.add(Licenses.fromGitHubApacheV2(\"realm/realm-java\"));\nlibraries.add(Licenses.fromGitHubApacheV2(\"square/retrofit\"));\n\n// BSD license\nlibraries.add(Licenses.fromGitHubBSD(\"bumptech/glide\"));\n\n// MIT license\nlibraries.add(Licenses.fromGitHubMIT(\"jhy/jsoup\"));\n\n// Library that is hosted on GitHub, but does not provide license text.\nlibraries.add(Licenses.fromGitHub(\"gabrielemariotti/changeloglib\", Licenses.LICENSE_APACHE_V2));\n\n// Library that is not hosted on GitHub.\nlibraries.add(Licenses.noContent(\"Android SDK\", \"Google Inc.\", \"https://developer.android.com/sdk/terms.html\"));\n\n// Library that does not have their license online\nlibraries.add(Licenses.noLink(\"Google Play Services\", \"Google Inc.\", GoogleApiAvailability.getInstance().getOpenSourceSoftwareLicenseInfo(this)));\n\n// These 2 licenses are on a branch name other than master\nlibraries.add(Licenses.fromGitHubApacheV2(\"ReactiveX/RxAndroid\", \"2.x/\" + Licenses.FILE_AUTO));\nlibraries.add(Licenses.fromGitHubApacheV2(\"ReactiveX/RxJava\", \"2.x/\" + Licenses.FILE_AUTO));\n\n// Create and display the adapter\nRecyclerView rv = findViewById(R.id.list);\nrv.setLayoutManager(new LinearLayoutManager(this));\nrv.setAdapter(new LicenseAdapter(libraries)); // It's that simple!\n```\n\nDon't forget to add the `android.permission.INTERNET` permission to your\nmanifest.\n\n### Predefined license names\n\nLicense name | Field\n--- | ---\nApache License 2.0 | `Licenses#NAME_APACHE_V2`\nMIT License | `Licenses#NAME_MIT`\nBSD License | `Licenses#NAME_BSD`\n\n### Predefined license file names\n\nLicense file name | Field\n--- | ---\nAutomatically find the license file from the predefined set below | `Licenses#FILE_AUTO`\n`LICENSE` | `Licenses#FILE_NO_EXTENSION`\n`LICENSE.txt` | `Licenses#FILE_TXT`\n`LICENSE.md` | `Licenses#FILE_MD`\n\n## Apps using LicenseAdapter\n\nSend PR if you want your app to be included here ;)\n\n- [Omnitweety](https://play.google.com/store/apps/details?id=net.yslibrary.omnitweety)\n- [KyudoScoreBookTeam](https://play.google.com/store/apps/details?id=com.bowyer.app.android.kyudoscoreteam)\n- [KyudoScoreBook](https://play.google.com/store/apps/details?id=com.bowyer.KyudoScoreBookSecond)\n- [Ameba](https://play.google.com/store/apps/details?id=jp.ameba)\n- [Monotweety](https://play.google.com/store/apps/details?id=net.yslibrary.monotweety)\n- [🤖 Robot Scouter](https://play.google.com/store/apps/details?id=com.supercilex.robotscouter)\n\n## License\n\n    Copyright 2016-2017 Shimizu Yasuhiro (yshrsmz)\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyshrsmz%2Flicenseadapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyshrsmz%2Flicenseadapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyshrsmz%2Flicenseadapter/lists"}