value: 5.0.2
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: true
-- name: winVmImage
- value: Hosted VS2017
-
+
resources:
repositories:
- repository: xamarin-templates
buildConfiguration: $(DefaultBuildConfiguration)
buildPlatform: $(DefaultBuildPlatform)
provisionatorPath : 'build/provisioning/provisioning.csx'
-
+
- template: build/steps/build-android.yml
parameters:
name: android_legacy
string monoVersion = $"{monoMajorVersion}.{monoPatchVersion}";
string monoSDK_windows = $"https://download.mono-project.com/archive/{monoMajorVersion}/windows-installer/mono-{monoVersion}-x64-0.msi";
-string androidSDK_windows = "https://aka.ms/xamarin-android-commercial-d15-9-windows";
+string androidSDK_windows = "";//"https://aka.ms/xamarin-android-commercial-d15-9-windows";
string iOSSDK_windows = "https://download.visualstudio.microsoft.com/download/pr/71f33151-5db4-49cc-ac70-ba835a9f81e2/d256c6c50cd80ec0207783c5c7a4bc2f/xamarin.visualstudio.apple.sdk.4.12.3.83.vsix";
string macSDK_windows = "";
string iosSDK = IsRunningOnWindows() ? "" : iOSSDK_macos;
string macSDK = IsRunningOnWindows() ? "" : macSDK_macos;
-string[] androidSdkManagerInstalls = new string[0]; //new [] { "platforms;android-29"};
+string[] androidSdkManagerInstalls = new string[0];//new [] { "platforms;android-24", "platforms;android-28"};
//////////////////////////////////////////////////////////////////////
// TASKS
});
Task("provision-androidsdk")
+ .Description("Install Xamarin.Android SDK")
.Does(async () =>
{
Information ("ANDROID_HOME: {0}", ANDROID_HOME);
SkipVersionCheck = true
};
- try { AcceptLicenses (androidSdkSettings); } catch { }
+
+ AcceptLicenses (androidSdkSettings);
+
+ AndroidSdkManagerUpdateAll (androidSdkSettings);
+
+ AcceptLicenses (androidSdkSettings);
AndroidSdkManagerInstall (androidSdkManagerInstalls, androidSdkSettings);
}
}
Item(XreItem.Java_OpenJDK_1_8_0_25);
+AndroidSdk ().ApiLevel((AndroidApiLevel)24);
+AndroidSdk ().ApiLevel((AndroidApiLevel)28);
AndroidSdk ().ApiLevel((AndroidApiLevel)29);
void ln (string source, string destination)
Console.WriteLine ($"ln -sf {source} {destination}");
if (!Config.DryRun)
Exec ("/bin/ln", "-sf", source, destination);
-}
\ No newline at end of file
+}
dependsOn: ${{ parameters.dependsOn }}
steps:
- checkout: self
+ clean: true
- task: xamops.azdevex.provisionator-task.provisionator@1
displayName: 'Provisionator'
steps:
- checkout: self
+ clean: true
- task: xamops.azdevex.provisionator-task.provisionator@1
displayName: 'Provisionator'
BuildConfiguration: ${{ parameters.releaseBuildConfiguration }}
BuildPlatform: ${{ parameters.buildPlatform }}
steps:
- - script: build.cmd -Target provision
+ - checkout: self
+ clean: true
+ - script: build.cmd -Target provision --verbosity=diagnostic
displayName: 'Cake Provision'
condition: eq(variables['provisioning'], 'false')
-
+
- task: xamops.azdevex.provisionator-task.provisionator@1
displayName: 'Provisionator'
condition: eq(variables['provisioning'], 'true')
solution: ${{ parameters.slnPath }}
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
- msbuildArguments: ${{ parameters.msbuildExtraArguments }} /p:JavaSdkDirectory="$(JAVA_HOME_8_X64)"
+ msbuildArguments: ${{ parameters.msbuildExtraArguments }}
- task: VSTest@2
displayName: 'Unit Tests'