Skip to content

Instantly share code, notes, and snippets.

View isneesh's full-sized avatar

Isneesh Marwah isneesh

View GitHub Profile
@isneesh
isneesh / UI development.md
Last active August 29, 2015 14:01
Android UI default widgets

Toasts

  • Text
  • Length - Short/Long/Custom

Dialog Boxes

  • Title

Discovery - Dev/QA

  • Create a bug on pivotal if not already there
  • Assign the task to owning dev

Fix - Owning Dev

  • Mark it started
  • Figure out the base_branch depending on whether the bug exists on master as well or only on develop
  • Take out a branch with prefix fix_ from base_branch above
  • Fix the bug

QA Release

CI Nightly task - QA build from develop

  • Merge master to develop
  • Create a dev-key signed apk from develop, with STAGING proteusConfig, QA buildType

Superheroes Release

CI weekly task (Friday) - Superheroes build from master

  • Create a release-key signed apk from develop, with PRODUCTION proteusConfig, QA buildType

Market Release Process

@isneesh
isneesh / Android UI practices.md
Last active August 29, 2015 14:01
Android UI practices

Callbacks

  • Use UICallback to attach to ListenableFutures, whenever you want to do work on UI thread
  • Use NonUICallback to attach to ListenableFutures, whenever you do not want to do work on UI thread

Events

  • Use UIThreadEventHandler to attach to Event, whenever you want to do work on UI thread
  • Use BackgroundEventHandler to delegate work away from UI thread - this is a single threaded executor to ensure sequence

Long running UI tasks

  • Use AsyncTask when you want to do longer running work, like sorting, and need results back on the UI thread
@isneesh
isneesh / Git completion.md
Created May 6, 2014 04:36
Git setup on mac

Get the [script][1] and store it in home:

Add this to ~/.bash_profile :

if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi