Skip to content

Instantly share code, notes, and snippets.

View edotassi's full-sized avatar

Edoardo Tassinari edotassi

  • Arma di Taggia, Imperia Italy
View GitHub Profile

Incrementing Android Version Documentation

Setup

Step One

Append the following version variable definitions to your app's build.gradle file, this can be anywhere but preferably at the top of the file above all "apply" declarations. You may set the values to your current build/version codes if this is not a new project.

def VERSION_BUILD=0
def VERSION_MAJOR=0
def VERSION_MINOR=0
@t00ts
t00ts / app.component.ts
Created November 17, 2016 12:07
Ionic 2 PWA - Controlling browser back button
import { IonicApp, App, MenuController } from 'ionic-angular';
@Component ({...})
export class MyWebApp {
constructor (private _app: App, private _ionicApp: IonicApp, private _menu: MenuController) {
platform.ready().then(() => {
// Do your thing...