Skip to content

Instantly share code, notes, and snippets.

View mariia-cherniuk's full-sized avatar

Mariia Cherniuk mariia-cherniuk

  • London, United Kingdom
View GitHub Profile
desc "Fetches the provisioning profiles so you can build locally and deploy to your device"
lane :certificates do
match(type: "development", app_identifier: ["your_app_identifier"])
match(type: "adhoc", app_identifier: ["your_app_identifier"])
match(type: "appstore", app_identifier: ["your_app_identifier"])
end
desc "Submit app"
lane :submit_app do
deliver(
build_number: "latest",
skip_metadata: true,
skip_screenshots: true,
skip_binary_upload: true,
force: true,
submit_for_review: true,
phased_release: true,
submit-appstore:
only:
refs:
- develop
needs: [deliver-appstore]
stage: submit-appstore
tags: [osx]
allow_failure: false
script:
- bundle exec fastlane submit_app
module Fastlane
module Actions
class CheckoutBranchForJiraIssueAction < Action
def self.run(params)
key = params[:key].split('/').last
branch_name = self.branch_name(key)
branch = "#{key}_#{branch_name}"
sh "git fetch"
ref_count = sh "git show-ref refs/remotes/origin/#{branch} | wc -l"
@mariia-cherniuk
mariia-cherniuk / IfLetElseView.swift
Last active May 27, 2020 15:24
Nice little utility view that allows you handle optional values in your SwiftUI views
import SwiftUI
@available(iOS 13.0, *)
public struct IfLetElseView<Value, IfContent: View, ElseContent: View>: View {
private let value: Value?
private let ifContent: (Value) -> IfContent
private let elseContent: () -> ElseContent
public init(_ value: Value?,
@ViewBuilder ifContent: @escaping (Value) -> IfContent,