forked from microsoft/appcenter-sdk-apple
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoft#1262 from Microsoft/develop
PR to merge develop to master for SDK December release
- Loading branch information
Showing
136 changed files
with
3,148 additions
and
1,068 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
AppCenter/AppCenter/Internals/Device/MSDeviceHistoryInfo.h
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
AppCenter/AppCenter/Internals/History/Device/MSDeviceHistoryInfo.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#import "MSHistoryInfo.h" | ||
|
||
@class MSDevice; | ||
|
||
/** | ||
* Model class that correlates MSDevice to a crash at app relaunch. | ||
*/ | ||
@interface MSDeviceHistoryInfo : MSHistoryInfo | ||
|
||
/** | ||
* Instance of MSDevice. | ||
*/ | ||
@property(nonatomic) MSDevice *device; | ||
|
||
/** | ||
* Initializes a new `MSDeviceHistoryInfo` instance. | ||
* | ||
* @param timestamp Timestamp. | ||
* @param device Device instance. | ||
*/ | ||
- (instancetype)initWithTimestamp:(NSDate *)timestamp andDevice:(MSDevice *)device; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
18 changes: 8 additions & 10 deletions
18
.../Internals/Session/MSSessionHistoryInfo.h → ...ls/History/Session/MSSessionHistoryInfo.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface MSSessionHistoryInfo : NSObject <NSCoding> | ||
#import "MSHistoryInfo.h" | ||
|
||
/** | ||
* Initializes a new `MSSessionHistoryInfo` instance. | ||
* | ||
* @param timestamp Timestamp | ||
* @param sessionId Session Id | ||
* Model class that is intended to be used to correlate sessionId to a crash at app relaunch. | ||
*/ | ||
- (instancetype)initWithTimestamp:(NSDate *)timestamp andSessionId:(NSString *)sessionId; | ||
@interface MSSessionHistoryInfo : MSHistoryInfo | ||
|
||
/** | ||
* Session Id. | ||
*/ | ||
@property(nonatomic, copy) NSString *sessionId; | ||
|
||
/** | ||
* Timestamp. | ||
* Initializes a new `MSSessionHistoryInfo` instance. | ||
* | ||
* @param timestamp Timestamp. | ||
* @param sessionId Session Id. | ||
*/ | ||
@property(nonatomic) NSDate *timestamp; | ||
- (instancetype)initWithTimestamp:(NSDate *)timestamp andSessionId:(NSString *)sessionId; | ||
|
||
@end |
25 changes: 12 additions & 13 deletions
25
.../Internals/Session/MSSessionHistoryInfo.m → ...ls/History/Session/MSSessionHistoryInfo.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
#import "MSSessionHistoryInfo.h" | ||
|
||
static NSString *const kMSSessionIdKey = @"sessionIdKey"; | ||
static NSString *const kMSTimestampKey = @"timestampKey"; | ||
|
||
/** | ||
* This class is used to associate session id with the timestamp that it was created. | ||
*/ | ||
@implementation MSSessionHistoryInfo | ||
|
||
- (instancetype)initWithCoder:(NSCoder *)coder { | ||
self = [super init]; | ||
- (instancetype)initWithTimestamp:(NSDate *)timestamp andSessionId:(NSString *)sessionId { | ||
self = [super initWithTimestamp:timestamp]; | ||
if (self) { | ||
_sessionId = [coder decodeObjectForKey:kMSSessionIdKey]; | ||
_timestamp = [coder decodeObjectForKey:kMSTimestampKey]; | ||
_sessionId = sessionId; | ||
} | ||
return self; | ||
} | ||
|
||
- (void)encodeWithCoder:(NSCoder *)coder { | ||
[coder encodeObject:self.sessionId forKey:kMSSessionIdKey]; | ||
[coder encodeObject:self.timestamp forKey:kMSTimestampKey]; | ||
} | ||
#pragma mark - NSCoding | ||
|
||
- (instancetype)initWithTimestamp:(NSDate *)timestamp andSessionId:(NSString *)sessionId { | ||
self = [super init]; | ||
- (instancetype)initWithCoder:(NSCoder *)coder { | ||
self = [super initWithCoder:coder]; | ||
if (self) { | ||
_sessionId = sessionId; | ||
_timestamp = timestamp; | ||
_sessionId = [coder decodeObjectForKey:kMSSessionIdKey]; | ||
} | ||
return self; | ||
} | ||
|
||
- (void)encodeWithCoder:(NSCoder *)coder { | ||
[super encodeWithCoder:coder]; | ||
[coder encodeObject:self.sessionId forKey:kMSSessionIdKey]; | ||
} | ||
|
||
@end |
Oops, something went wrong.