This file contains hidden or 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
| #!/usr/bin/env pwsh | |
| param( | |
| [Parameter(Mandatory = $true)][string] $AppName, | |
| [Parameter(Mandatory = $true)][int] $BuildNumber | |
| ) | |
| $ErrorActionPreference = 'Stop' | |
| $outDir = Join-Path '.' 'artifacts' 'ios' |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <TargetFrameworks>net6.0-ios</TargetFrameworks> | |
| <IsPackable>false</IsPackable> | |
| <IsBindingProject>true</IsBindingProject> | |
| <NoBindingEmbedding>true</NoBindingEmbedding> | |
| <BindingPlatform>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</BindingPlatform> | |
| </PropertyGroup> | |
| <ItemGroup Condition="'$(BindingPlatform)' == 'ios'"> |
This file contains hidden or 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
| print("attachment [\(NSAttributedString.Key.attachment.rawValue)]") | |
| print("backgroundColor [\(NSAttributedString.Key.backgroundColor.rawValue)]") | |
| print("baselineOffset [\(NSAttributedString.Key.baselineOffset.rawValue)]") | |
| // print("cursor [\(NSAttributedString.Key.cursor.rawValue)]") // mac | |
| print("expansion [\(NSAttributedString.Key.expansion.rawValue)]") | |
| print("font [\(NSAttributedString.Key.font.rawValue)]") | |
| print("foregroundColor [\(NSAttributedString.Key.foregroundColor.rawValue)]") | |
| // print("glyphInfo [\(NSAttributedString.Key.glyphInfo.rawValue)]") // mac | |
| print("kern [\(NSAttributedString.Key.kern.rawValue)]") | |
| print("ligature [\(NSAttributedString.Key.ligature.rawValue)]") |
This file contains hidden or 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
| package com.example.myapplication | |
| import android.os.Bundle | |
| import android.util.Log | |
| import android.view.Menu | |
| import com.google.android.material.bottomnavigation.BottomNavigationView | |
| import androidx.appcompat.app.AppCompatActivity | |
| import androidx.fragment.app.Fragment | |
| import androidx.fragment.app.FragmentContainerView | |
| import androidx.navigation.NavGraph |
This file contains hidden or 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
| param( | |
| [switch] $Rollback | |
| ) | |
| ################################################################################ | |
| # Config | |
| ################################################################################ | |
| $WebsiteName = "FIXME: IIS WEBSITE NAME" | |
| $WaitForWebsiteTimeoutSeconds = 60 |
This file contains hidden or 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
| function ns() { | |
| local pkgs="" | |
| for arg in "$@"; do | |
| local pkgs="nixpkgs#${arg} ${pkgs}" | |
| done | |
| echo "nix shell ${pkgs}" | |
| nix shell $pkgs | |
| } |
This file contains hidden or 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
| { config, lib, pkgs, options, ... }: | |
| let | |
| carthage = pkgs.stdenv.mkDerivation rec { | |
| pname = "carthage"; | |
| version = "0.38.0"; | |
| src = pkgs.fetchurl { | |
| url = "https://github.com/Carthage/Carthage/releases/download/${version}/Carthage.pkg"; | |
| sha256 = "1d5s160vbd3c3fvx93zq7aw0qgp1l95ri3ayskjg7cc8c2qk1s0f"; | |
| }; |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # NOTE(jpr): this is adapted from the following comments | |
| # https://github.com/dotnet/xamarin/issues/26#issuecomment-757981580 | |
| # https://github.com/dotnet/maui/discussions/2364#discussioncomment-1286275 | |
| readonly _mode="${1:-}" | |
| readonly _provided_udid="${2:-}" |
This file contains hidden or 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
| function delay(delayInms) { | |
| return new Promise(resolve => { | |
| setTimeout(() => { | |
| resolve(); | |
| }, delayInms); | |
| }); | |
| } | |
| function save(filename, data) { | |
| const blob = new Blob([data], {type: 'text/csv'}); |
This file contains hidden or 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
| #!/usr/bin/env nix-shell | |
| #!nix-shell -i bash -p bash | |
| set -euo pipefail | |
| readonly _mode="${1:-}" | |
| case "$_mode" in | |
| 'pre' | 'post' | 'compare') | |
| readonly mode="${_mode}" | |
| ;; |