Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #5859 - fixes running locally without having the properties…
Browse files Browse the repository at this point in the history
… configured
  • Loading branch information
tobrun committed Aug 16, 2016
1 parent 9a14237 commit 4edf35c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions platform/android/MapboxGLAndroidSDKTestApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,23 @@ checkstyle {
showViolations true
}


def getAccessKeyDeviceFarm() {
return hasProperty('AWS_ACCESS_KEY_ID_DEVICE_FARM') ? AWS_ACCESS_KEY_ID_DEVICE_FARM : ""
}

def getSecretAccessKeyDeviceFarm() {
return hasProperty('AWS_SECRET_ACCESS_KEY_DEVICE_FARM') ? AWS_SECRET_ACCESS_KEY_DEVICE_FARM : ""
}

devicefarm {

projectName "Mapbox GL Android" // required: Must already exists.
devicePool "sanity" // optional: Defaults to "Top Devices"

authentication {
accessKey AWS_ACCESS_KEY_ID_DEVICE_FARM
secretKey AWS_SECRET_ACCESS_KEY_DEVICE_FARM
accessKey getAccessKeyDeviceFarm()
secretKey getSecretAccessKeyDeviceFarm()
}

// optional block, radios default to 'on' state, all parameters optional
Expand All @@ -129,7 +138,7 @@ devicefarm {
gps "on"
nfc "on"
latitude 47.6204 // default
longitude -122.3491 // default
longitude - 122.3491 // default
}

// Instrumentation
Expand All @@ -140,6 +149,7 @@ devicefarm {
}
}


android.applicationVariants.all { variant ->
def name = variant.buildType.name
def checkstyle = project.tasks.create "checkstyle${name.capitalize()}", Checkstyle
Expand Down

0 comments on commit 4edf35c

Please sign in to comment.