Skip to content

Commit

Permalink
Adding distribution and distribution_version where they should've act…
Browse files Browse the repository at this point in the history
…ually been.
  • Loading branch information
wooster committed Oct 10, 2013
1 parent 9bbcead commit e188979
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ApptentiveConnect/source/Model/ATConversation.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import "ATConversation.h"

#import "ATConnect.h"
#import "ATBackend.h"
#import "ATUtilities.h"
#import "NSDictionary+ATAdditions.h"

Expand Down Expand Up @@ -104,6 +105,15 @@ - (NSDictionary *)sdkJSON {
result[@"programming_language"] = @"Objective-C";
result[@"author_name"] = @"Apptentive, Inc.";
result[@"platform"] = kATConnectPlatformString;
NSString *distribution = [[ATBackend sharedBackend] distributionName];
if (distribution) {
result[@"distribution"] = distribution;
}
NSString *distributionVersion = [[ATBackend sharedBackend] distributionVersion];
if (distributionVersion) {
result[@"distribution_version"] = distributionVersion;
}

return result;
}

Expand Down

1 comment on commit e188979

@pkamb
Copy link
Contributor

@pkamb pkamb commented on e188979 Oct 10, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Please sign in to comment.