Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Countly.h
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,8 @@ NS_ASSUME_NONNULL_BEGIN
* @discussion Feedback widget interface for developer to interact with SDK.
*/
- (CountlyFeedbacks *) feedback;

- (CountlyUserDetails *) userProfile;
#endif


Expand Down
5 changes: 5 additions & 0 deletions Countly.m
Original file line number Diff line number Diff line change
Expand Up @@ -1484,4 +1484,9 @@ - (CountlyRemoteConfig *) remoteConfig {
return CountlyRemoteConfig.sharedInstance;
}

- (CountlyUserDetails *) userProfile
{
return CountlyUserDetails.sharedInstance;
}

@end
2 changes: 1 addition & 1 deletion CountlyCommon.m
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ - (NSMutableDictionary *) cly_filterSupportedDataTypes

if ([value isKindOfClass:[NSNumber class]] ||
[value isKindOfClass:[NSString class]] ||
([value isKindOfClass:[NSArray class]] && (value = [value cly_filterSupportedDataTypes]))) {
([value isKindOfClass:[NSArray class]] && (value = [(NSArray *)value cly_filterSupportedDataTypes]))) {
[filteredDictionary setObject:value forKey:key];
} else {
CLY_LOG_W(@"%s, Removed invalid type for key %@: %@", __FUNCTION__, key, [value class]);
Expand Down
2 changes: 1 addition & 1 deletion CountlyConnectionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ - (void)endSession

- (void)sendEventsWithSaveIfNeeded
{
if([Countly.user hasUnsyncedChanges])
if([Countly.user hasUnsyncedChanges])
{
[Countly.user save];
}
Expand Down
4 changes: 4 additions & 0 deletions CountlyUserDetails.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ extern NSString* const kCountlyLocalPicturePath;
*/
- (void)save;

- (void)setProperties:(NSDictionary<NSString *, id> *)data;
- (void)setProperty:(NSString *)key value:(id)value;


- (BOOL) hasUnsyncedChanges;

NS_ASSUME_NONNULL_END
Expand Down
Loading