This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//auto versioning logic | |
def versionPropertiesFile = file('version.properties') | |
if (versionPropertiesFile.canRead()) { | |
def Properties properties = new Properties() | |
properties.load(new FileInputStream(versionPropertiesFile)) | |
def build = properties['BUILD'].toInteger() + 1 | |
properties['BUILD'] = build.toString() | |
properties.store(versionPropertiesFile.newWriter(), null) | |
defaultConfig { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import com.squareup.picasso.Transformation; | |
public class ShadeTransform implements Transformation { | |
/* The shade alpha of black to apply */ |
NewerOlder