Skip to content

Commit 897a6cd

Browse files
committed
Merge pull request #35 from Yelp/ssheldon_fixes_1.0.3
New version fixing highest-priority issues
2 parents bdb804d + 62b4bff commit 897a6cd

File tree

16 files changed

+43
-110
lines changed

16 files changed

+43
-110
lines changed

Classes/Client/YLPClient.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#import "YLPClientPrivate.h"
1313

1414
NSString *const kYLPAPIHost = @"api.yelp.com";
15+
NSString *const kYLPErrorDomain = @"com.yelp.YelpAPI.ErrorDomain";
1516

1617
@implementation YLPClient
1718

@@ -61,7 +62,7 @@ - (void)queryWithRequest:(NSURLRequest *)request
6162
completionHandler(responseJSON, nil);
6263
} else {
6364
// If a request fails due to systematic errors with the API then an NSError will be returned.
64-
error = error ? error : [NSError errorWithDomain:[[NSBundle mainBundle] bundleIdentifier] code:httpResponse.statusCode userInfo:responseJSON];
65+
error = error ? error : [NSError errorWithDomain:kYLPErrorDomain code:httpResponse.statusCode userInfo:responseJSON];
6566
completionHandler(nil, error);
6667
}
6768
}] resume];

Classes/Client/YLPClientPrivate.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
NS_ASSUME_NONNULL_BEGIN
1111

12+
extern NSString *const kYLPErrorDomain;
13+
1214
@interface YLPClient ()
1315

1416
@property (nonatomic, copy) NSString *consumerSecret;

Classes/Common/YLPCommonPrivate.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

Classes/Common/YLPCoordinate.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ NS_ASSUME_NONNULL_BEGIN
1515
@property (nonatomic, readonly) double latitude;
1616
@property (nonatomic, readonly) double longitude;
1717

18+
- (instancetype)initWithLatitude:(double)latitude longitude:(double)longitude;
19+
1820
@end
1921

2022
NS_ASSUME_NONNULL_END

Classes/Request/YLPGeoBoundingBox.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#import "YLPGeoBoundingBox.h"
1010
#import "YLPCoordinate.h"
11-
#import "YLPCommonPrivate.h"
1211

1312
@implementation YLPGeoBoundingBox
1413

Classes/Request/YLPGeoCoordinate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import "YLPGeoCoordinate.h"
10-
#import "YLPCommonPrivate.h"
10+
#import "YLPCoordinate.h"
1111

1212
@implementation YLPGeoCoordinate
1313

Classes/Response/YLPLocation.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#import "YLPLocation.h"
1010
#import "YLPCoordinate.h"
11-
#import "YLPCommonPrivate.h"
1211

1312
@implementation YLPLocation
1413

Classes/Response/YLPRegion.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#import "YLPCoordinateDelta.h"
1111
#import "YLPRegion.h"
1212
#import "YLPResponsePrivate.h"
13-
#import "YLPCommonPrivate.h"
1413

1514
@implementation YLPRegion
1615
- (instancetype)initWithDictionary:(NSDictionary *)regionDict {

Classes/YelpAPI.h

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// YelpAPI.h
3+
// YelpAPI
4+
//
5+
// Created by Steven Sheldon on 4/13/16.
6+
//
7+
//
8+
9+
#import "YLPClient.h"
10+
#import "YLPClient+Business.h"
11+
#import "YLPClient+PhoneSearch.h"
12+
#import "YLPClient+Search.h"
13+
14+
#import "YLPCoordinate.h"
15+
16+
#import "YLPGeoBoundingBox.h"
17+
#import "YLPGeoCoordinate.h"
18+
#import "YLPSortType.h"
19+
20+
#import "YLPBusiness.h"
21+
#import "YLPCategory.h"
22+
#import "YLPCoordinateDelta.h"
23+
#import "YLPDeal.h"
24+
#import "YLPDealOption.h"
25+
#import "YLPGiftCertificate.h"
26+
#import "YLPGiftCertificateOption.h"
27+
#import "YLPLocation.h"
28+
#import "YLPPhoneSearch.h"
29+
#import "YLPRegion.h"
30+
#import "YLPReview.h"
31+
#import "YLPSearch.h"
32+
#import "YLPUser.h"

Framework/Info.plist

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)