Skip to content

Instantly share code, notes, and snippets.

View vasarhelyia's full-sized avatar

Agnes Vasarhelyi vasarhelyia

View GitHub Profile
@vasarhelyia
vasarhelyia / rect.swift
Last active December 14, 2019 02:26
This produces a circle, not a square
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let rectShape = CAShapeLayer()
let bounds = CGRect(x: 400.0,
y: 400.0,
@vasarhelyia
vasarhelyia / lenses.swift
Created December 12, 2019 19:59
Trying to find a way to "update" properties of immutable objects without losing their type information
import Foundation
class A {
let bool: Bool
let string: String
init(bool: Bool = false, string: String = "A") {
self.bool = bool
self.string = string
}
output_directory ENV['BITRISE_DEPLOY_DIR']
@vasarhelyia
vasarhelyia / crashlytics.rb
Created April 8, 2016 12:38
Using crashlytics action from Bitrise
crashlytics(
crashlytics_path: "./Crashlytics.framework",
api_token: ENV['CRASHLYTICS_API_TOKEN'],
build_secret: ENV['CRASHLYTICS_BUILD_SECRET'],
ipa_path: "#{ENV['BITRISE_DEPLOY_DIR']}/BitriseFastlaneSample.ipa"
)
@vasarhelyia
vasarhelyia / gym.rb
Created April 8, 2016 12:37
Using gym from Bitrise
gym(
scheme: "BitriseFastlaneSample",
configuration: "Release",
output_directory: ENV['BITRISE_DEPLOY_DIR'],
output_name: "BitriseFastlaneSample.ipa",
use_legacy_build_api: "true"
)
@vasarhelyia
vasarhelyia / scan.rb
Created April 8, 2016 12:37
Using scan from Bitrise
scan(
scheme: "BitriseFastlaneSample",
destination: "name=iPhone 5s,OS=latest",
output_directory: ENV['BITRISE_DEPLOY_DIR']
)
@vasarhelyia
vasarhelyia / match.rb
Created April 8, 2016 12:37
Using match from Bitrise
match(
username: ENV['FASTLANE_USERNAME'],
app_identifier: "io.bitrise.BitriseFastlaneSample",
readonly: true,
type: "appstore"
)
@vasarhelyia
vasarhelyia / cert_sigh.rb
Created April 8, 2016 12:36
Using cert & sigh from Bitrise
cert(username: ENV['FASTLANE_USERNAME'])
sigh(
force: true,
username: ENV['FASTLANE_USERNAME']
)
deps:
brew:
- name: node
share-this-step:
envs:
- MY_STEPLIB_REPO_FORK_GIT_URL: https://github.com/vasarhelyia/bitrise-steplib.git
- STEP_ID_IN_STEPLIB: fastlane
- STEP_GIT_VERION_TAG_TO_SHARE: 1.2.3
- STEP_GIT_CLONE_URL: https://github.com/vasarhelyia/steps-fastlane.git
description: This workflow shares the fastlane step
steps:
- script:
inputs: