Skip to content

Commit

Permalink
Fix podspec issues (#80)
Browse files Browse the repository at this point in the history
* Fix warnings creatings issue for cocoapods

* Try to include lint in circleCI

* Fix lib lint

* Try fixing lib lint

* Try to fix lib lint

* Fix spacing issues to validate yml
  • Loading branch information
danialzahid94 authored Jan 4, 2017
1 parent 7d70fd0 commit 6eb6132
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Darkly/LDClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ -(void)userUpdated {

// Notification handler for DataManager config flag update
-(void)configFlagUpdated:(NSNotification *)notification {
NSString *keyValue = notification.userInfo;
NSString *keyValue = [notification.userInfo objectForKey:@"flagkey"];
if (self.delegate && [self.delegate respondsToSelector:@selector(featureFlagDidUpdate:)]) {
[self.delegate featureFlagDidUpdate:keyValue];
}
Expand Down
2 changes: 1 addition & 1 deletion Darkly/LDFlagConfigModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@interface LDFlagConfigModel : NSObject <NSCoding>

extern NSString * const kFeaturesJsonDictionaryKey;
extern NSString * _Nullable const kFeaturesJsonDictionaryKey;

@property (nullable, nonatomic, strong) NSDictionary *featuresJsonDictionary;

Expand Down
2 changes: 1 addition & 1 deletion Darkly/Models/LDDataManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ -(LDUserModel *)findUserWithkey: (NSString *)key {
- (void)compareConfigForUser:(LDUserModel *)user withNewUser:(LDUserModel *)newUser {
for (NSString *key in [[newUser.config dictionaryValue] objectForKey:kFeaturesJsonDictionaryKey]) {
if(user == nil || ![[newUser.config configFlagValue:key] isEqual:[user.config configFlagValue:key]]) {
[[NSNotificationCenter defaultCenter] postNotificationName:kLDFlagConfigChangedNotification object:nil userInfo:key];
[[NSNotificationCenter defaultCenter] postNotificationName:kLDFlagConfigChangedNotification object:nil userInfo:[NSDictionary dictionaryWithObject:key forKey:kFlagKey]];
}
}
}
Expand Down
8 changes: 6 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
machine:
xcode:
version: 8.1
xcode:
version: 8.1

test:
post:
- pod lib lint

0 comments on commit 6eb6132

Please sign in to comment.