Skip to content

Instantly share code, notes, and snippets.

View vincekennedy's full-sized avatar

Vince vincekennedy

View GitHub Profile
@vincekennedy
vincekennedy / tag.groovy
Created May 5, 2015 21:55
Newest git tag for Android build versioning with gradle
def releaseTag = 'git tag'.execute()
def serr = new StringBuffer()
def sout = new StringBuffer()
releaseTag.consumeProcessOutput(sout, serr)
releaseTag.waitForOrKill(1000)
String[] lines = sout.toString().split("\\n")
def tag = lines[lines.length-1]
@vincekennedy
vincekennedy / AndroidManifest.xml
Last active August 29, 2015 14:20
Download and initiate install of apk with Download Manager
<receiver
android:name=".DownloadBroadcastReceiver"
android:exported="true">
<intent-filter>
<action android:enabled="true" android:name="android.intent.action.DOWNLOAD_COMPLETE" />
</intent-filter>
</receiver>