Skip to content

Instantly share code, notes, and snippets.

View westonal's full-sized avatar

Alan Evans westonal

View GitHub Profile
@westonal
westonal / AutomaticDripCoffeeMaker.java
Last active May 4, 2018 16:44 — forked from arriolac/AutomaticDripCoffeeMaker.java
Software Design Interview Question
class AutomaticDripCoffeeMaker(inner: CoffeeMaker) : CoffeeMaker {
public Heater heater;
public Pump pump;
public AutomaticDropCoffeeMaker() {
super();
}
// add this to the general build.gradle, not in the subproject's build.gradle
// improved version of Xavier's tip http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance.
// usage example default, preDex will be enabled: gradle clean build
// usage example disabling preDex: gradle clean build -PpreDexEnable=false
// preDexEnable parameter's value can be set as property of Continuous Integration build config
// this is the main difference from Xavier's workaround where he doing only hasProperty check
project.ext {
if (project.hasProperty('preDexEnable')) {