From 57ec5cb0367d902d1f485c946a4afa5022c2f7ca Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 13 Dec 2017 09:10:36 -0500 Subject: [PATCH] remove android 26 manual install for ci --- appveyor.yml | 2 -- install-android26.ps1 | 30 ------------------------------ 2 files changed, 32 deletions(-) delete mode 100644 install-android26.ps1 diff --git a/appveyor.yml b/appveyor.yml index 4cfb9e5e6..d1cf10fdc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,3 @@ -init: - - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/bitwarden/mobile/master/install-android26.ps1')) before_build: - nuget restore - IF DEFINED keystore_dec_secret nuget install secure-file -ExcludeVersion diff --git a/install-android26.ps1 b/install-android26.ps1 deleted file mode 100644 index 593c2a6a5..000000000 --- a/install-android26.ps1 +++ /dev/null @@ -1,30 +0,0 @@ -$AndroidToolPath = "${env:ProgramFiles(x86)}\Android\android-sdk\tools\android" - -Function Get-AndroidSDKs() { - $output = & $AndroidToolPath list sdk --all - $sdks = $output |% { - if ($_ -match '(?\d+)- (?.+), revision (?[\d\.]+)') { - $sdk = New-Object PSObject - Add-Member -InputObject $sdk -MemberType NoteProperty -Name Index -Value $Matches.index - Add-Member -InputObject $sdk -MemberType NoteProperty -Name Name -Value $Matches.sdk - Add-Member -InputObject $sdk -MemberType NoteProperty -Name Revision -Value $Matches.revision - $sdk - } - } - $sdks -} - -Function Install-AndroidSDK() { - [CmdletBinding()] - Param( - [Parameter(Mandatory=$true, Position=0)] - [PSObject[]]$sdks - ) - $sdkIndexes = $sdks |% { $_.Index } - $sdkIndexArgument = [string]::Join(',', $sdkIndexes) - Echo 'y' | & $AndroidToolPath update sdk -u -a -t $sdkIndexArgument -} - -# install android 26 -$sdks = Get-AndroidSDKs |? { $_.name -like 'sdk platform*API 26*' } -Install-AndroidSDK -sdks $sdks