Skip to content

Commit 232e66a

Browse files
committed
Bump version, podspec, CHANGELOG
1 parent 8883a09 commit 232e66a

File tree

5 files changed

+22
-15
lines changed

5 files changed

+22
-15
lines changed

Apptentive/Apptentive/Apptentive.h

+10-14
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FOUNDATION_EXPORT double ApptentiveVersionNumber;
1717
FOUNDATION_EXPORT const unsigned char ApptentiveVersionString[];
1818

1919
/** The version number of the Apptentive SDK. */
20-
#define kApptentiveVersionString @"4.0.4"
20+
#define kApptentiveVersionString @"4.0.5"
2121

2222
/** The platform that the SDK is built for. */
2323
#define kApptentivePlatformString @"iOS"
@@ -224,8 +224,11 @@ typedef NS_ENUM(NSUInteger, ApptentiveLogLevel) {
224224

225225
/** An object conforming to the `ApptentiveDelegate` protocol.
226226
If a `nil` value is passed for the view controller into methods such as `-engage:fromViewController`,
227-
the SDK will request a view controller from the delegate from which to present an interaction. */
228-
@property (weak, nonatomic) id<ApptentiveDelegate> delegate;
227+
the SDK will request a view controller from the delegate from which to present an interaction.
228+
229+
Deprecation Note: when a suitable view controller is not available for presenting interactions,
230+
the system will now use a new window to present Apptentive UI. */
231+
@property (weak, nonatomic) id<ApptentiveDelegate> delegate DEPRECATED_ATTRIBUTE;
229232

230233
///--------------------
231234
/// @name Engage Events
@@ -683,15 +686,6 @@ typedef NS_ENUM(NSUInteger, ApptentiveLogLevel) {
683686

684687
@end
685688

686-
/**
687-
The `ApptentiveDelegate` protocol allows your app to override the default behavior when an
688-
interaction is presented without a view controller having been specified. In most cases the
689-
default behavior (which walks the view controller stack from the main window's root view
690-
controller) will work, but if your app features custom container view controllers, it may
691-
behave unexpectedly. In that case an object in your app should implement the
692-
`ApptentiveDelegate` protocol's `-viewControllerForInteractionsWithConnection:` method
693-
and return the view controller from which to present the Message Center interaction.
694-
*/
695689
@protocol ApptentiveDelegate <NSObject>
696690
@optional
697691

@@ -701,8 +695,10 @@ typedef NS_ENUM(NSUInteger, ApptentiveLogLevel) {
701695
@param connection The `Apptentive` object that is requesting a view controller to present from.
702696
703697
@return The view controller your app would like the interaction to be presented from.
704-
*/
705-
- (UIViewController *)viewControllerForInteractionsWithConnection:(Apptentive *)connection NS_SWIFT_NAME(viewControllerForInteractions(with:));
698+
699+
Deprecation Note: when a suitable view controller is not available for presenting interactions,
700+
the system will now use a new window to present Apptentive UI. */
701+
- (UIViewController *)viewControllerForInteractionsWithConnection:(Apptentive *)connection NS_SWIFT_NAME(viewControllerForInteractions(with:)) DEPRECATED_ATTRIBUTE;
706702

707703
@end
708704

Apptentive/Apptentive/Apptentive.m

+3
Original file line numberDiff line numberDiff line change
@@ -739,11 +739,14 @@ - (void)userDidTapBanner:(ApptentiveBannerViewController *)banner {
739739
}
740740

741741
- (UIViewController *)viewControllerForInteractions {
742+
#pragma clang diagnostic push
743+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
742744
if (self.delegate && [self.delegate respondsToSelector:@selector(viewControllerForInteractionsWithConnection:)]) {
743745
return [self.delegate viewControllerForInteractionsWithConnection:self];
744746
} else {
745747
return [ApptentiveUtilities topViewController];
746748
}
749+
#pragma clang diagnostic pop
747750
}
748751

749752
- (void)dismissAllInteractions:(BOOL)animated {

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2017-09-06 frankus, weeebox v4.0.5
2+
----------------------------------
3+
Version 4.0.5 fixes an error where a background task expiration handler was not called correctly, which could result in a crash. It also adds an experimental feature where passing `nil` for the view controller parameter of the `engage` method will present interactions in a new window.
4+
15
2017-08-28 frankus, weeebox v4.0.4
26
----------------------------------
37
Version 4.0.4 fixes a potential crash when exiting the app. It also fixes saving person name and email when they are supplied in message center, and improves accessibility for surveys.

apptentive-ios.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = 'apptentive-ios'
33
s.module_name = 'Apptentive'
4-
s.version = '4.0.4'
4+
s.version = '4.0.5'
55
s.license = 'BSD'
66
s.summary = 'Apptentive Customer Communications SDK.'
77
s.homepage = 'https://www.apptentive.com/'

docs/APIChanges.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
This document tracks changes to the API between versions.
22

3+
#4.0.5
4+
5+
* Passing `nil` for the view controller parameter of the `engage` method will now open interactions in a new window. The `delegate` property of the `Apptentive` singleton will no longer be asked for a view controller to present interactions from.
6+
37
#4.0.0
48

59
* Adds a new `ApptentiveConfiguration` class.

0 commit comments

Comments
 (0)