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
| # Adds empty TargetAttributes to pbxproj | |
| lane :fix_target_attributes do |opts| | |
| require 'xcodeproj' | |
| xcodeproj_path = opts[:xcodeproj] || File.join(File.dirname(__FILE__), '..', XCODEPROJ_FILE) | |
| UI.important("Fixing TargetAttributes in #{xcodeproj_path}") | |
| project = Xcodeproj::Project.open(xcodeproj_path) | |
| root_object = project.root_object |
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
| struct TestView: View { | |
| @State private var isPressed = false | |
| var body: some View { | |
| List { | |
| Section { | |
| Button(action: { | |
| print("hi") | |
| }, label: { | |
| HStack { |
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
| import test, { before as beforeAllInFile, after as afterAllInFile } from 'ava'; | |
| import { deactivateCustomer, DwollaTransferStatus } from '../src/util/dwolla'; | |
| import { TEST_USER_ID, TEST_USER_EMAIL } from './helper/mockAuth'; | |
| import { getTestPlaidLinkToken } from './helper/plaid'; | |
| import { testFunctions, clearEmulatorDatabase } from './helper/firebase'; | |
| import { getTestUserFundingSources, getTestUserPrivateDocumentData, getTestUserTotalBalance, getTestUserClearedBalance } from './helper/user-data'; | |
| import { getFirstDepositTransactionData } from './helper/transactions'; | |
| import { hasShape, verifyShape } from './helper/assert/joi-schema'; | |
| import { eventually } from './helper/assert/eventually'; | |
| import * as Joi from '@hapi/joi'; |
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
| # file options | |
| --exclude Pods | |
| # format options | |
| --allman false | |
| --elseposition same-line | |
| --header ignore | |
| --patternlet hoist | |
| --indent 2 | |
| --indentcase false |
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
| import Foundation | |
| import ReactiveSwift | |
| struct VoidResult: Codable {} | |
| enum FunctionServiceError: Error { | |
| case encodingError(_ error: Error) | |
| case decodingError(_ error: Error) | |
| case functonCallError(_ error: FunctionsError) | |
| case error(_ error: Error) |
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
| private lazy var actionButton: UIButton = UIButton.create { | |
| // Do | |
| $0.backgroundColor = .blue | |
| $0.setTitle(.., for: .normal) | |
| // maybe add own constraints? | |
| constrainSquare($0, withSideLength: 40) | |
| // Don't | |
| self.view.addSubview($0) |
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
| extension XCUIApplication { | |
| private struct Constants { | |
| // Half way accross the screen and 10% from top | |
| static let topOffset = CGVector(dx: 0.5, dy: 0.1) | |
| // Half way accross the screen and 90% from top | |
| static let bottomOffset = CGVector(dx: 0.5, dy: 0.9) | |
| } | |
| var screenTopCoordinate: XCUICoordinate { |
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
| extension Reactive where Base: Object { | |
| func observe<T>(_ property: String, type: T) -> Observable<T> { | |
| return Observable.create { observer in | |
| let token = self.base.addNotificationBlock { change in | |
| switch change { | |
| case .change(let properties): |
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
| Output with no legacy build api | |
| [12:56:50]: ------------------------------------------------- | |
| [12:56:50]: --- Step: Verifying required fastlane version --- | |
| [12:56:50]: ------------------------------------------------- | |
| [12:56:50]: Your fastlane version 1.105.0 matches the minimum requirement of 1.105.0 ✅ | |
| [12:56:50]: ------------------------------ | |
| [12:56:50]: --- Step: default_platform --- | |
| [12:56:50]: ------------------------------ | |
| [12:56:50]: Driving the lane 'ios alpha' 🚀 |
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
| def replace_project_bundle_identifiers(app_info) | |
| # Should use this to replace bundle ids but currently causes gym to fail | |
| # https://github.com/fastlane/fastlane/issues/6289 | |
| # app_info.all_targets.each { |target| | |
| # update_app_identifier( | |
| # xcodeproj: app_info.xcodeproj, | |
| # plist_path: target.plist_path, | |
| # app_identifier: target.app_id | |
| # ) | |
| # } |
NewerOlder