├── .github
├── FUNDING.yml
├── ISSUE_TEMPLATE
│ └── bug_report.md
├── stale.yml
└── workflows
│ └── android.yml
├── .gitignore
├── BACKERS.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── PULL_REQUEST_TEMPLATE.md
├── README.md
├── app
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── com
│ │ └── mukesh
│ │ └── permissionsexample
│ │ └── MainActivity.java
│ └── res
│ ├── layout
│ └── activity_main.xml
│ ├── mipmap-hdpi
│ └── ic_launcher.png
│ ├── mipmap-mdpi
│ └── ic_launcher.png
│ ├── mipmap-xhdpi
│ └── ic_launcher.png
│ ├── mipmap-xxhdpi
│ └── ic_launcher.png
│ ├── mipmap-xxxhdpi
│ └── ic_launcher.png
│ ├── values-w820dp
│ └── dimens.xml
│ └── values
│ ├── colors.xml
│ ├── dimens.xml
│ ├── strings.xml
│ └── styles.xml
├── build.gradle
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── library
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ └── main
│ ├── AndroidManifest.xml
│ └── java
│ └── com
│ └── mukesh
│ └── permissions
│ ├── EasyPermissions.java
│ └── OnPermissionListener.java
├── params.json
├── screenshot
└── android-working-with-marshmallow-permissions.png
└── settings.gradle
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | patreon: mukeshsolanki
2 | custom: https://www.paypal.me/mukeshsolanki
3 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: bug
6 | assignees: mukeshsolanki
7 |
8 | ---
9 |
10 | ### Subject of the issue
11 | Describe your issue here.
12 |
13 | ### Steps to reproduce
14 | Tell us how to reproduce this issue. Please provide a working demo.
15 |
16 | ### Expected behaviour
17 | Tell us what should happen
18 |
19 | ### Actual behaviour
20 | Tell us what happens instead
21 |
--------------------------------------------------------------------------------
/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Configuration for probot-stale - https://github.com/probot/stale
2 |
3 | # issues only:
4 | issues:
5 |
6 | # Number of days of inactivity before an Issue or Pull Request becomes stale
7 | daysUntilStale: 60
8 |
9 | # Number of days of inactivity before a stale Issue or Pull Request is closed.
10 | # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
11 | daysUntilClose: 7
12 |
13 | # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14 | exemptLabels:
15 | - pinned
16 | - security
17 | - enchangements
18 | - "[Status] Maybe Later"
19 |
20 | # Set to true to ignore issues in a project (defaults to false)
21 | exemptProjects: false
22 |
23 | # Set to true to ignore issues in a milestone (defaults to false)
24 | exemptMilestones: false
25 |
26 | # Label to use when marking as stale
27 | staleLabel: stale
28 |
29 | # Comment to post when marking as stale. Set to `false` to disable
30 | markComment: >
31 | This issue has been automatically marked as stale because it has not had
32 | recent activity. It will be closed if no further activity occurs. Thank you
33 | for your contributions.
34 | # Comment to post when removing the stale label.
35 | # unmarkComment: >
36 | # Your comment here.
37 |
38 | # Comment to post when closing a stale Issue or Pull Request.
39 | closeComment: >
40 | This has been closed with no activity
41 | # Limit the number of actions per hour, from 1-30. Default is 30
42 | limitPerRun: 30
43 |
44 | # Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
45 | # pulls:
46 | # daysUntilStale: 30
47 | # markComment: >
48 | # This pull request has been automatically marked as stale because it has not had
49 | # recent activity. It will be closed if no further activity occurs. Thank you
50 | # for your contributions.
51 |
52 | # issues:
53 | # exemptLabels:
54 | # - confirmed
--------------------------------------------------------------------------------
/.github/workflows/android.yml:
--------------------------------------------------------------------------------
1 | name: Build
2 |
3 | on:
4 | pull_request:
5 | branches:
6 | - 'master'
7 | push:
8 | branches:
9 | - 'master'
10 |
11 | jobs:
12 | apk:
13 | name: Generate APK
14 | runs-on: ubuntu-18.04
15 |
16 | steps:
17 | - uses: actions/checkout@v1
18 | - name: set up JDK 1.8
19 | uses: actions/setup-java@v1
20 | with:
21 | java-version: 1.8
22 | - name: Build debug APK
23 | run: bash ./gradlew assembleDebug --stacktrace
24 | - name: Upload APK
25 | uses: actions/upload-artifact@v1
26 | with:
27 | name: SampleApp
28 | path: app/build/outputs/apk/debug/app-debug.apk
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .idea/*
10 |
--------------------------------------------------------------------------------
/BACKERS.md:
--------------------------------------------------------------------------------
1 | # Backers
2 |
3 | Easy Permissions is an independent project with ongoing development and support made possible thanks to donations made by these awesome backers. If you'd like to join them, please consider:
4 |
5 | - [Become a backer or sponsor on Patreon](https://www.patreon.com/mukeshsolanki).
6 | - [One-time donation via PayPal](https://www.paypal.me/mukeshsolanki)
7 |
8 |
9 |
10 | Thank you to everyone who has donated their time, money, and support!
11 |
12 | ## Backers ($1 per month)
13 | - Be the first to back this project
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | In the interest of fostering an open and welcoming environment, we as
6 | contributors and maintainers pledge to making participation in our project and
7 | our community a harassment-free experience for everyone, regardless of age, body
8 | size, disability, ethnicity, sex characteristics, gender identity and expression,
9 | level of experience, education, socio-economic status, nationality, personal
10 | appearance, race, religion, or sexual identity and orientation.
11 |
12 | ## Our Standards
13 |
14 | Examples of behavior that contributes to creating a positive environment
15 | include:
16 |
17 | * Using welcoming and inclusive language
18 | * Being respectful of differing viewpoints and experiences
19 | * Gracefully accepting constructive criticism
20 | * Focusing on what is best for the community
21 | * Showing empathy towards other community members
22 |
23 | Examples of unacceptable behavior by participants include:
24 |
25 | * The use of sexualized language or imagery and unwelcome sexual attention or
26 | advances
27 | * Trolling, insulting/derogatory comments, and personal or political attacks
28 | * Public or private harassment
29 | * Publishing others' private information, such as a physical or electronic
30 | address, without explicit permission
31 | * Other conduct which could reasonably be considered inappropriate in a
32 | professional setting
33 |
34 | ## Our Responsibilities
35 |
36 | Project maintainers are responsible for clarifying the standards of acceptable
37 | behavior and are expected to take appropriate and fair corrective action in
38 | response to any instances of unacceptable behavior.
39 |
40 | Project maintainers have the right and responsibility to remove, edit, or
41 | reject comments, commits, code, wiki edits, issues, and other contributions
42 | that are not aligned to this Code of Conduct, or to ban temporarily or
43 | permanently any contributor for other behaviors that they deem inappropriate,
44 | threatening, offensive, or harmful.
45 |
46 | ## Scope
47 |
48 | This Code of Conduct applies both within project spaces and in public spaces
49 | when an individual is representing the project or its community. Examples of
50 | representing a project or community include using an official project e-mail
51 | address, posting via an official social media account, or acting as an appointed
52 | representative at an online or offline event. Representation of a project may be
53 | further defined and clarified by project maintainers.
54 |
55 | ## Enforcement
56 |
57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
58 | reported by contacting the project team at mukesh@madapps.in. All
59 | complaints will be reviewed and investigated and will result in a response that
60 | is deemed necessary and appropriate to the circumstances. The project team is
61 | obligated to maintain confidentiality with regard to the reporter of an incident.
62 | Further details of specific enforcement policies may be posted separately.
63 |
64 | Project maintainers who do not follow or enforce the Code of Conduct in good
65 | faith may face temporary or permanent repercussions as determined by other
66 | members of the project's leadership.
67 |
68 | ## Attribution
69 |
70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72 |
73 | [homepage]: https://www.contributor-covenant.org
74 |
75 | For answers to common questions about this code of conduct, see
76 | https://www.contributor-covenant.org/faq
77 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | [](https://github.com/mukeshsolanki/easypermissions-android/graphs/contributors)
2 |
3 | * Bug reports and pull requests are welcome.
4 | * Make sure you use [square/java-code-styles](https://github.com/square/java-code-styles) to format your code.
5 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Mukesh Solanki
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## Proposed changes
2 |
3 | Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
4 |
5 | ## Types of changes
6 |
7 | What types of changes does your code introduce?
8 | _Put an `x` in the boxes that apply_
9 |
10 | - [ ] Bugfix (non-breaking change which fixes an issue)
11 | - [ ] New feature (non-breaking change which adds functionality)
12 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
13 |
14 | ## Checklist
15 |
16 | _Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
17 |
18 | - [ ] I have read the [CONTRIBUTING](CONTRIBUTING.md) doc
19 | - [ ] I have added necessary documentation (if appropriate)
20 | - [ ] Any dependent changes have been merged and published in downstream modules
21 |
22 | ## Further comments
23 |
24 | If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
25 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
Runtime Permission Library(Android)
2 |
3 |
4 |
5 |
6 |
7 |
8 |
A simple library that will remove all the boilerplate code and speed up your work with new Runtime Permissions introduced in Android M.
9 |
10 |
11 | # Supporting Android Easy Permissions
12 |
13 | Android Easy Permissions is an independent project with ongoing development and support made possible thanks to donations made by [these awesome backers](BACKERS.md#sponsors). If you'd like to join them, please consider:
14 |
15 | - [Become a backer or sponsor on Patreon](https://www.patreon.com/mukeshsolanki).
16 | - [One-time donation via PayPal](https://www.paypal.me/mukeshsolanki)
17 |
18 |
19 |
20 | ## What are Runtime Permissions?
21 |
22 |
23 |
24 | Google docs is [here](https://developer.android.com/preview/features/runtime-permissions.html). Unlike the traditional way of asking permission Android M increased its security by enforcing apps to ask permissions on the fly as and when the user requests for a feature that requires those permissions. These permissions can also be revoked by the user at any time.
25 | ## How to integrate into your app?
26 | Integrating the library into you app is extremely easy. A few changes in the build gradle and your all ready to user Runtime permissions library. Make the following changes to build.gradle inside you app.
27 |
28 | Step 1. Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:
29 |
30 | ```java
31 | allprojects {
32 | repositories {
33 | ...
34 | maven { url "https://jitpack.io" }
35 | }
36 | }
37 | ```
38 | Step 2. Add the dependency
39 | ```java
40 | dependencies {
41 | implementation 'com.github.mukeshsolanki:easypermissions-android:'
42 | }
43 | ```
44 |
45 | ## How to use the library?
46 | Okay seems like you integrated the library in your project but **how do you use it**? Well its really easy just follow the steps below.
47 |
48 | ```
49 | EasyPermissions easyPermissions = new EasyPermissions.Builder()
50 | .with(this) //Activity
51 | .listener(
52 | new OnPermissionListener() {
53 | @Override public void onAllPermissionsGranted(@NonNull List permissions) {
54 | // Triggered if all permissions were given
55 | }
56 |
57 | @Override public void onPermissionsGranted(@NonNull List permissions) {
58 | // Lists all the permissions that were granted
59 | }
60 |
61 | @Override public void onPermissionsDenied(@NonNull List permissions) {
62 | // Lists all the permissions that were denied
63 | }
64 | })
65 | .build();
66 | ```
67 |
68 | **Dont forget to override the onRequestPermissionsResult and pass teh result to the library like wise**
69 | ```
70 | @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
71 | super.onRequestPermissionsResult(requestCode, permissions, grantResults);
72 | easyPermissions.onRequestPermissionsResult(permissions, grantResults);
73 | }
74 | ```
75 |
76 | ### Check Permissions
77 | To check if the app already has permissions use
78 | * `easyPermissions.hasPermission(String Permissions)` - To check one permission at a time
79 | * `easyPermissions.hasPermission(String[] Permissions)` - To check multiple permissions at the same time
80 |
81 | ### Request Permissions
82 | * `easyPermissions.request(String permission)` - To request one permission at a time
83 | * `easyPermissions.request(String[] permission)` - To request multiple permissions at the same time.
84 |
85 | That's pretty much it and your all wrapped up.
86 |
87 | ## Author
88 | Maintained by [Mukesh Solanki](https://www.github.com/mukeshsolanki)
89 |
90 | ## Contribution
91 | [](https://github.com/mukeshsolanki/App-Runtime-Permissions-Android/graphs/contributors)
92 |
93 | * Bug reports and pull requests are welcome.
94 | * Make sure you use [square/java-code-styles](https://github.com/square/java-code-styles) to format your code.
95 |
96 | ## License
97 | ```
98 | Copyright (c) 2018 Mukesh Solanki
99 |
100 | Permission is hereby granted, free of charge, to any person obtaining a copy
101 | of this software and associated documentation files (the "Software"), to deal
102 | in the Software without restriction, including without limitation the rights
103 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
104 | copies of the Software, and to permit persons to whom the Software is
105 | furnished to do so, subject to the following conditions:
106 |
107 | The above copyright notice and this permission notice shall be included in all
108 | copies or substantial portions of the Software.
109 |
110 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
111 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
112 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
113 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
114 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
115 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
116 | SOFTWARE.
117 | ```
118 |
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 29
5 |
6 | defaultConfig {
7 | applicationId "com.mukesh.permissionsexample"
8 | minSdkVersion 23
9 | targetSdkVersion 29
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation fileTree(include: ['*.jar'], dir: 'libs')
23 | implementation 'androidx.appcompat:appcompat:1.2.0'
24 | implementation project(':library')
25 | }
26 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/mukesh/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/java/com/mukesh/permissionsexample/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.mukesh.permissionsexample;
2 |
3 | import android.Manifest;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.widget.Button;
7 | import android.widget.Toast;
8 |
9 | import androidx.annotation.NonNull;
10 | import androidx.appcompat.app.AppCompatActivity;
11 |
12 | import com.mukesh.permissions.EasyPermissions;
13 | import com.mukesh.permissions.OnPermissionListener;
14 | import java.util.List;
15 |
16 | public class MainActivity extends AppCompatActivity implements View.OnClickListener {
17 |
18 | private static final String[] ALL_PERMISSIONS = {
19 | Manifest.permission.READ_SMS, Manifest.permission.WRITE_EXTERNAL_STORAGE,
20 | Manifest.permission.CAMERA
21 | };
22 |
23 | private Button mStorageButton, mCameraButton, mSmsButton, mAllButton;
24 | private EasyPermissions permissions;
25 |
26 | @Override protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 | setContentView(R.layout.activity_main);
29 | permissions = new EasyPermissions.Builder()
30 | .with(this)
31 | .listener(
32 | new OnPermissionListener() {
33 | @Override public void onAllPermissionsGranted(@NonNull List permissions) {
34 | Toast.makeText(MainActivity.this, "All permissions granted", Toast.LENGTH_SHORT)
35 | .show();
36 | }
37 |
38 | @Override public void onPermissionsGranted(@NonNull List permissions) {
39 | Toast.makeText(MainActivity.this, "permissions granted", Toast.LENGTH_SHORT)
40 | .show();
41 | }
42 |
43 | @Override public void onPermissionsDenied(@NonNull List permissions) {
44 | Toast.makeText(MainActivity.this, "permissions denied", Toast.LENGTH_SHORT)
45 | .show();
46 | }
47 | })
48 | .build();
49 | initializeUI();
50 | setListener();
51 | }
52 |
53 | private void setListener() {
54 | mStorageButton.setOnClickListener(this);
55 | mCameraButton.setOnClickListener(this);
56 | mSmsButton.setOnClickListener(this);
57 | mAllButton.setOnClickListener(this);
58 | }
59 |
60 | private void initializeUI() {
61 | mStorageButton = findViewById(R.id.storage_button);
62 | mCameraButton = findViewById(R.id.camera_button);
63 | mSmsButton = findViewById(R.id.sms_button);
64 | mAllButton = findViewById(R.id.all_button);
65 | }
66 |
67 | @Override
68 | public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
69 | @NonNull int[] grantResults) {
70 | super.onRequestPermissionsResult(requestCode, permissions, grantResults);
71 | this.permissions.onRequestPermissionsResult(permissions, grantResults);
72 | }
73 |
74 | @Override public void onClick(View v) {
75 | if (v.equals(mCameraButton)) {
76 | if (permissions.hasPermission(Manifest.permission.CAMERA)) {
77 | Toast.makeText(MainActivity.this, Manifest.permission.CAMERA + " already granted",
78 | Toast.LENGTH_SHORT).show();
79 | } else {
80 | permissions.request(Manifest.permission.CAMERA);
81 | }
82 | } else if (v.equals(mStorageButton)) {
83 | if (permissions.hasPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
84 | Toast.makeText(MainActivity.this,
85 | Manifest.permission.WRITE_EXTERNAL_STORAGE + " already granted",
86 | Toast.LENGTH_SHORT).show();
87 | } else {
88 | permissions.request(Manifest.permission.WRITE_EXTERNAL_STORAGE);
89 | }
90 | } else if (v.equals(mSmsButton)) {
91 | if (permissions.hasPermission(Manifest.permission.READ_SMS)) {
92 | Toast.makeText(MainActivity.this, Manifest.permission.READ_SMS + " already granted",
93 | Toast.LENGTH_SHORT).show();
94 | } else {
95 | permissions.request(Manifest.permission.READ_SMS);
96 | }
97 | } else if (v.equals(mAllButton)) {
98 | if (permissions.hasPermission(ALL_PERMISSIONS)) {
99 | Toast.makeText(MainActivity.this, "all permissions already granted",
100 | Toast.LENGTH_SHORT).show();
101 | } else {
102 | permissions.request(ALL_PERMISSIONS);
103 | }
104 | }
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
21 |
27 |
33 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mukeshsolanki/easypermissions-android/18a8b02011bca074c119acda845edc0d6b0f728a/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mukeshsolanki/easypermissions-android/18a8b02011bca074c119acda845edc0d6b0f728a/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mukeshsolanki/easypermissions-android/18a8b02011bca074c119acda845edc0d6b0f728a/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mukeshsolanki/easypermissions-android/18a8b02011bca074c119acda845edc0d6b0f728a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mukeshsolanki/easypermissions-android/18a8b02011bca074c119acda845edc0d6b0f728a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Runtime-Permissions-Android
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | jcenter()
4 | google()
5 | }
6 | dependencies {
7 | classpath 'com.android.tools.build:gradle:4.0.1'
8 | }
9 | }
10 |
11 | allprojects {
12 | repositories {
13 | jcenter()
14 | maven { url "https://jitpack.io" }
15 | google()
16 | }
17 | }
18 |
19 | task clean(type: Delete) {
20 | delete rootProject.buildDir
21 | }
22 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 | android.useAndroidX=true
20 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mukeshsolanki/easypermissions-android/18a8b02011bca074c119acda845edc0d6b0f728a/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Aug 12 11:47:56 EDT 2020
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/library/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/library/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | group='com.github.mukeshsolanki'
4 |
5 | android {
6 | compileSdkVersion 30
7 |
8 | defaultConfig {
9 | minSdkVersion 14
10 | targetSdkVersion 30
11 | versionCode 9
12 | versionName "2.0.3"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | implementation fileTree(dir: 'libs', include: ['*.jar'])
24 | implementation 'androidx.appcompat:appcompat:1.2.0'
25 | implementation 'androidx.annotation:annotation:1.1.0'
26 | }
--------------------------------------------------------------------------------
/library/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /Users/mukesh/Library/Android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/library/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/library/src/main/java/com/mukesh/permissions/EasyPermissions.java:
--------------------------------------------------------------------------------
1 | package com.mukesh.permissions;
2 |
3 | import android.app.Activity;
4 | import android.content.pm.PackageManager;
5 |
6 | import androidx.annotation.NonNull;
7 | import androidx.core.app.ActivityCompat;
8 |
9 | import java.util.ArrayList;
10 | import java.util.Arrays;
11 | import java.util.List;
12 |
13 | public class EasyPermissions {
14 | private final Activity activity;
15 | private final OnPermissionListener onPermissionListener;
16 |
17 | private EasyPermissions(Builder builder) {
18 | this.activity = builder.activity;
19 | this.onPermissionListener = builder.listener;
20 | }
21 |
22 | public void onRequestPermissionsResult(String[] permissions, int[] grantResults) {
23 | List grantedPermissions = new ArrayList<>();
24 | List deniedPermissions = new ArrayList<>();
25 | for (int i = 0; i < grantResults.length; i++) {
26 | if (grantResults[i] == PackageManager.PERMISSION_DENIED) {
27 | deniedPermissions.add(permissions[i]);
28 | } else {
29 | grantedPermissions.add(permissions[i]);
30 | }
31 | }
32 | if (grantedPermissions.size() == permissions.length) {
33 | onPermissionListener.onAllPermissionsGranted(Arrays.asList(permissions));
34 | } else {
35 | onPermissionListener.onPermissionsGranted(grantedPermissions);
36 | onPermissionListener.onPermissionsDenied(deniedPermissions);
37 | }
38 | }
39 |
40 | public void request(String... permissions) {
41 | List permissionNeeded = new ArrayList<>();
42 | for (String permission : permissions) {
43 | if (ActivityCompat.checkSelfPermission(activity, permission)
44 | != PackageManager.PERMISSION_GRANTED) {
45 | permissionNeeded.add(permission);
46 | }
47 | }
48 | if (permissionNeeded.size() > 0) {
49 | ActivityCompat.requestPermissions(activity, permissionNeeded.toArray(new String[0]), 10002);
50 | }
51 | }
52 |
53 | public boolean hasPermission(String... permissions) {
54 | for (String permission : permissions) {
55 | if (ActivityCompat.checkSelfPermission(activity, permission)
56 | != PackageManager.PERMISSION_GRANTED) {
57 | return false;
58 | }
59 | }
60 | return true;
61 | }
62 |
63 | public static class Builder {
64 | private Activity activity;
65 | private OnPermissionListener listener;
66 |
67 | public Builder with(@NonNull Activity activity) {
68 | this.activity = activity;
69 | return this;
70 | }
71 |
72 | public Builder listener(@NonNull OnPermissionListener listener) {
73 | this.listener = listener;
74 | return this;
75 | }
76 |
77 | public EasyPermissions build() {
78 | return new EasyPermissions(this);
79 | }
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/library/src/main/java/com/mukesh/permissions/OnPermissionListener.java:
--------------------------------------------------------------------------------
1 | package com.mukesh.permissions;
2 |
3 | import androidx.annotation.NonNull;
4 |
5 | import java.util.List;
6 |
7 | public interface OnPermissionListener {
8 | void onAllPermissionsGranted(@NonNull List permissions);
9 |
10 | void onPermissionsGranted(@NonNull List permissions);
11 |
12 | void onPermissionsDenied(@NonNull List permissions);
13 | }
14 |
--------------------------------------------------------------------------------
/params.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "App Runtime Permissions (Android)",
3 | "tagline": "A simple library that will remove all the boilerplate code and speed up your work with new Runtime Permissions introduced in Android M.",
4 | "body": "
Runtime Permission Library(Android)
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
A simple library that will remove all the boilerplate code and speed up your work with new Runtime Permissions introduced in Android M.\r\n\r\n## What are Runtime Permissions?\r\n\r\n\r\n\r\nGoogle docs is [here](https://developer.android.com/preview/features/runtime-permissions.html). Unlike the traditional way of asking permission Android M increased its security by enforcing apps to ask permissions on the fly as and when the user requests for a feature that requires those permissions. These permissions can also be revoked by the user at any time.\r\n## How to integrate into your app?\r\nIntegrating the library into you app is extremely easy. A few changes in the build gradle and your all ready to user Runtime permissions library. Make the following changes to build.gradle inside you app.\r\n```java\r\n.....\r\ndependencies {\r\n ...\r\n compile 'com.mukesh:permissions:1.0.4'\r\n}\r\n```\r\n\r\n## How to use the library?\r\nOkay seems like you integrated the library in your project but **how do you use it**? Well its really easy just follow the steps below.\r\n\r\n```\r\n AppPermissions runtimePermission = new AppPermissions(Activity currentActivity);\r\n```\r\nThis will create an object of the Runtime Permission class for you. Make sure it's an object of **com.mukesh.permissions.AppPermissions**\r\nTo check if the app has a specific permission you can call `runtimePermission.hasPermission(String permission);` or if you want to check \r\nwhether the app has multiple permission you can call `runtimePermission.hasPermission(String[] permissions)`.\r\n\r\n\r\n\r\nor like how google requests for multiple permissions\r\n\r\n\r\n\r\nYou can request for a permission by calling `runtimePermission.requestPermission(String permission, int requestCode)` or request multiple \r\npermissions by calling `runtimePermission.requestPermission(String[] permissions, int requestCode)`. However you will need to override a \r\nmethod on your activity inorder to wait for a callback from the library. Just add this to you activity.\r\n\r\n```\r\n@Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\r\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n if (requestCode == mRequestCode) { //The request code you passed along with the request.\r\n //grantResults holds a list of all the results for the permissions requested.\r\n for (int grantResult : grantResults) {\r\n if (grantResult == PackageManager.PERMISSION_DENIED) {\r\n Log.d(\"PermissionResult=>\", \"Denied\");\r\n return;\r\n }\r\n }\r\n Log.d(\"PermissionResult=>\", \"All Permissions Granted\");\r\n }\r\n }\r\n```\r\n\r\nThat's pretty much it and your all wrapped up.\r\n",
5 | "note": "Don't delete this file! It's used internally to help with page regeneration."
6 | }
--------------------------------------------------------------------------------
/screenshot/android-working-with-marshmallow-permissions.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mukeshsolanki/easypermissions-android/18a8b02011bca074c119acda845edc0d6b0f728a/screenshot/android-working-with-marshmallow-permissions.png
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':library'
2 |
--------------------------------------------------------------------------------