This file contains hidden or 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/bash | |
| if ! type adb; then | |
| echo "adb not found" | |
| echo "check PATH" | |
| else | |
| echo "============================" | |
| echo "Android Device Specificatios" | |
| echo "============================" | |
| adb wait-\for-device | |
| echo "> Manufacturer" |
This file contains hidden or 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
| /* | |
| * Here we iterate over the directories found in the root directory of the | |
| * main project, and if the subdirectory contains a build.gradle file, it | |
| * is added to the main project as a subproject. | |
| */ | |
| Closure discoverSubprojects = { | |
| def list = [] | |
| rootDir.eachDir(){ dir -> | |
| dir.eachFileMatch({it == 'build.gradle'}, { list += [dir.name] }) |
This file contains hidden or 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
| android.libraryVariants.all { variant -> | |
| def name = variant.buildType.name | |
| if (name.equals(com.android.builder.core.BuilderConstants.DEBUG)) { | |
| return; // Skip debug builds. | |
| } | |
| def task = project.tasks.create "jar${name.capitalize()}", Jar | |
| task.dependsOn variant.javaCompile | |
| //Include Java classes | |
| task.from variant.javaCompile.destinationDir | |
| //Include dependent jars with some exceptions |
This file contains hidden or 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
| #!/usr/bin/env monkeyrunner | |
| import time | |
| from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice | |
| device = MonkeyRunner.waitForConnection() | |
| # Touch down screen | |
| device.touch(100, 500, MonkeyDevice.DOWN) |