Skip to content

Commit

Permalink
Fixed crash when reloading Kite
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostas Karayannis committed Jun 2, 2017
1 parent 671b249 commit ac3f05f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Kite-Print-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'Kite-Print-SDK'
spec.version = '6.5.4'
spec.version = '6.5.5'
spec.license = { :type => 'MIT', :file => 'Kite-SDK/LICENSE' }
spec.homepage = 'https://github.com/OceanLabs/iOS-Print-SDK'
spec.authors = {'Deon Botha' => '[email protected]'}
Expand Down
3 changes: 3 additions & 0 deletions Kite-SDK/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 6.5.5
- Fixed crash when reloading Kite

### 6.5.4
- Fixed crash when reloading Kite

Expand Down
2 changes: 1 addition & 1 deletion Kite-SDK/PSPrintSDK/KiteCI-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>6.5.4</string>
<string>6.5.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
2 changes: 1 addition & 1 deletion Kite-SDK/PSPrintSDK/OLConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#import "OLConstants.h"

NSString *const kOLKiteSDKVersion = @"6.5.4";
NSString *const kOLKiteSDKVersion = @"6.5.5";
NSString *const kOLKiteSDKErrorDomain = @"co.oceanlabs.kOLKiteSDKErrorDomain";
NSString *const kNotificationTemplateSyncComplete = @"co.oceanlabs.pssdk.notification.kNotificationSyncComplete";
NSString *const kNotificationTemplateSyncPartialComplete = @"co.oceanlabs.pssdk.notification.kNotificationTemplateSyncPartialComplete";
Expand Down
8 changes: 2 additions & 6 deletions Kite-SDK/PSPrintSDK/OLKiteViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -482,19 +482,15 @@ - (void)templateSyncDidReturn:(NSNotification *)n{
if ([OLKiteABTesting sharedInstance].userConfig[@"theme"]){
__weak OLKiteViewController *welf = self;
[[OLKiteABTesting sharedInstance] fetchRemotePlistsWithCompletionHandler:^{
if (![welf.remoteThemePlistSyncOperation isExecuting] && ![welf.remoteThemePlistSyncOperation isFinished]){
if (!welf.remoteThemePlistSyncOperation.executing && !welf.remoteThemePlistSyncOperation.finished && ![self.operationQueue.operations containsObject:self.remoteThemePlistSyncOperation]){
[welf.remoteThemePlistSyncOperation addExecutionBlock:^{}];
}
if (![welf.remoteThemePlistSyncOperation isExecuting] && ![welf.remoteThemePlistSyncOperation isFinished]){
[welf.operationQueue addOperation:welf.remoteThemePlistSyncOperation];
}
}];
}
else{
if (!self.remoteThemePlistSyncOperation.executing && !self.remoteThemePlistSyncOperation.finished){
if (!self.remoteThemePlistSyncOperation.executing && !self.remoteThemePlistSyncOperation.finished && ![self.operationQueue.operations containsObject:self.remoteThemePlistSyncOperation]){
[self.remoteThemePlistSyncOperation addExecutionBlock:^{}];
}
if (!self.remoteThemePlistSyncOperation.executing && !self.remoteThemePlistSyncOperation.finished){
[self.operationQueue addOperation:self.remoteThemePlistSyncOperation];
}
}
Expand Down

0 comments on commit ac3f05f

Please sign in to comment.