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
desc "Change a value in xcodeproj file." | |
desc "Usage: fastlane change_build_value xcodeproj:<file-name> name:<build-setting> from:<old-value> to:<new-value>" | |
lane :change_build_value do |options| | |
xcodeproj = options[:xcodeproj] | |
name = options[:name] | |
from = options[:from] | |
to = options[:to] | |
optional_quotes = '"\\{0,1\\}' | |
replacement_expression = "s/#{name} = #{optional_quotes}#{from}#{optional_quotes};/#{name} = #{to};/g" |
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
import SwiftUI | |
/// AsyncImage that fits its image into a frame, shows spinner while loading, and an error if it occurs | |
struct ResizableAsyncImage: View { | |
let url: URL? | |
let imageContentMode: ContentMode | |
let maxWidth: CGFloat? | |
let maxHeight: CGFloat? | |
var body: some View { |
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
#!/bin/sh | |
show_help() { | |
echo "" | |
echo " $(basename "$0") - Send push notification to an iOS device." | |
echo "" | |
echo " Usage:" | |
echo " $(basename "$0") [options] <app-bundle-id> <cert-file.p12> <cert-password> <push-token>" | |
echo "" | |
echo " Options:" |
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
# Generate push certificates. | |
# Usage: generate_push_certificate <app-bundle-id> <user-email> <cert-password> | |
generate_push_certificate() { | |
app=$1 | |
user=$2 | |
password=$3 | |
fastlane pem -a "$app" -u "$user" -p "$password" | |
convert_push_certificate_to_keychain_format "production_${app}_ios.p12" "$password" | |
} |
OlderNewer