forked from dotnet/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[xaprepare] Add AndroidToolchain scenario
Usage: `xaprepare.exe -s=AndroidToolchain` The step will *only* install Android SDK+NDK as well as the OpenJDK distribution we provision. No other programs are installed or updated.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
build-tools/xaprepare/xaprepare/Scenarios/Scenario_AndroidToolchain.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters