Skip to content

Commit 688b451

Browse files
author
Joey Lorich
committed
merge in master
2 parents ac0f7fa + a8023bd commit 688b451

175 files changed

Lines changed: 15584 additions & 12399 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ before_install:
88
script:
99
- xctool -workspace EasyReader.xcworkspace -scheme Development -sdk iphonesimulator7.1 ONLY_ACTIVE_ARCH=NO
1010
- xctool test -workspace EasyReader.xcworkspace -scheme Development -sdk iphonesimulator7.1 ONLY_ACTIVE_ARCH=NO
11-
11+
notifications:
12+
slack: cloudspace:euw2TezwiQfK9ebqBtGa1Rjz

EasyReader - Unit Tests/Application/Models/CSRemoteObjectTests.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#import "EZRBaseModelTests.h"
1111

1212
// Models
13-
#import "CSRemoteObject.h"
13+
#import "APIRemoteObject.h"
1414

15-
@interface CSRemoteObject (Test)
15+
@interface APIRemoteObject (Test)
1616

1717
+ (NSDate *)dateFromAPIDateString:(NSString*)dateString;
1818

@@ -48,15 +48,15 @@ - (void)testDateFromAPIDateStringNoTimeString
4848
// First 10 characters go up to the date without time
4949
NSString *dateString = [[NSString stringWithFormat:@"%@",date] substringWithRange:NSMakeRange(0, 10)];
5050

51-
NSString *resultDateValue = [NSString stringWithFormat:@"%@",[CSRemoteObject dateFromAPIDateString:dateString]];
51+
NSString *resultDateValue = [NSString stringWithFormat:@"%@",[APIRemoteObject dateFromAPIDateString:dateString]];
5252

5353
XCTAssertTrue([resultDateValue rangeOfString:resultDateValue].location == 0, @"");
5454
}
5555

5656
- (void)testDateFromAPIDateStringFullTimeString
5757
{
5858
NSString *dateString = @"2014-03-28T14:53:21.000Z";
59-
NSDate *resultDate = [CSRemoteObject dateFromAPIDateString:dateString];
59+
NSDate *resultDate = [APIRemoteObject dateFromAPIDateString:dateString];
6060

6161
NSLog(@"%@", resultDate);
6262
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];

EasyReader.xcodeproj/project.pbxproj

Lines changed: 28 additions & 265 deletions
Large diffs are not rendered by default.

EasyReader/Application/AppDelegates/EZRCoreDataService.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ @implementation EZRCoreDataService
1313

1414
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
1515
{
16+
[MagicalRecord setShouldDeleteStoreOnModelMismatch:YES];
17+
// [MagicalRecord setShouldAutoCreateManagedObjectModel:YES];
18+
// [MagicalRecord setShouldAutoCreateDefaultPersistentStoreCoordinator:YES];
1619
[MagicalRecord setupAutoMigratingCoreDataStack];
1720
return YES;
1821
}

EasyReader/Application/Controllers/Home/EZRHomeViewController.m

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@
3737
#import "EZRHomePageControlDataSource.h"
3838
#import "EZRHomeWebViewDelegate.h"
3939
#import "EZRCurrentFeedsProvider.h"
40-
#import "CSArrayCollectionViewDataSource.h"
40+
41+
#import "CLDArrayCollectionViewDataSource.h"
42+
43+
#import "CLDSocialShareToolbar.h"
44+
45+
>>>>>>> master
4146
#import "EZRHomeSocialToolbarDataSource.h"
4247
#import "EZRGoogleAnalyticsService.h"
4348
#import "CCARadialGradientLayer.h"
@@ -80,7 +85,7 @@ @implementation EZRHomeViewController
8085
EZRHomeWebViewDelegate *webViewDelegate;
8186

8287
/// The data source for the collection view
83-
CSArrayCollectionViewDataSource *collectionViewArrayDataSource;
88+
CLDArrayCollectionViewDataSource *collectionViewArrayDataSource;
8489

8590
/// Background gradient
8691
CCARadialGradientLayer *gradient;
@@ -264,7 +269,7 @@ - (void)layOutVerticalScrollView
264269
*/
265270
- (void)setUpCollectionView
266271
{
267-
collectionViewArrayDataSource = [CSArrayCollectionViewDataSource dataSourceWithArray:self.currentFeedsProvider.feedItems
272+
collectionViewArrayDataSource = [CLDArrayCollectionViewDataSource dataSourceWithArray:self.currentFeedsProvider.feedItems
268273
reusableCellIdentifier:@"feedItem"
269274
configureBlock:^(UICollectionViewCell *cell, id item) {
270275
((EZRFeedItemCollectionViewCell *)cell).feedItem = item;

EasyReader/Application/Controllers/Menu/EZRMenuViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ - (void)applyMenuStyles
105105
}
106106

107107
- (void)feedsDidChange:(EZRCurrentFeedsProvider *)currentFeedProvider feeds:(NSArray *)feeds {
108-
((CSArrayTableViewDataSource *)self.tableView_menu.dataSource).source = self.currentFeedsProvider.feeds;
108+
((CLDArrayTableViewDataSource *)self.tableView_menu.dataSource).source = self.currentFeedsProvider.feeds;
109109
[self.tableView_menu reloadData];
110110
}
111111

EasyReader/Application/Controllers/Menu/MenuCells/EZRSearchFeedCell.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ @implementation EZRSearchFeedCell
2020
- (void)setFeedData:(NSDictionary *)feedData
2121
{
2222
_feedData = feedData;
23-
//self.imageView_icon.image = [UIImage imageNamed:@"icon_plus"];
24-
self.label_name.text = [feedData objectForKey:@"name"];
23+
24+
if (feedData) {
25+
self.label_name.text = [feedData objectForKey:@"name"];
26+
}
2527
}
2628

2729
@end

EasyReader/Application/Controllers/Menu/MenuDataSources/EZRMenuSearchFeedDataSource.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "CSArrayTableViewDataSource.h"
10+
#import "CLDArrayTableViewDataSource.h"
1111

1212
/**
1313
* A UITableViewDataSource for custom and searched feeds returned by the API
1414
*/
15-
@interface EZRMenuSearchFeedDataSource : CSArrayTableViewDataSource
15+
@interface EZRMenuSearchFeedDataSource : CLDArrayTableViewDataSource
1616

1717
#pragma mark - Properties
1818

EasyReader/Application/Controllers/Menu/MenuDataSources/EZRMenuSearchFeedDataSource.m

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@ - (void) setLastSearchTerm:(NSString *)lastSearchTerm {
3939

4040
- (void)setFeedData:(NSDictionary *)feedData
4141
{
42-
NSSet *feedSet = [NSSet setWithArray:feedData[@"feeds"]];
43-
44-
self.source = [feedSet sortedArrayByAttributes:@[@"name"] ascending:YES];
42+
if (feedData) {
43+
NSSet *feedSet = [NSSet setWithArray:feedData[@"feeds"]];
44+
45+
self.source = [feedSet sortedArrayByAttributes:@[@"name"] ascending:YES];
46+
} else {
47+
self.source = nil;
48+
}
4549
}
4650

4751
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

EasyReader/Application/Controllers/Menu/MenuDataSources/EZRMenuUserFeedDataSource.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "CSArrayTableViewDataSource.h"
10+
#import "CLDArrayTableViewDataSource.h"
1111

1212
@class User;
1313

1414
/**
1515
* A UITableViewDataSource for feeds in Core Data
1616
*/
17-
@interface EZRMenuUserFeedDataSource : CSArrayTableViewDataSource
17+
@interface EZRMenuUserFeedDataSource : CLDArrayTableViewDataSource
1818

1919
/// Feeds used to populate the menu table
2020
@property (nonatomic, retain) NSMutableSet *feeds;

0 commit comments

Comments
 (0)