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
import com.android.builder.testing.ConnectedDeviceProvider | |
def DEVICES_PROPERTY = "devices" | |
ConnectedDeviceProvider.metaClass.getProperty = { String name -> | |
def metaProperty = delegate.metaClass.getMetaProperty(name) | |
def property = metaProperty.getProperty(delegate) | |
if (name.equals(DEVICES_PROPERTY) && project.hasProperty(DEVICES_PROPERTY)) { | |
def devicesSerials = project.getProperties().get(DEVICES_PROPERTY).split(/,/) | |
def devices = property.findAll {devicesSerials.contains(it.serialNumber)} | |
property = devices | |
} |
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
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 21 | |
buildToolsVersion "21.1.2" | |
defaultConfig { | |
applicationId "test.co.vv.myapplication" | |
minSdkVersion 15 | |
targetSdkVersion 21 |
NewerOlder