This file contains 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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.9.+' | |
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.9.+' | |
} | |
} |
This file contains 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
package versionbuilder | |
class VersionBuilder { | |
static final int GIT_COMMIT_COUNT_NORMALIZE = 230; | |
static final int GIT_COMMIT_COUNT_MINOR_NORMALIZE = 0; | |
static def buildGitVersionNumber() { | |
return Integer.parseInt('git rev-list --count HEAD'.execute().text.trim()) - GIT_COMMIT_COUNT_NORMALIZE; | |
} |
This file contains 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
#!/bin/sh | |
java -jar git-blame-reviewers-suggestions-1.0-SNAPSHOT-jar-with-dependencies.jar |
This file contains 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
package net.evendanan.android.hacks; | |
import android.content.Context; | |
import android.graphics.drawable.Drawable; | |
import android.util.AttributeSet; | |
/**** | |
*Note, this ImageView hack will ALWAYS scale the image (up or down) to fit the available | |
*space, while keeping the image aspect ratio. | |
*/ |
This file contains 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
public class CustomGradleTestRunner extends RobolectricGradleTestRunner { | |
private static final int MAX_SDK_LEVEL = 21; | |
public CustomGradleTestRunner(Class<?> klass) throws InitializationError { | |
super(klass); | |
} | |
@Override | |
public Config getConfig(Method method) { | |
Config config = super.getConfig(method); |
This file contains 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
[buildfile] | |
includes = //DEFS |
This file contains 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
File extFolder = Environment.getExternalStorageDirectory(); | |
File target = new File(extFolder, "ask_mem_dump.hprof"); | |
Debug.dumpHprofData(target.getAbsolutePath()); |
This file contains 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
public class AnySoftKeyboard extends InputMethodService { | |
private static final class KeyboardUIStateHanlder extends Handler { | |
//This will NOT be counted as a reference! | |
private final WeakReference<AnySoftKeyboard> mKeyboard; | |
public KeyboardUIStateHanlder(AnySoftKeyboard keyboard) { | |
mKeyboard = new WeakReference<AnySoftKeyboard>(keyboard); | |
} | |
This file contains 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
private static void unbindDrawable(Drawable d) { | |
if (d != null) | |
d.setCallback(null); | |
} |
This file contains 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.menny.android.anysoftkeyboard" | |
android:versionCode="112" | |
android:versionName="20131030"> | |
<uses-sdk | |
android:minSdkVersion="3" | |
android:targetSdkVersion="3" | |
android:maxSdkVersion="3"> | |
</uses-sdk> |
OlderNewer