Skip to content

Instantly share code, notes, and snippets.

View anothem's full-sized avatar

Alex Florescu anothem

View GitHub Profile
@anothem
anothem / gist:9f1a8fc3fb6c5cafd5a5
Created September 17, 2015 20:31
Disable preDex
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
subprojects {
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
@anothem
anothem / sync.py
Last active December 28, 2015 13:59 — forked from neilgmacy/sync.py
#!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
import sys
import os
import shutil
import time
from datetime import datetime
import argparse
import re
import Image