Skip to content

Commit

Permalink
Release 8.6.3 (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianBatchelder authored Nov 20, 2017
1 parent 7be0157 commit 63eda69
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 16 deletions.
2 changes: 1 addition & 1 deletion AirshipKit/AirshipConfig.xcconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017 Urban Airship and Contributors

CURRENT_PROJECT_VERSION = 8.6.2
CURRENT_PROJECT_VERSION = 8.6.3

// Uncomment to include the preview build warning
// OTHER_CFLAGS = $(inherited) -DUA_PREVIEW=1
2 changes: 1 addition & 1 deletion AirshipKit/AirshipKit/common/UAirshipVersion.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#import "UAirshipVersion.h"

NSString *const versionString = @"8.6.2";
NSString *const versionString = @"8.6.3";

@implementation UAirshipVersion

Expand Down
16 changes: 11 additions & 5 deletions AirshipKit/AirshipKit/ios/UAInboxMessageList.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,16 @@ - (UADisposable *)retrieveMessageListWithSuccessBlock:(UAInboxMessageListCallbac
}];
} else {
UA_LDEBUG(@"Retrieve message list succeeded with status: %lu", (unsigned long)status);
completionBlock(YES);
dispatch_async(dispatch_get_main_queue(), ^{
completionBlock(YES);
});
}

} onFailure:^(){
UA_LDEBUG(@"Retrieve message list failed");
completionBlock(NO);
dispatch_async(dispatch_get_main_queue(), ^{
completionBlock(NO);
});
}];

return disposable;
Expand Down Expand Up @@ -263,8 +267,8 @@ - (void)loadSavedMessages {


/**
* Refreshes the publicly exposed inbox messages, by prefetching on the private
* context and then updating on the main context.
* Refreshes the publicly exposed inbox messages on the private context.
* The completion handler is executed on the main context.
*
* @param completionHandler Optional completion handler.
*/
Expand Down Expand Up @@ -295,7 +299,9 @@ - (void)refreshInboxWithCompletionHandler:(void (^)(void))completionHandler {
self.messages = messages;

if (completionHandler) {
completionHandler();
dispatch_async(dispatch_get_main_queue(), ^{
completionHandler();
});
}
}];
}
Expand Down
23 changes: 17 additions & 6 deletions AirshipKit/AirshipKitTests/UAInboxMessageListTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,14 @@ __block void (^trigger)(void) = ^{
};
}] retrieveMessageListOnSuccess:[OCMArg any] onFailure:[OCMArg any]];


[[self.mockMessageListNotificationObserver expect] messageListWillUpdate];
[[self.mockMessageListNotificationObserver expect] messageListUpdated];
XCTestExpectation *messageListWillUpdateExpectation = [self expectationWithDescription:@"messageListWillUpdate notification received"];
XCTestExpectation *messageListUpdatedExpectation = [self expectationWithDescription:@"messageListUpdated notification received"];
[[[self.mockMessageListNotificationObserver expect] andDo:^(NSInvocation *invocation) {
[messageListWillUpdateExpectation fulfill];
}] messageListWillUpdate];
[[[self.mockMessageListNotificationObserver expect] andDo:^(NSInvocation *invocation) {
[messageListUpdatedExpectation fulfill];
}] messageListUpdated];

__block BOOL fail = NO;

Expand Down Expand Up @@ -231,7 +236,7 @@ __block void (^trigger)(void) = ^{
}];

XCTAssertFalse(fail, @"callback blocks should not have been executed");

[self.mockMessageListNotificationObserver verify];
}

Expand All @@ -255,8 +260,14 @@ __block void (^trigger)(void) = ^{
};
}] retrieveMessageListOnSuccess:[OCMArg any] onFailure:[OCMArg any]];

[[self.mockMessageListNotificationObserver expect] messageListWillUpdate];
[[self.mockMessageListNotificationObserver expect] messageListUpdated];
XCTestExpectation *messageListWillUpdateExpectation = [self expectationWithDescription:@"messageListWillUpdate notification received"];
XCTestExpectation *messageListUpdatedExpectation = [self expectationWithDescription:@"messageListUpdated notification received"];
[[[self.mockMessageListNotificationObserver expect] andDo:^(NSInvocation *invocation) {
[messageListWillUpdateExpectation fulfill];
}] messageListWillUpdate];
[[[self.mockMessageListNotificationObserver expect] andDo:^(NSInvocation *invocation) {
[messageListUpdatedExpectation fulfill];
}] messageListUpdated];

__block BOOL fail = NO;

Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ iOS Changelog

Migration Guides: Documentation/Migration

Version 8.6.3 - November 20, 2017
==================================
Patch release to address "UI API called on a background thread" warnings. Applications should update to this release if they are seeing these warnings.

Bug fixes
---------
- Fix UI API access on background thread in Message Center.

Version 8.6.2 - October 30, 2017
==================================
Patch release to correctly parse "mailto:" URLs in message center messages and enable optional localization of Message Center's "Done" and "Edit" buttons. Applications should update to this release if they require this behavior.
Expand Down
2 changes: 1 addition & 1 deletion UrbanAirship-iOS-AppExtensions.podspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Pod::Spec.new do |s|
s.version = "8.6.2"
s.version = "8.6.3"

s.name = "UrbanAirship-iOS-AppExtensions"
s.summary = "Urban Airship iOS App Extensions"
Expand Down
2 changes: 1 addition & 1 deletion UrbanAirship-iOS-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Pod::Spec.new do |s|
s.version = "8.6.2"
s.version = "8.6.3"
s.name = "UrbanAirship-iOS-SDK"
s.summary = "Urban Airship iOS SDK"

Expand Down
2 changes: 1 addition & 1 deletion scripts/run_ci_tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ xcrun xcodebuild -destination "${TEST_DESTINATION}" -workspace "${ROOT_PATH}/Air

# Run pod lib lint
cd $ROOT_PATH
pod lib lint
pod lib lint --allow-warnings
cd -

# delete derived data
Expand Down

0 comments on commit 63eda69

Please sign in to comment.