Socket
Book a DemoInstallSign in
Socket

danger-android_version_change

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danger-android_version_change

bundlerRubygems
Version
0.1.2
Version published
Maintainers
1
Created
Source

https://circleci.com/gh/levibostian/danger-android_version_change/tree/master.png

android_version_change

Asserts the versionName or versionCode strings have been changed in your Android project. This is done by checking the git diff of your project's build.gradle file. The plugin will either call Danger's fail method or do nothing if the versionName or versionCode strings were changed.

android_version_change.assert_version_name_changed()

Calls Danger fail if the versionName not updated or nothing if it has changed.

android_version_change.assert_version_code_changed()

Assert the versionName string changed for your Android project
# Calls Danger `fail` if the versionName not updated or nothing if it has changed.

Methods

assert_version_changed_diff - (Internal use) Pass the git diff string here to see if the version string has been updated.

assert_version_changed - (Internal use) Takes path to build.gradle as well as "versionName" or "versionCode" string to check for change.

assert_version_name_changed - Assert the versionName has been changed in your build.gradle file.

android_version_change.assert_version_name_changed()

If your build.gradle file is not located in the default location: app/build.gradle

android_version_change.assert_version_name_changed("specialDirectory/build.gradle")

assert_version_code_changed - Assert the versionCode has been changed in your build.gradle file.

android_version_change.assert_version_code_changed()

If your build.gradle file is not located in the default location: app/build.gradle

android_version_change.assert_version_code_changed("specialDirectory/build.gradle")

Development

  • Clone this repo
  • Run bundle install to setup dependencies.
  • Run bundle exec rake spec to run the tests.
  • Use bundle exec guard to automatically have tests run as you make changes.
  • Make your changes.

FAQs

Package last updated on 26 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts