Skip to content

Commit

Permalink
Merge pull request #504 from hello/jimmy/dev1222
Browse files Browse the repository at this point in the history
1.2.2 RC 2
  • Loading branch information
jimmymlu committed Jan 27, 2016
2 parents 63237ec + 93a2f3a commit b54ab84
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 1.2.2.2

New:

* Log an analytics Error event when toggling alarm in list errors out

Fixes:

* Fix a crasher that occurs when iOS is unable to determine a users current locale

## 1.2.2.1

Fixes:
Expand Down
2 changes: 1 addition & 1 deletion SenseWidget/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.2.2.1</string>
<string>1.2.2.2</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionMainStoryboard</key>
Expand Down
1 change: 1 addition & 0 deletions SleepModel/HEMAlarmListViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ - (IBAction)flippedEnabledSwitch:(UISwitch *)sender {
if (error) {
alarm.on = !on;
sender.on = !on;
[SENAnalytics trackError:error];
} else {
[SENAnalytics trackAlarmToggle:alarm];
}
Expand Down
8 changes: 4 additions & 4 deletions SleepModel/HEMSegmentProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ - (NSDictionary*)defaultTraits {
NSString* deviceModel = [UIDevice currentDeviceModel];
NSString* appVersion = [bundle objectForInfoDictionaryKey:@"CFBundleVersion"];
NSString* iOSVersion = [[UIDevice currentDevice] systemVersion];
_defaultTraits = @{HEMSegmentTraitAppVersionName : appVersion,
HEMSegmentTraitDeviceModelName : deviceModel,
HEMSegmentTraitOSVersionName : iOSVersion,
HEMSegmentTraitCountryCode : countryCode};
_defaultTraits = @{HEMSegmentTraitAppVersionName : appVersion ?: @"undefined",
HEMSegmentTraitDeviceModelName : deviceModel ?: @"undefined",
HEMSegmentTraitOSVersionName : iOSVersion ?: @"undefined",
HEMSegmentTraitCountryCode : countryCode ?: @"undefined"};
}
return _defaultTraits;
}
Expand Down
2 changes: 1 addition & 1 deletion SleepModel/Sense-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.2.2.1</string>
<string>1.2.2.2</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down

0 comments on commit b54ab84

Please sign in to comment.