Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
Added CryptoSwift.
Browse files Browse the repository at this point in the history
Updated pods.
  • Loading branch information
Mikunj committed May 1, 2019
1 parent 1da2265 commit aed207f
Show file tree
Hide file tree
Showing 186 changed files with 24,727 additions and 13,816 deletions.
48 changes: 48 additions & 0 deletions CocoaLumberjack/Classes/CLI/CLIColor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Software License Agreement (BSD License)
//
// Copyright (c) 2010-2019, Deusty, LLC
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms,
// with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Neither the name of Deusty nor the names of its contributors may be used
// to endorse or promote products derived from this software without specific
// prior written permission of Deusty, LLC.

#if TARGET_OS_OSX

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>

/**
* This class represents an NSColor replacement for CLI projects that don't link with AppKit
**/
@interface CLIColor : NSObject

/**
* Convenience method for creating a `CLIColor` instance from RGBA params
*
* @param red red channel, between 0 and 1
* @param green green channel, between 0 and 1
* @param blue blue channel, between 0 and 1
* @param alpha alpha channel, between 0 and 1
*/
+ (CLIColor *)colorWithCalibratedRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;

/**
* Get the RGBA components from a `CLIColor`
*
* @param red red channel, between 0 and 1
* @param green green channel, between 0 and 1
* @param blue blue channel, between 0 and 1
* @param alpha alpha channel, between 0 and 1
*/
- (void)getRed:(CGFloat *)red green:(CGFloat *)green blue:(CGFloat *)blue alpha:(CGFloat *)alpha NS_SWIFT_NAME(get(red:green:blue:alpha:));

@end

#endif
59 changes: 59 additions & 0 deletions CocoaLumberjack/Classes/CLI/CLIColor.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Software License Agreement (BSD License)
//
// Copyright (c) 2010-2019, Deusty, LLC
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms,
// with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Neither the name of Deusty nor the names of its contributors may be used
// to endorse or promote products derived from this software without specific
// prior written permission of Deusty, LLC.

#if TARGET_OS_OSX

#import "CLIColor.h"

@interface CLIColor () {
CGFloat _red, _green, _blue, _alpha;
}

@end


@implementation CLIColor

+ (CLIColor *)colorWithCalibratedRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha {
CLIColor *color = [CLIColor new];

color->_red = red;
color->_green = green;
color->_blue = blue;
color->_alpha = alpha;
return color;
}

- (void)getRed:(CGFloat *)red green:(CGFloat *)green blue:(CGFloat *)blue alpha:(CGFloat *)alpha {
if (red) {
*red = _red;
}

if (green) {
*green = _green;
}

if (blue) {
*blue = _blue;
}

if (alpha) {
*alpha = _alpha;
}
}

@end

#endif
41 changes: 29 additions & 12 deletions CocoaLumberjack/Classes/CocoaLumberjack.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Software License Agreement (BSD License)
//
// Copyright (c) 2010-2016, Deusty, LLC
// Copyright (c) 2010-2019, Deusty, LLC
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms,
Expand Down Expand Up @@ -59,28 +59,45 @@

#import <Foundation/Foundation.h>

//! Project version number for CocoaLumberjack.
FOUNDATION_EXPORT double CocoaLumberjackVersionNumber;

//! Project version string for CocoaLumberjack.
FOUNDATION_EXPORT const unsigned char CocoaLumberjackVersionString[];

// Disable legacy macros
#ifndef DD_LEGACY_MACROS
#define DD_LEGACY_MACROS 0
#endif

// Core
#import "DDLog.h"
#import <CocoaLumberjack/DDLog.h>

// Main macros
#import "DDLogMacros.h"
#import "DDAssertMacros.h"
#import <CocoaLumberjack/DDLogMacros.h>
#import <CocoaLumberjack/DDAssertMacros.h>

// Capture ASL
#import "DDASLLogCapture.h"
#import <CocoaLumberjack/DDASLLogCapture.h>

// Loggers
#import "DDTTYLogger.h"
#import "DDASLLogger.h"
#import "DDFileLogger.h"
#import "DDOSLogger.h"
#import <CocoaLumberjack/DDLoggerNames.h>

#import <CocoaLumberjack/DDTTYLogger.h>
#import <CocoaLumberjack/DDASLLogger.h>
#import <CocoaLumberjack/DDFileLogger.h>
#import <CocoaLumberjack/DDOSLogger.h>

// Extensions
#import <CocoaLumberjack/DDContextFilterLogFormatter.h>
#import <CocoaLumberjack/DDDispatchQueueLogFormatter.h>
#import <CocoaLumberjack/DDMultiFormatter.h>
#import <CocoaLumberjack/DDFileLogger+Buffering.h>

// CLI
#if __has_include("CLIColor.h") && TARGET_OS_OSX
#import "CLIColor.h"
#endif
#import <CocoaLumberjack/CLIColor.h>

// etc
#import <CocoaLumberjack/DDAbstractDatabaseLogger.h>
#import <CocoaLumberjack/DDLog+LOGV.h>
#import <CocoaLumberjack/DDLegacyMacros.h>
95 changes: 0 additions & 95 deletions CocoaLumberjack/Classes/CocoaLumberjack.swift

This file was deleted.

5 changes: 3 additions & 2 deletions CocoaLumberjack/Classes/DDASLLogCapture.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Software License Agreement (BSD License)
//
// Copyright (c) 2010-2016, Deusty, LLC
// Copyright (c) 2010-2019, Deusty, LLC
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms,
Expand All @@ -13,13 +13,14 @@
// to endorse or promote products derived from this software without specific
// prior written permission of Deusty, LLC.

#import "DDASLLogger.h"
#import <CocoaLumberjack/DDASLLogger.h>

@protocol DDLogger;

/**
* This class provides the ability to capture the ASL (Apple System Logs)
*/
API_DEPRECATED("Use DDOSLogger instead", macosx(10.4,10.12), ios(2.0,10.0), watchos(2.0,3.0), tvos(9.0,10.0))
@interface DDASLLogCapture : NSObject

/**
Expand Down
Loading

0 comments on commit aed207f

Please sign in to comment.