Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;

namespace Xamarin.Android.Prepare
{
[Scenario (isDefault: false)]
partial class Scenario_AndroidToolchain : ScenarioNoStandardEndSteps
{
public Scenario_AndroidToolchain ()
: base ("AndroidToolchain", "Install Android SDK, NDK and Corretto JDK.", Context.Instance)
{}

protected override void AddSteps (Context context)
{
Steps.Add (new Step_Android_SDK_NDK ());
Steps.Add (new Step_InstallCorrettoOpenJDK ());

// disable installation of missing programs...
context.SetCondition (KnownConditions.AllowProgramInstallation, false);

// ...but do not signal an error when any are missing
context.SetCondition (KnownConditions.IgnoreMissingPrograms, true);
}
}
}
1 change: 1 addition & 0 deletions build-tools/xaprepare/xaprepare/xaprepare.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
<Compile Include="ConfigAndData\Runtimes.cs" />
<Compile Include="OperatingSystems\OS.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Scenarios\Scenario_AndroidToolchain.cs" />
<Compile Include="Scenarios\Scenario_PrepareExternalGitDependencies.cs" />
<Compile Include="Scenarios\Scenario_PrepareImageDependencies.cs" />
<Compile Include="Scenarios\Scenario_Required.cs" />
Expand Down