GithubHelp home page GithubHelp logo

sudipbhandari126 / androidautoversion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexfu/androidautoversion

0.0 1.0 0.0 81 KB

An automatic versioning system for your Android apps

License: MIT License

Groovy 100.00%

androidautoversion's Introduction

Android Auto-Version

This is a Gradle plugin, for Android developers, that automates app versioning. You can read more about this plugins inception here: http://alexfu.github.io/2015/11/09/Android-Auto-Versioning

Why

Not having to remember or worry about when to bump version numbers allows you to focus on what's really important (implementing new features or fixing bugs).

Benefits

This plugin comes with 3 simple tasks:

  • releaseMajor
  • releaseMinor
  • releasePatch

All of these tasks will do the following when executed:

  1. Bump version based on semantic versioning rules (http://semver.org)
  2. Commit the versioning file (using git)
  3. Tag your current branch (again, using git)

NOTE: This plugin will not push any changes to your remote server. This is up to the developer to do.

How

To use this plugin...

Step 1

Create a versioning file. This file is a simple JSON file that specifies the components that make up your version. Include it in your VCS.

{
  "buildNumber": 99,
  "major": 1,
  "minor": 0,
  "patch": 1,
  "revision": 1
}

Step 2

Include the following in your top-level build.gradle file:

buildscript {
  repositories {
    maven { url 'https://jitpack.io' }
  }
  dependencies {
    classpath 'com.github.alexfu:androidautoversion:0.2.1'
  }
}

Step 3

Include the following in your app-level build.gradle file:

apply plugin: 'com.github.alexfu.androidautoversion'

androidAutoVersion {
  releaseTask "assembleRelease"
  versionFile file('/path/to/version/file')
}

Step 4

Remove versionCode and versionName from your defaultConfig block!

Usage

Every time you want to make a release, decide if it's a major, minor, or a patch. Use the rules outlined here to make your decision. Then, once you've decided, run the release task that matches your release type (releaseMajor, releaseMinor, releasePatch). At the end of it all, you'll have a tagged branch and release APKs of each app variant.

androidautoversion's People

Contributors

alexfu avatar ravidsrk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.