No commit activity in last 3 years
No release in over 3 years
A Danger plugin to check diff of android apk permissions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.3
>= 0
~> 10.0
~> 3.4

Runtime

 Project Readme

danger-android_permissions_checker

A Danger 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.

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.

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.