Sha256: 6d2771b67f8d15074569ae95bc1c0733c83f306c3f026aebf0f27aab0b11ef51

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 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 current permission list file of your apk using aapt, like this.

```bash
$ aapt d permissions /path/to/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/permissions.txt
)
```

To use specific report method (default is warn). Available options are: message, warn, fail.
```
android_permissions_checker.report_method = 'fail'
android_permissions_checker.check(
  apk: '/path/to/generated_apk_by_CI',
  permission_list_file: /path/to/permissions.txt
)
```

## 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.

## ChangeLog

See [ChangeLog.md](https://github.com/mataku/danger-android_permissions_checker/blob/master/ChangeLog.md).

## 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.3 README.md