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
name: dev-hoster runner PoC | |
on: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: |
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
{ | |
"applinks": { | |
"details": [ | |
{ | |
"appIDs": [ | |
"XXXXXXXXXX.com.example.app" | |
], | |
"components": [ | |
{ | |
"/": "/", |
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 XCTest | |
import UIKit | |
@testable import DismissTest | |
class TopLevelUIUtilities { | |
private var rootWindow: UIWindow! | |
func setupTopLevelUI(withViewController viewController: UIViewController) { |
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
[ | |
{ | |
"name": "Four key metrics", | |
"ring": "Adopt", | |
"quadrant": "Techniques", | |
"isNew": false, | |
"description": "asd" | |
} | |
] |
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
rm -rf ~/Library/Developer/Xcode/DerivedData | |
rm -rf ~/Library/Developer/Xcode/Archives | |
rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport | |
rm -rf ~/Library/Caches/com.apple.dt.Xcode | |
xcrun simctl delete unavailable |
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
https://stackoverflow.com/questions/41953300/how-to-delete-the-old-git-history | |
git checkout --orphan temp <f> # checkout to the status of the git repo at commit f; creating a branch named "temp" | |
git commit -m "new root commit" # create a new commit that is to be the new root commit | |
git rebase --onto temp <f> master # now rebase the part of history from <f> to master onthe temp branch | |
git branch -D temp # we don't need the temp branch anymore |
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
public typealias PasswordManagementService = ForgottenPasswordServiceProtocol & ResetPasswordServiceProtocol | |
public typealias AuthenticationService = LoginServiceProtocol & SignUpServiceProtocol & PasswordManagementService & RecaptchaServiceProtocol | |
public typealias UserAccountService = AccountInfoServiceProtocol & ChangePasswordServiceProtocol & ForgottenPasswordServiceProtocol & AccountCreditServiceProtocol | |
public class AccountModule { | |
public init(settings: Settings, | |
authenticationService: AuthenticationService, | |
userAccountService: UserAccountService, | |
socialLoginServices: [SocialLoginService], | |
userInfoProvider: UserInfoProvider) |
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
func base64String(_ input: String) -> String { | |
var base64 = input | |
.replacingOccurrences(of: "-", with: "+") | |
.replacingOccurrences(of: "_", with: "/") | |
switch base64.count % 4 { | |
case 2: | |
base64 = base64.appending("==") | |
case 3: |
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
private func getValidUserAuthorizationInMutualExclusion(completion: @escaping (Result<AuthorizationValue, Error>) -> Void) { | |
semaphore.wait() | |
guard let authenticationInfo = authenticationInfoStore.userAuthenticationInfo else { | |
semaphore.signal() | |
let error = // forge an error for 'missing authorization' | |
completion(.failure(error)) | |
return | |
} | |
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
class AuthorizationValueProvider { | |
private let authenticationInfoStore: AuthenticationInfoStorage | |
private let tokenRefreshAPI: TokenRefreshing | |
private let queue = DispatchQueue(label: <#label#>, qos: .userInteractive) | |
private let semaphore = DispatchSemaphore(value: 1) | |
init(tokenRefreshAPI: TokenRefreshing, | |
authenticationInfoStore: AuthenticationInfoStorage) { |
NewerOlder