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 Combine | |
public extension Publisher where Output: Equatable { | |
@discardableResult func sink() -> AnyCancellable { | |
sink( | |
receiveCompletion: { _ in /* No handling needed */}, | |
receiveValue: { _ in /* No handling needed */ }) | |
} | |
} |
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 NavigatorTypeV2 {} | |
struct Device {} | |
protocol Router: class { | |
var navigator: NavigatorTypeV2 { get } | |
} | |
extension Router { | |
public var navigator: NavigatorTypeV2 { fatalError("Not implemented. This router uses a legacy navigator or custom navigation.") } | |
} |
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 NavigatorTypeV2 {} | |
struct Device {} | |
protocol Router: class { | |
var navigator: NavigatorTypeV2 { get } | |
} | |
extension Router { | |
public var navigator: NavigatorTypeV2 { fatalError("Not implemented. This router uses a legacy navigator or custom navigation.") } | |
} |
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 | |
protocol People { | |
var eat: String { get } // 1) try to comment this | |
var dislike: String { get } // 2) Try to comment this | |
} | |
//3) Try to rename one of the above | |
extension People { |
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
fastlane_version "2.14.2" | |
default_platform :ios | |
platform :ios do | |
desc "Runs all the tests" | |
lane :test do | |
scan | |
end | |
desc "Runs all the UI tests" |
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
let request = RegisterDeviceTokenRequest(deviceToken:tokenString, callback: { (response: Result) -> Void in | |
switch response { | |
case .Success: | |
DDLogInfo("📩 ✅ Device token registration") | |
case .Failure(let error): | |
DDLogError("📩 ❌ Device token registration \(error)") | |
} | |
}) | |
NetworkingClient.request(request) |
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
class RegisterDeviceTokenRequest: Request { | |
convenience init(deviceToken: String, callback: RequestCallback) { | |
self.init(path: "add_token", parameters: ["token": deviceToken], callback: callback) | |
} | |
} |
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
- (NSString *)score | |
{ | |
if (self.firstPlayerScore == 3 && self.secondPlayerScore == 3 ) | |
return @"DEUCE"; | |
if (self.firstPlayerScore == 4) | |
return @"GAME PLAYER 1"; | |
if (self.secondPlayerScore == 4) | |
return @"GAME PLAYER 2"; |
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
- (NSString *)score | |
{ | |
NSString *resultScore = nil; | |
if (self.firstPlayerScore == 3 && self.secondPlayerScore == 3 ) | |
resultScore = @"DEUCE"; | |
else if (self.firstPlayerScore == 4) | |
resultScore = @"GAME PLAYER 1"; | |
else if (self.secondPlayerScore == 4) |
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
codesign -f -v -s "Developer ID Application: Sharit Application SL" ./libcurl.framework/Versions/A |
NewerOlder