Skip to content

Commit

Permalink
Merge pull request #612 from ParsePlatform/nlutsenko.versions
Browse files Browse the repository at this point in the history
Specify the proper client version header value for watchOS, tvOS.
  • Loading branch information
nlutsenko committed Nov 30, 2015
2 parents 4085051 + 51374c2 commit 5610cf1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,14 @@ + (instancetype)constructorWithDataSource:(id<PFInstallationIdentifierStoreProvi
+ (NSDictionary *)defaultURLRequestHeadersForApplicationId:(NSString *)applicationId
clientKey:(NSString *)clientKey
bundle:(NSBundle *)bundle {
#if TARGET_OS_IPHONE
#if TARGET_OS_IOS
NSString *versionPrefix = @"i";
#else
#elif PF_TARGET_OS_OSX
NSString *versionPrefix = @"osx";
#elif TARGET_OS_TV
NSString *versionPrefix = @"apple-tv";
#elif TARGET_OS_WATCH
NSString *versionPrefix = @"apple-watch";
#endif

NSMutableDictionary *mutableHeaders = [NSMutableDictionary dictionary];
Expand Down

0 comments on commit 5610cf1

Please sign in to comment.