Skip to content

Commit

Permalink
Merge pull request #7 from natan/master
Browse files Browse the repository at this point in the history
Updated for CocoaLumberjack 2.0
  • Loading branch information
burczyk committed Nov 11, 2015
2 parents 64640fb + 0d305c0 commit c4334b1
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 102 deletions.
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

target "UIForLumberjack" do

pod 'CocoaLumberjack'
pod 'CocoaLumberjack', '~> 2.0'

end

Expand Down
18 changes: 10 additions & 8 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
PODS:
- CocoaLumberjack (1.7.0):
- CocoaLumberjack/Core
- CocoaLumberjack/Extensions
- CocoaLumberjack/Core (1.7.0)
- CocoaLumberjack/Extensions (1.7.0):
- CocoaLumberjack (2.0.1):
- CocoaLumberjack/Default (= 2.0.1)
- CocoaLumberjack/Extensions (= 2.0.1)
- CocoaLumberjack/Core (2.0.1)
- CocoaLumberjack/Default (2.0.1):
- CocoaLumberjack/Core
- CocoaLumberjack/Extensions (2.0.1):
- CocoaLumberjack/Default

DEPENDENCIES:
- CocoaLumberjack
- CocoaLumberjack (~> 2.0)

SPEC CHECKSUMS:
CocoaLumberjack: be87113f649942f020a37c061c58009b6ee5ff68
CocoaLumberjack: 019d1361244274a6138c788c6cb80baabc13fb8f

COCOAPODS: 0.29.0
COCOAPODS: 0.38.2
6 changes: 3 additions & 3 deletions UIForLumberjack.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "UIForLumberjack"
s.version = "1.0.2"
s.version = "1.0.3"
s.summary = "iOS UI library to display CocoaLumberjack logs on iOS device"

s.description = <<-DESC
Expand All @@ -16,10 +16,10 @@ Pod::Spec.new do |s|
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Kamil Burczyk" => "[email protected]" }
s.platform = :ios, '6.0'
s.source = { :git => "https://github.com/burczyk/UIForLumberjack.git", :tag => "1.0.2" }
s.source = { :git => "https://github.com/burczyk/UIForLumberjack.git", :tag => "1.0.3" }
s.source_files = 'UIForLumberjack', 'UIForLumberjack/**/*.{h,m}'
s.exclude_files = 'UIForLumberjackExample'
s.frameworks = 'UIKit', 'Foundation'
s.requires_arc = true
s.dependency 'CocoaLumberjack', '~> 1.7'
s.dependency 'CocoaLumberjack', '~> 2.0'
end
29 changes: 19 additions & 10 deletions UIForLumberjack.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
1CFB229FA4B74E1981FB3493 /* Pods-UIForLumberjack.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-UIForLumberjack.xcconfig"; path = "Pods/Pods-UIForLumberjack.xcconfig"; sourceTree = "<group>"; };
0824C143D35B3C8F66986F85 /* Pods-UIForLumberjack.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-UIForLumberjack.debug.xcconfig"; path = "Pods/Target Support Files/Pods-UIForLumberjack/Pods-UIForLumberjack.debug.xcconfig"; sourceTree = "<group>"; };
7221CEBF0C994F39AA20C1E8 /* libPods-UIForLumberjack.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-UIForLumberjack.a"; sourceTree = BUILT_PRODUCTS_DIR; };
8E809EC11887276900884B89 /* libUIForLumberjack.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libUIForLumberjack.a; sourceTree = BUILT_PRODUCTS_DIR; };
8E809EC41887276900884B89 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
Expand All @@ -62,6 +62,7 @@
8E809F0F18872AE200884B89 /* UIForLumberjackTestAppTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UIForLumberjackTestAppTests-Info.plist"; sourceTree = "<group>"; };
8E809F1118872AE200884B89 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
8E809F1318872AE200884B89 /* UIForLumberjackTestAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UIForLumberjackTestAppTests.m; sourceTree = "<group>"; };
A87A8F4EB0D7F4FB35B729EB /* Pods-UIForLumberjack.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-UIForLumberjack.release.xcconfig"; path = "Pods/Target Support Files/Pods-UIForLumberjack/Pods-UIForLumberjack.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -97,7 +98,7 @@
8E809F0D18872AE200884B89 /* UIForLumberjackTestAppTests */,
8E809EC31887276900884B89 /* Frameworks */,
8E809EC21887276900884B89 /* Products */,
1CFB229FA4B74E1981FB3493 /* Pods-UIForLumberjack.xcconfig */,
B761F80AF2CF597935AB5852 /* Pods */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -177,6 +178,15 @@
name = "Supporting Files";
sourceTree = "<group>";
};
B761F80AF2CF597935AB5852 /* Pods */ = {
isa = PBXGroup;
children = (
0824C143D35B3C8F66986F85 /* Pods-UIForLumberjack.debug.xcconfig */,
A87A8F4EB0D7F4FB35B729EB /* Pods-UIForLumberjack.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -223,7 +233,7 @@
8E809EB91887276900884B89 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0500;
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = Sigmapoint;
TargetAttributes = {
8E809ED01887276900884B89 = {
Expand Down Expand Up @@ -288,7 +298,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Pods-UIForLumberjack-resources.sh\"\n";
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-UIForLumberjack/Pods-UIForLumberjack-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -344,7 +354,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand All @@ -358,6 +367,7 @@
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
Expand All @@ -382,7 +392,6 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -412,7 +421,7 @@
};
8E809EE51887276900884B89 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 1CFB229FA4B74E1981FB3493 /* Pods-UIForLumberjack.xcconfig */;
baseConfigurationReference = 0824C143D35B3C8F66986F85 /* Pods-UIForLumberjack.debug.xcconfig */;
buildSettings = {
DSTROOT = /tmp/UIForLumberjack.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand All @@ -425,7 +434,7 @@
};
8E809EE61887276900884B89 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 1CFB229FA4B74E1981FB3493 /* Pods-UIForLumberjack.xcconfig */;
baseConfigurationReference = A87A8F4EB0D7F4FB35B729EB /* Pods-UIForLumberjack.release.xcconfig */;
buildSettings = {
DSTROOT = /tmp/UIForLumberjack.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand All @@ -439,7 +448,6 @@
8E809EE81887276900884B89 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/UIForLumberjackTestApp.app/UIForLumberjackTestApp";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
Expand All @@ -453,6 +461,7 @@
"$(inherited)",
);
INFOPLIST_FILE = "UIForLumberjackTests/UIForLumberjackTests-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "pl.sigmapoint.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
Expand All @@ -462,7 +471,6 @@
8E809EE91887276900884B89 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/UIForLumberjackTestApp.app/UIForLumberjackTestApp";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
Expand All @@ -472,6 +480,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "UIForLumberjack/UIForLumberjack-Prefix.pch";
INFOPLIST_FILE = "UIForLumberjackTests/UIForLumberjackTests-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "pl.sigmapoint.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
Expand Down
14 changes: 6 additions & 8 deletions UIForLumberjack/UIForLumberjack.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@
// Copyright (c) 2014 Sigmapoint. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DDLog.h"
#import <UIKit/UIKit.h>
#import <CocoaLumberjack/CocoaLumberjack.h>

#define kSPUILoggerMessageMargin 10
@interface UIForLumberjack : NSObject <DDLogger>

@interface UIForLumberjack : NSObject <UITableViewDataSource, UITableViewDelegate, DDLogger>
+ (instancetype)sharedInstance;

@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, readonly) UITableView *tableView;

+ (UIForLumberjack*) sharedInstance;

- (void)showLogInView:(UIView*)view;
- (void)showLogInView:(UIView *)view;
- (void)hideLog;

@end
Loading

0 comments on commit c4334b1

Please sign in to comment.