{"id":37016661,"url":"https://github.com/fondesa/kpermissions","last_synced_at":"2026-01-14T01:53:50.428Z","repository":{"id":28150269,"uuid":"116413221","full_name":"fondesa/kpermissions","owner":"fondesa","description":"A Kotlin library which helps to request runtime permissions in Android.","archived":false,"fork":false,"pushed_at":"2025-12-11T05:49:16.000Z","size":1084,"stargazers_count":526,"open_issues_count":13,"forks_count":32,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-12T00:42:29.120Z","etag":null,"topics":["android","android-library","android-permissions","androidx","coroutines","flow","kotlin","livedata","permissions","runtime-permissions","rxjava","rxjava2","rxjava3"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/fondesa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":"https://www.paypal.me/fondesa"}},"created_at":"2018-01-05T18:07:15.000Z","updated_at":"2025-11-17T13:55:41.000Z","dependencies_parsed_at":"2023-10-12T00:21:09.755Z","dependency_job_id":"8cdf4f93-f92b-4346-897e-59287a2b9565","html_url":"https://github.com/fondesa/kpermissions","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/fondesa/kpermissions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fondesa%2Fkpermissions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fondesa%2Fkpermissions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fondesa%2Fkpermissions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fondesa%2Fkpermissions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fondesa","download_url":"https://codeload.github.com/fondesa/kpermissions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fondesa%2Fkpermissions/sbom","scorecard":{"id":51406,"data":{"date":"2022-08-15","repo":{"name":"github.com/fondesa/kpermissions","commit":"d1be1e5c60d94fa472cba8ba25cacde59db67c9f"},"scorecard":{"version":"v4.5.0-17-g7772984","commit":"777298477c07c262a4ec7e95ceee839b7b3b75ae"},"score":4.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) out of 30 and 1 issue activity out of 30 found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#maintained"}},{"name":"Code-Review","score":10,"reason":"all last 30 commits are reviewed through GitHub","details":null,"documentation":{"short":"Determines if the project requires code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no badge detected","details":null,"documentation":{"short":"Determines if the project has a CII Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"no vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#vulnerabilities"}},{"name":"Token-Permissions","score":0,"reason":"non read-only tokens detected in GitHub workflows","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/build.yml/master?enable=permissions","Warn: no topLevel permission defined: .github/workflows/deploy.yml:1: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=permissions"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#dangerous-workflow"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: : LICENSE:1"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#license"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/DomiDre/gauss-quad/deploy.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/build.yml:34","Warn: downloadThenRun not pinned by hash: .github/workflows/deploy.yml:40","Info: Third-party GitHubActions are pinned","Info: Dockerfile dependencies are pinned"],"documentation":{"short":"Determines if the project has declared and pinned its dependencies.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#pinned-dependencies"}},{"name":"Dependency-Update-Tool","score":0,"reason":"no update tool detected","details":["Warn: dependabot config file not detected in source location.\n\t\t\tWe recommend setting this configuration in code so it can be easily verified by others.","Warn: renovatebot config file not detected in source location.\n\t\t\tWe recommend setting this configuration in code so it can be easily verified by others."],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#dependency-update-tool"}},{"name":"Signed-Releases","score":0,"reason":"0 out of 5 artifacts are signed or have provenance","details":["Warn: release artifact 3.3.0 does not have provenance: https://api.github.com/repos/fondesa/kpermissions/releases/55592727","Warn: release artifact 3.3.0 not signed: https://api.github.com/repos/fondesa/kpermissions/releases/55592727","Warn: release artifact 3.2.1 does not have provenance: https://api.github.com/repos/fondesa/kpermissions/releases/40035489","Warn: release artifact 3.2.1 not signed: https://api.github.com/repos/fondesa/kpermissions/releases/40035489","Warn: release artifact 3.2.0 does not have provenance: https://api.github.com/repos/fondesa/kpermissions/releases/39207966","Warn: release artifact 3.2.0 not signed: https://api.github.com/repos/fondesa/kpermissions/releases/39207966","Warn: release artifact 3.1.3 does not have provenance: https://api.github.com/repos/fondesa/kpermissions/releases/34027782","Warn: release artifact 3.1.3 not signed: https://api.github.com/repos/fondesa/kpermissions/releases/34027782","Warn: release artifact 3.1.2 does not have provenance: https://api.github.com/repos/fondesa/kpermissions/releases/24966214","Warn: release artifact 3.1.2 not signed: https://api.github.com/repos/fondesa/kpermissions/releases/24966214"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'force pushes' disabled on branch 'master'","Info: 'allow deletion' disabled on branch 'master'","Info: status check found to merge onto on branch 'master'","Warn: number of required reviewers is only 0 on branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":null,"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#fuzzing"}},{"name":"Packaging","score":10,"reason":"publishing workflow detected","details":["Info: GitHub publishing workflow used in run https://api.github.com/repos/fondesa/kpermissions/actions/runs/1595647295: .github/workflows/deploy.yml:97"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#packaging"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":null,"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/777298477c07c262a4ec7e95ceee839b7b3b75ae/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-14T23:47:32.947Z","repository_id":28150269,"created_at":"2025-08-14T23:47:32.947Z","updated_at":"2025-08-14T23:47:32.947Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"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","android-library","android-permissions","androidx","coroutines","flow","kotlin","livedata","permissions","runtime-permissions","rxjava","rxjava2","rxjava3"],"created_at":"2026-01-14T01:53:49.756Z","updated_at":"2026-01-14T01:53:50.418Z","avatar_url":"https://github.com/fondesa.png","language":"Kotlin","funding_links":["https://www.paypal.me/fondesa"],"categories":[],"sub_categories":[],"readme":"KPermissions\n===============\n[![Build Status](https://github.com/fondesa/kpermissions/workflows/GitHub%20CI%20Build/badge.svg)](https://github.com/fondesa/kpermissions/actions)\n[![KPermissions](https://www.appbrain.com/stats/libraries/shield/kpermissions.svg)](https://www.appbrain.com/stats/libraries/details/kpermissions/kpermissions)\n\nAn Android library totally written in Kotlin that helps to request runtime permissions.\nThis library is compatible also below Android M (API 23) where runtime permissions doesn't exist, so you haven't to handle them separately. \n\nUsage\n------\n\nTo discover all the APIs of this library, check the [wiki](https://github.com/fondesa/kpermissions/wiki). It contains some useful notes and advanced features not explained in the ```README```.\nFor further samples, check the [sample](https://github.com/fondesa/kpermissions/tree/master/sample) provided by this library. It shows how to integrate this library and request the permissions from an Activity or a Fragment.\n\n### Basic usage\nYou can create a ```PermissionRequest``` either from an ```Activity``` or a ```Fragment``` using the extension method ```permissionsBuilder()```:\n\n```kotlin\n// Build the request with the permissions you would like to request and send it.\npermissionsBuilder(Manifest.permission.CAMERA, Manifest.permission.SEND_SMS).build().send { result -\u003e\n    // Handle the result, for example check if all the requested permissions are granted.\n    if (result.allGranted()) {\n       // All the permissions are granted.\n    }\n}\n```\n\n#### Coroutines\nThe artifact `kpermissions-coroutines` adds the integration with the Kotlin coroutines:\n```kotlin\nlaunch {\n    val result = permissionsBuilder(Manifest.permission.CAMERA).build().sendSuspend()\n    // Handle the result.\n}\n```\n\nIt also supports the Kotlin coroutines `Flow` API:\n```kotlin\nval request = permissionsBuilder(Manifest.permission.CAMERA).build()\nlaunch {\n    request.flow().collect { result -\u003e\n        // Handle the result. \n    }\n}\nrequest.send()\n```\n\n#### RxJava\nThe artifacts `kpermissions-rx2` and `kpermissions-rx3` adds the integration with RxJava 2 and RxJava 3 respectively:\n```kotlin\nval request = permissionsBuilder(Manifest.permission.CAMERA).build()\nrequest.observe().subscribe { result -\u003e\n    // Handle the result.\n}\nrequest.send()\n```\n\n#### LiveData\nIn the core artifact, there's a useful extension on `PermissionRequest` to get a `LiveData`:\n```kotlin\nval request = permissionsBuilder(Manifest.permission.CAMERA).build()\nrequest.liveData().observe(this) { result -\u003e\n    // Handle the result.\n}\nrequest.send()\n```\n\nCompatibility\n------\n\n**Android SDK**: KPermissions requires a minimum API level of **14** (the same of the latest support libraries).\n\n**AndroidX**: this library requires AndroidX. To use it in a project without AndroidX, refer to the version **1.x**\n\nIntegration\n------\n\n\nYou can download a jar from GitHub's [releases page](https://github.com/fondesa/kpermissions/releases) or grab it from ```mavenCentral()```.\n\n### Gradle ### \n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.fondesa/kpermissions/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.fondesa/kpermissions) \n\n```gradle\ndependencies {\n    // The core artifact.\n    implementation 'com.github.fondesa:kpermissions:x.x.x'\n    // If you want the extensions for RxJava 2.\n    implementation 'com.github.fondesa:kpermissions-rx2:x.x.x'\n    // If you want the extensions for RxJava 3.\n    implementation 'com.github.fondesa:kpermissions-rx3:x.x.x'\n    // If you want the extensions for the Kotlin coroutines.\n    implementation 'com.github.fondesa:kpermissions-coroutines:x.x.x'\n}\n```\n\n### Contributing ###\nFeel free to contribute to this project following the [contributing guidelines](https://github.com/fondesa/kpermissions/blob/master/.github/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffondesa%2Fkpermissions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffondesa%2Fkpermissions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffondesa%2Fkpermissions/lists"}