Skip to content

Commit

Permalink
use namespace when using Adb and CheckAdbTarget tasks (dotnet#619)
Browse files Browse the repository at this point in the history
- because in monodroid we have different tasks named equally. and we
   want to use UnitTestApks.targets
  • Loading branch information
radekdoulik authored and jonpryor committed Jun 5, 2017
1 parent 33b5d39 commit 2b296e9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build-tools/scripts/UnitTestApks.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
</PropertyGroup>

<Target Name="AcquireAndroidTarget">
<CheckAdbTarget
<Xamarin.Android.Tools.BootstrapTasks.CheckAdbTarget
Condition=" '$(RequireNewEmulator)' != 'True' "
AdbTarget="$(AdbTarget)"
ToolExe="$(AdbToolExe)"
ToolPath="$(AdbToolPath)">
<Output TaskParameter="AdbTarget" PropertyName="_AdbTarget" />
<Output TaskParameter="IsValidTarget" PropertyName="_ValidAdbTarget" />
</CheckAdbTarget>
</Xamarin.Android.Tools.BootstrapTasks.CheckAdbTarget>
<CreateAndroidEmulator
Condition=" '$(_ValidAdbTarget)' != 'True' "
AndroidAbi="x86"
Expand All @@ -45,7 +45,7 @@
Condition=" '$(_ValidAdbTarget)' != 'True' "
Command="sleep 10"
/>
<Adb
<Xamarin.Android.Tools.BootstrapTasks.Adb
Condition=" '$(_ValidAdbTarget)' != 'True' "
Arguments="$(_AdbTarget) wait-for-device"
ToolExe="$(AdbToolExe)"
Expand All @@ -64,14 +64,14 @@
</Target>

<Target Name="ReleaseAndroidTarget">
<Adb
<Xamarin.Android.Tools.BootstrapTasks.Adb
Condition="'@(_FailedComponent)' != ''"
ContinueOnError="True"
Arguments="$(_EmuTarget) logcat -d"
ToolExe="$(AdbToolExe)"
ToolPath="$(AdbToolPath)"
/>
<Adb
<Xamarin.Android.Tools.BootstrapTasks.Adb
Condition=" '$(_EmuTarget)' != '' "
ContinueOnError="True"
Arguments="$(_EmuTarget) emu kill"
Expand All @@ -83,7 +83,7 @@
ContinueOnError="True"
ProcessId="$(_EmuPid)"
/>
<Adb
<Xamarin.Android.Tools.BootstrapTasks.Adb
Arguments="kill-server"
ContinueOnError="True"
ToolExe="$(AdbToolExe)"
Expand All @@ -107,7 +107,7 @@

<Target Name="DeployUnitTestApks"
Condition=" '@(UnitTestApk)' != '' ">
<Adb
<Xamarin.Android.Tools.BootstrapTasks.Adb
Arguments="$(_AdbTarget) $(AdbOptions) install &quot;%(UnitTestApk.Identity)&quot;"
ToolExe="$(AdbToolExe)"
ToolPath="$(AdbToolPath)"
Expand All @@ -116,7 +116,7 @@

<Target Name="UndeployUnitTestApks"
Condition=" '@(UnitTestApk)' != '' ">
<Adb
<Xamarin.Android.Tools.BootstrapTasks.Adb
Arguments="$(_AdbTarget) $(AdbOptions) uninstall &quot;%(UnitTestApk.Package)&quot;"
ToolExe="$(AdbToolExe)"
ToolPath="$(AdbToolPath)"
Expand Down

0 comments on commit 2b296e9

Please sign in to comment.