From cce36df939677677db363049085027f98dc3229a Mon Sep 17 00:00:00 2001 From: isuPatches Date: Sat, 29 Oct 2016 18:35:59 -0500 Subject: [PATCH] Remove unnecessary files --- grant-set-animation-scale-permission.gradle | 30 --------------------- wait_for_emulator.sh | 19 ------------- 2 files changed, 49 deletions(-) delete mode 100644 grant-set-animation-scale-permission.gradle delete mode 100644 wait_for_emulator.sh diff --git a/grant-set-animation-scale-permission.gradle b/grant-set-animation-scale-permission.gradle deleted file mode 100644 index d875d9e0..00000000 --- a/grant-set-animation-scale-permission.gradle +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -def adb = android.getAdbExe().toString() - -task grantSetAnimationScalePermission(type: Exec, dependsOn: 'installDebug') { - group = 'verification' - description = 'Grant SET_ANIMATION_SCALE permission for testing.' - def saspermission = 'android.permission.SET_ANIMATION_SCALE' - commandLine "$adb shell pm grant $android.defaultConfig.applicationId $saspermission".split(' ') -} - -tasks.whenTaskAdded { task -> - if (task.name.startsWith('connectedDebugAndroidTest')) { - task.dependsOn grantSetAnimationScalePermission - } -} \ No newline at end of file diff --git a/wait_for_emulator.sh b/wait_for_emulator.sh deleted file mode 100644 index 7f6443c7..00000000 --- a/wait_for_emulator.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -bootanim="" -failcounter=0 -checkcounter=0 -until [[ "$bootanim" =~ "stopped" ]]; do - bootanim=`adb -e shell getprop init.svc.bootanim 2>&1` - echo "($checkcounter) $bootanim" - if [[ "$bootanim" =~ "not found" ]]; then - let "failcounter += 1" - if [[ $failcounter -gt 30 ]]; then - echo "Failed to start emulator" - exit 1 - fi - fi - let "checkcounter += 1" - sleep 10 -done -echo "Done"