Sha256: 3f5a15f5258e40345a8b0d8984f0575929256d97fe107c810f14235d31d488fa

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# danger-android_permissions_checker

A [Danger](https://danger.systems/ruby) plugin to check diff of android apk permissions.

## Installation

    $ gem install danger-android_permissions_checker

## How to check

Check permissions between current permissions and apk generated on CI service. if changed, show permissions which added or deleted.

## Usage

Create permission list file of your apk using aapt, like this.

```bash
$ aapt d permissions /path/to/release_apk > permissions.txt
```

Add this to Dangerfile. Specify apk generated by CI service and permission list file generated by above command.

```
android_permissions_checker.check(
  apk: '/path/to/generated_apk_by_CI',
  permission_list_file: /path/to/generated_permission_list
)
```

## NOTE

This gem uses `aapt`  command to parse permissions of generated apk, so you need to add /path/to/aapt (Android Build-tools) to $PATH on your CI service.


## Development

1. Clone this repo
2. Run `bundle install` to setup dependencies.
3. Run `bundle exec rake spec` to run the tests.
4. Make your changes.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
danger-android_permissions_checker-0.0.1 README.md