Skip to content

Commit

Permalink
[build] Bump $(XABuildToolsVersion)=35 (#9071)
Browse files Browse the repository at this point in the history
Context: https://developer.android.com/tools/releases/build-tools
Context: https://dl.google.com/android/repository/repository2-3.xml

Update `$(XABuildToolsVersion)` to 35, which is the latest version of
the Android SDK Build Tools.

The `build-tools_r35*.zip` packages changed their filename convention
from `build-tools_{version}-{os}.zip` to
`build-tools_{version}_{os}.zip`; note `_` instead of `-` between
version and OS.  Update build-tools/xaprepare and src/aapt2
accordingly.
  • Loading branch information
jonpryor authored Jul 2, 2024
1 parent d1ccddc commit 16c9adc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Configuration.props
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
<XABuildToolsPackagePrefixLinux></XABuildToolsPackagePrefixLinux>
<XABuildToolsPackagePrefix Condition=" '$(HostOS)' == 'Darwin' ">$(XABuildToolsPackagePrefixMacOS)</XABuildToolsPackagePrefix>
<XABuildToolsPackagePrefix Condition=" '$(HostOS)' == 'Windows' ">$(XABuildToolsPackagePrefixWindows)</XABuildToolsPackagePrefix>
<XABuildToolsVersion>34</XABuildToolsVersion>
<XABuildToolsFolder Condition="'$(XABuildToolsFolder)' == ''">34.0.0</XABuildToolsFolder>
<XABuildToolsVersion>35</XABuildToolsVersion>
<XABuildToolsFolder Condition="'$(XABuildToolsFolder)' == ''">35.0.0</XABuildToolsFolder>
<XAPlatformToolsPackagePrefix Condition=" '$(HostOS)' == 'Darwin' "></XAPlatformToolsPackagePrefix>
<XAPlatformToolsVersion>34.0.5</XAPlatformToolsVersion>
<XABundleToolVersion Condition="'$(XABundleToolVersion)' == ''">1.15.1</XABundleToolVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public AndroidToolchain ()
buildToolName: $"android-ndk-r{AndroidNdkVersion}",
buildToolVersion: AndroidPkgRevision
),
new AndroidToolchainComponent ($"{XABuildToolsPackagePrefix}build-tools_r{XABuildToolsVersion}-{altOsTag}",
new AndroidToolchainComponent ($"{XABuildToolsPackagePrefix}build-tools_r{XABuildToolsVersion}_{altOsTag}",
destDir: Path.Combine ("build-tools", XABuildToolsFolder),
isMultiVersion: true,
buildToolName: "android-sdk-build-tools",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public Step_Get_Android_BuildTools ()
string XABuildToolsPackagePrefixWindows = Context.Instance.Properties [KnownProperties.XABuildToolsPackagePrefixWindows] ?? string.Empty;
string XABuildToolsPackagePrefixLinux = Context.Instance.Properties [KnownProperties.XABuildToolsPackagePrefixLinux] ?? string.Empty;

packages.Add ((package: $"build-tools_r{XABuildToolsVersion}-macosx.zip", prefix: XABuildToolsPackagePrefixMacOS));
packages.Add ((package: $"build-tools_r{XABuildToolsVersion}-windows.zip", prefix: XABuildToolsPackagePrefixWindows));
packages.Add ((package: $"build-tools_r{XABuildToolsVersion}-linux.zip", prefix: XABuildToolsPackagePrefixLinux));
packages.Add ((package: $"build-tools_r{XABuildToolsVersion}_macosx.zip", prefix: XABuildToolsPackagePrefixMacOS));
packages.Add ((package: $"build-tools_r{XABuildToolsVersion}_windows.zip", prefix: XABuildToolsPackagePrefixWindows));
packages.Add ((package: $"build-tools_r{XABuildToolsVersion}_linux.zip", prefix: XABuildToolsPackagePrefixLinux));
}

protected override async Task<bool> Execute (Context context)
Expand Down
6 changes: 3 additions & 3 deletions src/aapt2/aapt2.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
</PropertyGroup>

<ItemGroup>
<_BuildTools Include="build-tools_r$(XABuildToolsVersion)-macosx.zip">
<_BuildTools Include="build-tools_r$(XABuildToolsVersion)_macosx.zip">
<Platform>osx</Platform>
<HostOS>Darwin</HostOS>
<FilesToExtract>aapt2</FilesToExtract>
</_BuildTools>
<_BuildTools Include="build-tools_r$(XABuildToolsVersion)-linux.zip">
<_BuildTools Include="build-tools_r$(XABuildToolsVersion)_linux.zip">
<Platform>linux</Platform>
<HostOS>Linux</HostOS>
<FilesToExtract>aapt2</FilesToExtract>
</_BuildTools>
<_BuildTools Include="build-tools_r$(XABuildToolsVersion)-windows.zip">
<_BuildTools Include="build-tools_r$(XABuildToolsVersion)_windows.zip">
<Platform>windows</Platform>
<HostOS></HostOS>
<FilesToExtract>aapt2.exe</FilesToExtract>
Expand Down

0 comments on commit 16c9adc

Please sign in to comment.