Skip to content

Instantly share code, notes, and snippets.

View kotwicky's full-sized avatar
💭
make jar not war

Filip Kotwicki kotwicky

💭
make jar not war
View GitHub Profile
@kotwicky
kotwicky / README.md
Last active August 29, 2015 14:26 — forked from gabrielemariotti/README.md
How to manage the support libraries in a multi-module projects. Thanks to Fernando Cejas (http://fernandocejas.com/)

Centralize the support libraries dependencies in gradle

Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.

A very good way is to separate gradle build files, defining something like:

root
  --gradleScript
 ----dependencies.gradle
@kotwicky
kotwicky / gist:8666892
Created January 28, 2014 12:36
Custom android's view used to display dashed line
public class DashedLineView extends View {
private static final int DEFAULT_DASH_WIDTH = 5;
private static final int DEFAULT_DASH_GAP = 2;
private Paint mPaint;
private Path mPath;
private PathEffect mEffects;
private int mDashHeight = 1;
@kotwicky
kotwicky / gist:8666856
Created January 28, 2014 12:32
Base Proguard configuration
-injars build/classes
-injars libs
-outjars build/classes-processed.jar
-libraryjars path_to_android_library
-dontpreverify
-repackageclasses ''
-allowaccessmodification
-optimizations !code/simplification/arithmetic
-keepattributes *Annotation*