Skip to content

Commit 044bbe5

Browse files
authored
[build] Bump several Android SDK components (#4819)
System images: * x86-29: bumped to release 7 Tools: * platform-tools: bumped to v30.0.2
1 parent 2ef770d commit 044bbe5

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

Configuration.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@
9999
<AllSupportedTargetAndroidAbis>$(AllSupported32BitTargetAndroidAbis);$(AllSupported64BitTargetAndroidAbis)</AllSupportedTargetAndroidAbis>
100100
<XABuildToolsVersion>29.0.2</XABuildToolsVersion>
101101
<XABuildToolsFolder Condition="'$(XABuildToolsFolder)' == ''">29.0.2</XABuildToolsFolder>
102-
<XAPlatformToolsVersion>29.0.5</XAPlatformToolsVersion>
102+
103+
<!-- For some reason, the URL for the *macOS* version of platform-tools 30.0.2 is prefixed with what appears to be a GIT commit hash or some other checksum...
104+
Linux and Windows packages don't have any prefix, but the macOS thing forces us to have *some* mechanism to handle this... -->
105+
<XAPlatformToolsPackagePrefix Condition=" '$(HostOS)' == 'Darwin' ">b2be9c80582174e645d3736daa0d44d8610b38a8.</XAPlatformToolsPackagePrefix>
106+
<XAPlatformToolsVersion>30.0.2</XAPlatformToolsVersion>
103107
<XAIncludeProprietaryBits Condition="'$(XAIncludeProprietaryBits)' == ''">False</XAIncludeProprietaryBits>
104108
<XABundleToolVersion Condition="'$(XABundleToolVersion)' == ''">0.14.0</XABundleToolVersion>
105109
<XAManifestMergerToolVersion Condition="'$(XAManifestMergerToolVersion)' == ''">26.5.0</XAManifestMergerToolVersion>

build-tools/xaprepare/xaprepare/Application/KnownProperties.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ static class KnownProperties
4444
public const string XAInstallPrefix = "XAInstallPrefix";
4545
public const string XAPackagesDir = "XAPackagesDir";
4646
public const string XAPlatformToolsVersion = "XAPlatformToolsVersion";
47+
public const string XAPlatformToolsPackagePrefix = "XAPlatformToolsPackagePrefix";
4748
}
4849
}

build-tools/xaprepare/xaprepare/Application/Properties.Defaults.cs.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ namespace Xamarin.Android.Prepare
4848
properties.Add (KnownProperties.XAInstallPrefix, StripQuotes (@"@XAInstallPrefix@"));
4949
properties.Add (KnownProperties.XAPackagesDir, StripQuotes (@"@XAPackagesDir@"));
5050
properties.Add (KnownProperties.XAPlatformToolsVersion, StripQuotes ("@XAPlatformToolsVersion@"));
51+
properties.Add (KnownProperties.XAPlatformToolsPackagePrefix, StripQuotes ("@XAPlatformToolsPackagePrefix@"));
5152
}
5253

5354
string StripQuotes (string input)

build-tools/xaprepare/xaprepare/ConfigAndData/Dependencies/AndroidToolchain.cs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,24 @@ public AndroidToolchain ()
2424
string XABuildToolsFolder = GetRequiredProperty (KnownProperties.XABuildToolsFolder);
2525
string XABuildToolsVersion = GetRequiredProperty (KnownProperties.XABuildToolsVersion);
2626
string XAPlatformToolsVersion = GetRequiredProperty (KnownProperties.XAPlatformToolsVersion);
27+
string XAPlatformToolsPackagePrefix = Context.Instance.Properties [KnownProperties.XAPlatformToolsPackagePrefix] ?? String.Empty;
2728

29+
// Upstream manifests with version information:
30+
//
31+
// https://dl-ssl.google.com/android/repository/repository2-1.xml
32+
// * platform APIs
33+
// * build-tools
34+
// * command-line tools
35+
// * sdk-tools
36+
// * platform-tools
37+
//
38+
// https://dl-ssl.google.com/android/repository/addon2-1.xml
39+
// * android_m2repository_r47
40+
//
41+
// https://dl-ssl.google.com/android/repository/sys-img/android/sys-img2-1.xml
42+
// https://dl-ssl.google.com/android/repository/sys-img/google_apis/sys-img2-1.xml
43+
// * system images
44+
//
2845
Components = new List<AndroidToolchainComponent> {
2946
new AndroidPlatformComponent ("android-2.3.3_r02", apiLevel: "10", pkgRevision: "2"),
3047
new AndroidPlatformComponent ("android-15_r05", apiLevel: "15", pkgRevision: "5"),
@@ -46,13 +63,13 @@ public AndroidToolchain ()
4663

4764
new AndroidToolchainComponent ("docs-24_r01", destDir: "docs", pkgRevision: "1"),
4865
new AndroidToolchainComponent ("android_m2repository_r47", destDir: Path.Combine ("extras", "android", "m2repository"), pkgRevision: "47.0.0"),
49-
new AndroidToolchainComponent ("x86-29_r06", destDir: Path.Combine ("system-images", "android-29", "default", "x86"), relativeUrl: new Uri ("sys-img/android/", UriKind.Relative), pkgRevision: "6"),
66+
new AndroidToolchainComponent ($"x86-29_r07-{osTag}", destDir: Path.Combine ("system-images", "android-29", "default", "x86"), relativeUrl: new Uri ("sys-img/android/", UriKind.Relative), pkgRevision: "7"),
5067
new AndroidToolchainComponent ($"x86_64-29_r07-{osTag}", destDir: Path.Combine ("system-images", "android-29", "default", "x86_64"), relativeUrl: new Uri ("sys-img/android/", UriKind.Relative), pkgRevision: "7"),
5168
new AndroidToolchainComponent ($"android-ndk-r{AndroidNdkVersion}-{osTag}-x86_64", destDir: AndroidNdkDirectory, pkgRevision: AndroidPkgRevision),
5269
new AndroidToolchainComponent ($"build-tools_r{XABuildToolsVersion}-{altOsTag}", destDir: Path.Combine ("build-tools", XABuildToolsFolder), isMultiVersion: true),
5370
new AndroidToolchainComponent ($"commandlinetools-{cltOsTag}-{CommandLineToolsVersion}",
5471
destDir: Path.Combine ("cmdline-tools", CommandLineToolsFolder), isMultiVersion: true),
55-
new AndroidToolchainComponent ($"platform-tools_r{XAPlatformToolsVersion}-{osTag}", destDir: "platform-tools", pkgRevision: XAPlatformToolsVersion),
72+
new AndroidToolchainComponent ($"{XAPlatformToolsPackagePrefix}platform-tools_r{XAPlatformToolsVersion}-{osTag}", destDir: "platform-tools", pkgRevision: XAPlatformToolsVersion),
5673
new AndroidToolchainComponent ($"sdk-tools-{osTag}-4333796", destDir: "tools", pkgRevision: "26.1.1"),
5774
new AndroidToolchainComponent ($"emulator-{osTag}-{EmulatorVersion}", destDir: "emulator", pkgRevision: EmulatorPkgRevision),
5875
new AndroidToolchainComponent ($"cmake-{AndroidCmakeVersion}-{osTag}-x86_64", destDir: Path.Combine ("cmake", AndroidCmakeVersionPath), isMultiVersion: true, noSubdirectory: true, pkgRevision: "3.10.2"),

build-tools/xaprepare/xaprepare/xaprepare.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
<Replacement Include="@XAPlatformToolsVersion@=$(XAPlatformToolsVersion)" />
8181
<Replacement Include="@XAInstallPrefix@=$(XAInstallPrefix)" />
8282
<Replacement Include="@XABinRelativeInstallPrefix@=$(_XABinRelativeInstallPrefix)" />
83+
<Replacement Include="@XAPlatformToolsPackagePrefix@=$(XAPlatformToolsPackagePrefix)" />
8384
</ItemGroup>
8485

8586
<ReplaceFileContents

0 commit comments

Comments
 (0)