Skip to content

Instantly share code, notes, and snippets.

Christian Williams xian

Block or report user

Report or block xian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
xian / gist:730793
Created Dec 6, 2010
Android: include build number and date
View gist:730793
<property environment="env"/>
<condition property="build.number" value="${env.BUILD_NUMBER}" else="unknown">
<isset property="env.BUILD_NUMBER"/>
<exec command="date" outputproperty=""/>
<target name="update-buildinfo">
<echo>updating build number and date to ${build.number} and ${}</echo>
<echo file="res/values/buildinfo.xml"
View Capture Android log messages in tests with Robolectric
package com.pivotallabs;
import android.util.Log;
import com.xtremelabs.robolectric.Robolectric;
import com.xtremelabs.robolectric.RobolectricTestRunner;
import com.xtremelabs.robolectric.util.Implements;
import org.junit.Test;
import org.junit.runner.RunWith;
You can’t perform that action at this time.