Fix android_install_apk script to work with changes from a137675
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 6 May 2014 18:29:28 +0000 (18:29 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 6 May 2014 18:29:28 +0000 (18:29 +0000)
(http://crrev.com/223613004).  See http://crrev.com/256413006 or
http://crrev.com/262053007 for similar changes.

R=djsollen@google.com, mtklein@google.com

Author: halcanary@google.com

Review URL: https://codereview.chromium.org/266373005

git-svn-id: http://skia.googlecode.com/svn/trunk@14593 2bbb7eff-a529-9590-31e7-b0007b416f81

platform_tools/android/bin/android_install_apk

index 0b1561335e8d089a044cb3b01187a3cb1ee2289d..9161bbb41c3291f504e0260c667708a7cda4857d 100755 (executable)
@@ -19,7 +19,6 @@ source $SCRIPT_DIR/utils/setup_adb.sh
 forceRemoval="false"
 installLauncher="false"
 installOptions="-r"
-configuration="Debug"
 
 for arg in ${APP_ARGS[@]}
 do
@@ -33,9 +32,6 @@ do
   elif [[ "${arg}" == "-r" ]];
   then
     echo "DEPRECATED: -r is now a no-op"
-  elif [[ "${arg}" == "--release" ]];
-  then
-    configuration="Release"
   else
     echo "ERROR: unrecognized option ${arg}"
     print_usage
@@ -49,5 +45,5 @@ then
     $ADB ${DEVICE_SERIAL} uninstall com.skia > /dev/null
 fi
 
-echo "Installing Skia App from ${SKIA_OUT}/${configuration}"
-$ADB ${DEVICE_SERIAL} install ${installOptions} ${SKIA_OUT}/${configuration}/android/bin/SkiaAndroid.apk
+echo "Installing Skia App from ${SKIA_OUT}/${BUILDTYPE}"
+$ADB ${DEVICE_SERIAL} install ${installOptions} ${SKIA_OUT}/${BUILDTYPE}/android/bin/SkiaAndroid.apk