{"id":3647,"url":"https://github.com/NoNews/NoPermission","last_synced_at":"2025-08-03T22:32:00.472Z","repository":{"id":88836615,"uuid":"98806834","full_name":"NoNews/NoPermission","owner":"NoNews","description":"Android library for permissions request (updated 27.11.2017)","archived":false,"fork":false,"pushed_at":"2022-01-12T15:17:09.000Z","size":174,"stargazers_count":103,"open_issues_count":1,"forks_count":17,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-01T04:51:12.394Z","etag":null,"topics":["andriod","android-library","permissions"],"latest_commit_sha":null,"homepage":"","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/NoNews.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2017-07-30T15:31:44.000Z","updated_at":"2024-07-19T14:55:31.000Z","dependencies_parsed_at":"2023-06-12T20:15:11.625Z","dependency_job_id":null,"html_url":"https://github.com/NoNews/NoPermission","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoNews%2FNoPermission","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoNews%2FNoPermission/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoNews%2FNoPermission/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoNews%2FNoPermission/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NoNews","download_url":"https://codeload.github.com/NoNews/NoPermission/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228571844,"owners_count":17938772,"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":["andriod","android-library","permissions"],"created_at":"2024-01-05T20:16:47.407Z","updated_at":"2024-12-07T06:30:35.733Z","avatar_url":"https://github.com/NoNews.png","language":"Java","funding_links":[],"categories":["Libraries"],"sub_categories":["Runtime Permissions"],"readme":"\n\n# NoPermission\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-NoPermission-blue.svg?style=flat)](https://android-arsenal.com/details/1/6212)\n[![androidweekly.cn](https://img.shields.io/badge/androidweekly.cn-%23153-red.svg)](http://androidweekly.cn/android-dev-weekly-issue-153/)\n[ ![Download](https://api.bintray.com/packages/nonews/maven/nopermission/images/download.svg) ](https://bintray.com/nonews/maven/nopermission/_latestVersion)\n[![API](https://img.shields.io/badge/API-15%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=null)\n\nDeprecated. \n\nSimple Android library for permissions request. Consists of only one class.\n\n\n\n\n### Why NoPermission:\n* Not a framework. It's just one class\n* Dialog with an explanation of why the application needs permission (with custom title, message and button text and color)\n* Never ask again feature\n* Automatic check whether the permission is granted or not (don't need to check api version)\n* Fragments support\n\n\n### Gradle\n\n    compile 'ru.alexbykov:nopermission:1.1.2'\n\n### Install\n\n```java\nPermissionHelper permissionHelper = new PermissionHelper(this); //don't use getActivity in fragment!\n\n        permissionHelper.check(Manifest.permission.ACCESS_COARSE_LOCATION)\n                .onSuccess(this::onSuccess)\n                .onDenied(this::onDenied)\n                .onNeverAskAgain(this::onNeverAskAgain)\n                .run();\n```\n\n##### Multiply permissions and other settings:\n\n```java\n\n   permissionHelper.check(Manifest.permission.READ_CONTACTS, Manifest.permission.Manifest.permission.READ_CONTACTS)\n                   .withDialogBeforeRun(R.string.dialog_before_run_title, R.string.dialog_before_run_message, R.string.dialog_positive_button)\n                   .setDialogPositiveButtonColor(android.R.color.holo_orange_dark)\n                   .onSuccess(this::onSuccess)\n                   .onDenied(this::onDenied)\n                   .onNeverAskAgain(this::onNeverAskAgain)\n                   .run();\n```\n\n##### onRequestPermissionsResult:\n\n```java\n @Override\n  public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)\n        permissionHelper.onRequestPermissionsResult(requestCode, permissions, grantResults);\n   }\n```\n\n##### Open application settings activity\nIf user check \"Never ask again\", you can redirect him to application settings.\n\n```permissionHelper.startApplicationSettingsActivity();```\n\nDon't forget explain it manually (with dialog). \nIn future this feature will be realised in library. \n\n\n\n#### Changelog\n\nBe sure to review the [changes list](https://github.com/NoNews/NoPermission/releases) before updating the version\n\n#### TODO\n* Unit tests\n* Getting rid of the ```onRequestPermissionsResult``` method\n\n#### Contributing\n\nIf you find any bug, or you have suggestions, don't be shy to create [issues](https://github.com/NoNews/NoPermission/issues) or make a [PRs](https://github.com/NoNews/NoPermission/pulls) in the `develop` branch.\nYou can read contribution guidelines [here](https://github.com/NoNews/NoPermission/blob/master/CONTRIBUTING.md)\n\n#### License\n```\nCopyright 2017 Mike Antipiev and Alex Bykov\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNoNews%2FNoPermission","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNoNews%2FNoPermission","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNoNews%2FNoPermission/lists"}