Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
require "rubygems"
require "rake"
require "pathname"
require "rexml/document"
manifest ="AndroidManifest.xml"))
PACKAGE = manifest.elements["/manifest/@package"].value
NAME = manifest.elements["/manifest/application/activity/@android:name"].value
task :default => :run
task :run do
sh "ant", "debug"
sh "adb", "install", "-r", Pathname.glob("bin/*.apk")[0]
sh "adb", "shell", "am start -a android.intent.action.MAIN -n #{PACKAGE}/#{NAME}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.