Skip to content

Instantly share code, notes, and snippets.

View xquezme's full-sized avatar

Sergei Pimenov xquezme

View GitHub Profile
@xquezme
xquezme / YOLOAuthenticationIdentityProviderManager.m
Last active September 17, 2016 16:18
iOS AWS Cognito Custom Login Provider 2.4+
@interface YOLOAuthenticationIdentityProviderManager : NSObject <AWSIdentityProviderManager>
@property (nonatomic, strong, nullable) NSString *token;
@end
@implementation YOLOAuthenticationIdentityProviderManager
- (AWSTask<NSDictionary<NSString *, NSString *> *> *)logins {
if (self.token == nil) {
@xquezme
xquezme / CrashlyticsLogger.swift
Created December 20, 2017 22:26
Crashlytics + CocoaLumberjack Logging
import Foundation
import CocoaLumberjack
import Crashlytics
private func write(string: String) {
CLSLogv("%@", getVaList([string]))
}
@objcMembers
final class CrashlyticsLogger: DDAbstractLogger {