forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into xcode15.3-bump
- Loading branch information
Showing
26 changed files
with
466 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.103-servicing.24108.7" | ||
"version": "8.0.103-servicing.24112.7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
class APIScanConfiguration { | ||
[string[]] $enabledPlatforms | ||
|
||
APIScanConfiguration ( | ||
[string[]] $enabledPlatforms) { | ||
$this.enabledPlatforms = $enabledPlatforms | ||
} | ||
|
||
[string] Create() { | ||
$vars = [ordered]@{} | ||
Write-Host "enabledPlatforms: $($this.enabledPlatforms)" | ||
|
||
foreach ($platform in $this.enabledPlatforms) { | ||
# dictionary with the secrets needed by each matrix | ||
$platformVars = [ordered]@{ | ||
CLIENT_ID = $Env:API_SCAN_CLIENT_ID; | ||
TENANT = $Env:API_SCAN_TENANT; | ||
SECRET = "`$(API_SCAN_SECRET_$($platform.ToUpper()))"; | ||
PLATFORM = $platform.ToUpper(); | ||
} | ||
$vars[$platform] = $platformVars | ||
} | ||
|
||
return $vars | ConvertTo-Json | ||
} | ||
|
||
} | ||
|
||
function Get-APIScanConfiguration { | ||
param | ||
( | ||
[Parameter(Mandatory)] | ||
[string] | ||
[AllowEmptyString()] | ||
$EnabledPlatforms | ||
) | ||
|
||
$arrEnabledPlatforms = -split $EnabledPlatforms | ||
$config = [APIScanConfiguration]::new($arrEnabledPlatforms) | ||
return $config.Create() | ||
} | ||
|
||
# export public functions, other functions are private and should not be used outside the module. | ||
Export-ModuleMember -Function Get-APIScanConfiguration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.