Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Jun 1, 2020
1 parent be947d3 commit 0a9516d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ - (instancetype)init {

// Restore past sessions from NSUserDefaults.
NSData *devices = [MS_APP_CENTER_USER_DEFAULTS objectForKey:kMSPastDevicesKey];
NSArray *arrayFromData;
if (devices != nil) {
arrayFromData = (NSArray *)[[MSUtility unarchiveKeyedData:devices] mutableCopy];
NSArray *arrayFromData = (NSArray *)[[MSUtility unarchiveKeyedData:devices] mutableCopy];

// If array is not nil, create a mutable version.
if (arrayFromData)
if (arrayFromData != nil) {
_deviceHistory = [NSMutableArray arrayWithArray:arrayFromData];
}
}

// Create new array and create device info in case we don't have any from disk.
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Add support for Mac Catalyst to App Center Analytics and App Center Crashes. Als

* **[Feature]** Add support for Mac Catalyst.
* **[Fix]** Fix `Undefined symbol: ___llvm_profile_runtime` when the SDK was built from source by Carthage.
* **[Fix]** Fix screen resolution detection macOS.
* **[Fix]** Fix screen resolution detection on macOS.

### App Center Analytics

Expand All @@ -17,6 +17,7 @@ Add support for Mac Catalyst to App Center Analytics and App Center Crashes. Als
### App Center Crashes

* **[Feature]** Add support for Mac Catalyst.

___

## Version 3.2.0
Expand Down

0 comments on commit 0a9516d

Please sign in to comment.