summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2017-02-22 17:55:12 +0100
committerGitHub <noreply@github.com>2017-02-22 17:55:12 +0100
commit586ae94ec4cfd3ea5b223ba36fc519ef8ada5eff (patch)
tree6035c89b45b0db0526d96f48427219a824199eab /Makefile
parent10b8ef644188ee02cdce5b8db35fed1c32688758 (diff)
downloadqtlocation-mapboxgl-586ae94ec4cfd3ea5b223ba36fc519ef8ada5eff.tar.gz
[android] - uninstall current apk on test device before running a make run- command. (#8160)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b350296689..30a5ade7ba 100644
--- a/Makefile
+++ b/Makefile
@@ -568,6 +568,7 @@ run-android-core-test-$1: run-android-core-test-$1-*
.PHONY: run-android-$1
run-android-$1: android-$1
+ adb uninstall com.mapbox.mapboxsdk.testapp > /dev/null
cd platform/android && ./gradlew :MapboxGLAndroidSDKTestApp:install$(BUILDTYPE) && adb shell am start -n com.mapbox.mapboxsdk.testapp/.activity.FeatureOverviewActivity
apackage: android-lib-$1
@@ -607,10 +608,12 @@ android-ui-test:
.PHONY: run-android-ui-test
run-android-ui-test:
+ adb uninstall com.mapbox.mapboxsdk.testapp > /dev/null
cd platform/android && ./gradlew :MapboxGLAndroidSDKTestApp:connectedAndroidTest -i
run-android-ui-test-%:
- cd platform/android && ./gradlew :MapboxGLAndroidSDKTestApp:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class="$*"
+ adb uninstall com.mapbox.mapboxsdk.testapp > /dev/null
+ cd platform/android && ./gradlew :MapboxGLAndroidSDKTestApp:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class="$*"
.PHONY: run-android-ui-test-aws
run-android-ui-test-aws: