Skip to content

Commit

Permalink
Add an empty class for bundle location purposes
Browse files Browse the repository at this point in the history
Fixes #1.
  • Loading branch information
friedbunny committed Jul 2, 2017
1 parent ddfd1e0 commit b615b9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion NSTimeZone+Coordinate/NSTimeZone+Coordinate.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

#import "NSTimeZone+Coordinate.h"

@interface NSTimeZoneCoordinateBundleCanary : NSObject
@end

@implementation NSTimeZoneCoordinateBundleCanary
@end

@implementation NSTimeZone (Coordinate)

- (CLLocationCoordinate2D)coordinate {
Expand All @@ -23,7 +29,7 @@ - (CLLocationCoordinate2D)coordinate {
}

- (NSDictionary *)timeZonesDictionary {
NSString *path = [[NSBundle mainBundle] pathForResource:@"timezones" ofType:@"plist"];
NSString *path = [[NSBundle bundleForClass:NSTimeZoneCoordinateBundleCanary.class] pathForResource:@"timezones" ofType:@"plist"];
return [NSDictionary dictionaryWithContentsOfFile:path];
}

Expand Down

0 comments on commit b615b9e

Please sign in to comment.