Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions Artsy Tests/Artsy Tests-Prefix.pch
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
//
// Artsy Tests-Prefix.pch
// Artsy
//
// Created by Orta Therox on 01/01/2013.
// Copyright (c) 2013 Artsy. All rights reserved.
//

#ifdef __OBJC__
// Directly linked pods
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#define EXP_SHORTHAND
#import <Specta/Specta.h>
#import "SpectaDSL+Sleep.h"
#import <Expecta/Expecta.h>
#import <Expecta+Snapshots/EXPMatchers+FBSnapshotTest.h>
#import <Expecta_Snapshots/EXPMatchers+FBSnapshotTest.h>
#import <OHHTTPStubs/OHHTTPStubs.h>
#import <ISO8601DateFormatter/ISO8601DateFormatter.h>
#import <UICKeyChainStore/UICKeyChainStore.h>
#import <OCMock/OCMock.h>
#import <UIAlertView+Blocks/UIAlertView+Blocks.h>

// Pods that come in from the other target
#import <AFNetworking/AFNetworking.h>
#import <ISO8601DateFormatter/ISO8601DateFormatter.h>
#import <UIAlertView_Blocks/UIAlertView+Blocks.h>
#import <UICKeyChainStore/UICKeyChainStore.h>
#import <Mantle/Mantle.h>
#import <Mantle/MTLJSONAdapter.h>
#import <ObjectiveSugar/ObjectiveSugar.h>
#import <ORStackView/ORStackScrollView.h>
#import <ORStackView/ORTagBasedAutoStackView.h>
#import <ReactiveCocoa/ReactiveCocoa.h>

// Headers
#import "MTLModel+JSON.h"
#import "MTLModel+Dictionary.h"
#import "Constants.h"
Expand All @@ -31,9 +31,5 @@
#import "ARTestHelper.h"
#import "ARAutoLayoutDebugging.h"
#import "StyledSubclasses.h"
#import <ObjectiveSugar/ObjectiveSugar.h>
#import <ORStackView/ORStackScrollView.h>
#import <ORStackView/ORTagBasedAutoStackView.h>
#import <ReactiveCocoa/ReactiveCocoa.h>
#import "UIViewController+PresentWithFrame.h"
#endif
130 changes: 58 additions & 72 deletions Artsy.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Artsy.xcodeproj/xcshareddata/xcschemes/Artsy.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4D830D885CE3DB20472E230A"
BuildableName = "libPods.a"
BlueprintIdentifier = "F82A938C8E623C49A74E330A"
BuildableName = "Pods.framework"
BlueprintName = "Pods"
ReferencedContainer = "container:Pods/Pods.xcodeproj">
</BuildableReference>
Expand Down
10 changes: 5 additions & 5 deletions Artsy/App/Artsy-Prefix.pch
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
#import <Mantle/Mantle.h>
#import <ObjectiveSugar/ObjectiveSugar.h>
#import <FLKAutoLayout/UIView+FLKAutoLayout.h>
#import <CocoaLumberjack/DDLog.h>
#import <CocoaLumberjack/CocoaLumberjack.h>
#import <ORStackView/ORStackScrollView.h>
#import <ORStackView/ORTagBasedAutoStackView.h>
#import <ReactiveCocoa/ReactiveCocoa.h>
#import <NAMapKit/NAMapView.h>
#import <EDColor/UIColor+Hex.h>
#import <UIView+BooleanAnimations/UIView+BooleanAnimations.h>
#import <Artsy-UIButtons/ARButtonSubclasses.h>
#import <UIView_BooleanAnimations/UIView+BooleanAnimations.h>
#import <Artsy_UIButtons/ARButtonSubclasses.h>

#import "ArtsyAPI.h"
#import "Models.h"
Expand All @@ -55,10 +55,10 @@
#import <libextobjc/EXTScope.h>

#ifdef DEBUG
static const int ddLogLevel = LOG_LEVEL_VERBOSE;
static const int ddLogLevel = DDLogLevelVerbose;
static const int httpLogLevel = AFLoggerLevelInfo;
#else
static const int ddLogLevel = LOG_LEVEL_WARN;
static const int ddLogLevel = DDLogLevelWarning;
static const int httpLogLevel = AFLoggerLevelError;
#endif

Expand Down
1 change: 1 addition & 0 deletions Artsy/App/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ int main(int argc, char *argv[]) {
NSStringFromClass([JSDecoupledAppDelegate class]));
}
}

9 changes: 0 additions & 9 deletions Artsy/Classes/Categories/Apple/UIFont+ArtsyFonts.h

This file was deleted.

48 changes: 0 additions & 48 deletions Artsy/Classes/Categories/Apple/UIFont+ArtsyFonts.m

This file was deleted.

2 changes: 1 addition & 1 deletion Artsy/Classes/Models/ARUserSettingsViewController.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "FODFormViewController.h"
#import <FODFormKit/FODFormViewController.h>

@interface ARUserSettingsViewController : FODFormViewController <ARMenuAwareViewController>

Expand Down
1 change: 1 addition & 0 deletions Artsy/Classes/Models/ARUserSettingsViewController.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#import "ARUserSettingsViewController.h"

#import <FODFormKit/FODForm.h>
#import <FODFormKit/FODFormBuilder.h>

#import "ARUserManager.h"
Expand Down
2 changes: 1 addition & 1 deletion Artsy/Classes/Utils/ARSharingController.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#import "ARURLItemProvider.h"
#import "ARImageItemProvider.h"
#import "ARMessageItemProvider.h"
#import <UIAlertView+Blocks/UIAlertView+Blocks.h>
#import <UIAlertView_Blocks/UIAlertView+Blocks.h>

@interface ARSharingController ()
@property (nonatomic, strong) id <ARShareableObject> object;
Expand Down
2 changes: 1 addition & 1 deletion Artsy/Classes/Utils/ARSwitchBoard.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import "ARRouter.h"
#import <JLRoutes/JLRoutes.h>
#import <UIAlertView+Blocks/UIAlertView+Blocks.h>
#import <UIAlertView_Blocks/UIAlertView+Blocks.h>

// View Controllers
#import "ARArtworkSetViewController.h"
Expand Down
2 changes: 1 addition & 1 deletion Artsy/Classes/Utils/ARTrialController.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import "ARUserManager.h"
#import "ARAppDelegate.h"
#import <UIAlertView+Blocks/UIAlertView+Blocks.h>
#import <UIAlertView_Blocks/UIAlertView+Blocks.h>

static ARTrialController *instance;

Expand Down
6 changes: 3 additions & 3 deletions Artsy/Classes/Utils/Logging/ARLogFormatter.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ - (instancetype)init

- (NSString *)formatLogMessage:(DDLogMessage *)logMessage
{
NSString *dateAndTime = [self.dateFormatter stringFromDate:(logMessage->timestamp)];
NSString *logMsg = logMessage->logMsg;
NSString *dateAndTime = [self.dateFormatter stringFromDate:(logMessage->_timestamp)];
NSString *logMsg = logMessage->_message;

return [NSString stringWithFormat:@"%@ [%@] | %@\n", dateAndTime, [contextMap[@(logMessage->logContext)] uppercaseString], logMsg];
return [NSString stringWithFormat:@"%@ [%@] | %@\n", dateAndTime, [contextMap[@(logMessage->_context)] uppercaseString], logMsg];

return nil;
}
Expand Down
15 changes: 9 additions & 6 deletions Artsy/Classes/Utils/Logging/ARLogger.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#import <CocoaLumberjack/DDLegacyMacros.h>

// If you update this enum, update `contextMap` in the implementation too please
typedef NS_ENUM(NSInteger, ARLogContext) {
// starting at 1 because 0 is the default
Expand All @@ -22,11 +24,12 @@ typedef NS_ENUM(NSInteger, ARLogContext) {
// server. To log specifically formatted text errors after a failed request, use ARLogContextNetwork
// logs. These macros are used by ARHTTPRequestOperationLogger. This logger has its own log level so
// that you may log only failed requests without affecting the global log level of ARLogger.
#define ARHTTPRequestOperationDebugLog(frmt, ...) ASYNC_LOG_OBJC_MAYBE(ddLogLevel, LOG_FLAG_DEBUG, ARLogContextRequestOperation, frmt, ##__VA_ARGS__)
#define ARHTTPRequestOperationSuccessLog(frmt, ...) ASYNC_LOG_OBJC_MAYBE(ddLogLevel, LOG_FLAG_INFO, ARLogContextRequestOperation, frmt, ##__VA_ARGS__)
#define ARHTTPRequestOperationFailureLog(frmt, ...) ASYNC_LOG_OBJC_MAYBE(ddLogLevel, LOG_FLAG_ERROR, ARLogContextRequestOperation, frmt, ##__VA_ARGS__)

#define ARHTTPRequestOperationDebugLog(frmt, ...) LOG_OBJC_MAYBE(YES, ddLogLevel, LOG_FLAG_DEBUG, ARLogContextRequestOperation, frmt, ##__VA_ARGS__)
#define ARHTTPRequestOperationSuccessLog(frmt, ...) LOG_OBJC_MAYBE(YES, ddLogLevel, LOG_FLAG_INFO, ARLogContextRequestOperation, frmt, ##__VA_ARGS__)
#define ARHTTPRequestOperationFailureLog(frmt, ...) LOG_OBJC_MAYBE(YES, ddLogLevel, LOG_FLAG_ERROR, ARLogContextRequestOperation, frmt, ##__VA_ARGS__)

// For logging human-readable Activity and Errors:
#define ARInfoLog(frmt, ...) ASYNC_LOG_OBJC_MAYBE(ddLogLevel, LOG_FLAG_INFO, ARLogContextInfo, frmt, ##__VA_ARGS__)
#define ARActionLog(frmt, ...) ASYNC_LOG_OBJC_MAYBE(ddLogLevel, LOG_FLAG_DEBUG, ARLogContextAction, frmt, ##__VA_ARGS__)
#define ARErrorLog(frmt, ...) ASYNC_LOG_OBJC_MAYBE(ddLogLevel, LOG_FLAG_ERROR, ARLogContextError, frmt, ##__VA_ARGS__)
#define ARInfoLog(frmt, ...) LOG_OBJC_MAYBE(YES, ddLogLevel, LOG_FLAG_INFO, ARLogContextInfo, frmt, ##__VA_ARGS__)
#define ARActionLog(frmt, ...) LOG_OBJC_MAYBE(YES, ddLogLevel, LOG_FLAG_DEBUG, ARLogContextAction, frmt, ##__VA_ARGS__)
#define ARErrorLog(frmt, ...) LOG_OBJC_MAYBE(YES, ddLogLevel, LOG_FLAG_ERROR, ARLogContextError, frmt, ##__VA_ARGS__)
2 changes: 1 addition & 1 deletion Artsy/Classes/View Controllers/ARFairMapPreviewButton.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Artsy-UIButtons/ARButtonSubclasses.h>
#import <Artsy_UIButtons/ARButtonSubclasses.h>

@class ARFairMapPreview, Map;

Expand Down
2 changes: 1 addition & 1 deletion Artsy/Classes/View Controllers/ARLoginViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#import "AROnboardingNavBarView.h"
#import "ARAuthProviders.h"
#import "UIViewController+FullScreenLoading.h"
#import <UIAlertView+Blocks/UIAlertView+Blocks.h>
#import <UIAlertView_Blocks/UIAlertView+Blocks.h>
#import "ARTextFieldWithPlaceholder.h"
#import "ARSecureTextFieldWithPlaceholder.h"
#import "UIView+HitTestExpansion.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#import "ARUserManager.h"
#import "AROnboardingViewController.h"
#import "UIViewController+FullScreenLoading.h"
#import <UIAlertView+Blocks/UIAlertView+Blocks.h>
#import <UIAlertView_Blocks/UIAlertView+Blocks.h>
#import "UIView+HitTestExpansion.h"

//sigh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "ARParallaxHeaderViewController.h"
#import <UIImageView+WebCache.h>
#import <SDWebImage/UIImageView+WebCache.h>

const CGFloat ARParallaxHeaderViewBannerImageMissingImageHeight = 60.0;
const CGFloat ARParallaxHeaderViewBannerImageHeight = 180.0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import "ARSignUpSplashViewController.h"
#import "ARAppDelegate.h"
#import "ARCrossfadingImageView.h"
#import <UIAlertView+Blocks/UIAlertView+Blocks.h>
#import <UIAlertView_Blocks/UIAlertView+Blocks.h>
#import "UIView+HitTestExpansion.h"

@interface ARSignUpSplashTextViewController : UIViewController
Expand Down
2 changes: 1 addition & 1 deletion Artsy/Classes/Views/ARAuctionBidderStateLabel.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "ARAuctionBidderStateLabel.h"
#import <Artsy+UILabels/NSNumberFormatter+ARCurrency.h>
#import <Artsy_UILabels/NSNumberFormatter+ARCurrency.h>

@implementation ARAuctionBidderStateLabel

Expand Down
4 changes: 2 additions & 2 deletions Artsy/Classes/Views/StyledSubclasses.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Artsy+UILabels/ARLabelSubclasses.h>
#import <Artsy-UIButtons/ARButtonSubclasses.h>
#import <Artsy_UILabels/ARLabelSubclasses.h>
#import <Artsy_UIButtons/ARButtonSubclasses.h>
#import "ARSeparatorViews.h"
#import "ARCustomEigenLabels.h"
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
source 'https://rubygems.org'

gem 'cocoapods'
gem "cocoapods-keys", :git => 'https://github.com/alloy/cocoapods-keys.git', :branch => 'retrieve-keys-from-env'

group :test do
Expand Down
Loading