Skip to content

Commit

Permalink
[Ubuntu] Remove old android SDK versions (actions#9094)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Ayupov authored Jan 3, 2024
1 parent 20d2e98 commit a9b737b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
3 changes: 0 additions & 3 deletions images/ubuntu/scripts/build/install-android-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ add_filtered_instalaltion_components $minimum_build_tool_version "${available_bu
# Install components
echo "y" | $SDKMANAGER ${components[@]}

# Old skdmanager from sdk tools doesn't work with Java > 8, set version 8 explicitly
sed -i "2i export JAVA_HOME=${JAVA_HOME_8_X64}" ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager

# Add required permissions
chmod -R a+rwx ${ANDROID_SDK_ROOT}

Expand Down
4 changes: 0 additions & 4 deletions images/ubuntu/scripts/docs-gen/SoftwareReport.Android.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ function Build-AndroidTable {
"Package" = "Android SDK Platforms"
"Version" = Get-AndroidPlatformVersions -PackageInfo $packageInfo
},
@{
"Package" = "Android SDK Tools"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Android SDK Tools"
},
@{
"Package" = "Android Support Repository"
"Version" = Get-AndroidPackageVersions -PackageInfo $packageInfo -MatchedString "Android Support Repository"
Expand Down
4 changes: 0 additions & 4 deletions images/ubuntu/scripts/tests/Android.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ Describe "Android" {

Context "SDKManagers" {
$testCases = @(
@{
PackageName = "SDK tools"
Sdkmanager = "$env:ANDROID_HOME/tools/bin/sdkmanager"
},
@{
PackageName = "Command-line tools"
Sdkmanager = "$env:ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager"
Expand Down
4 changes: 2 additions & 2 deletions images/ubuntu/toolsets/toolset-2004.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
},
"android": {
"cmdline-tools": "commandlinetools-linux-9477386_latest.zip",
"platform_min_version": "27",
"build_tools_min_version": "27.0.0",
"platform_min_version": "31",
"build_tools_min_version": "31.0.0",
"extra_list": [
"android;m2repository",
"google;m2repository",
Expand Down
4 changes: 2 additions & 2 deletions images/ubuntu/toolsets/toolset-2204.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
},
"android": {
"cmdline-tools": "commandlinetools-linux-9477386_latest.zip",
"platform_min_version": "27",
"build_tools_min_version": "27.0.0",
"platform_min_version": "31",
"build_tools_min_version": "31.0.0",
"extra_list": [
"android;m2repository",
"google;m2repository",
Expand Down

0 comments on commit a9b737b

Please sign in to comment.