Skip to content

Commit aa8ef05

Browse files
authored
Merge pull request #281 from apptentive/branch_5.2.14
Release 5.2.14
2 parents 4eda262 + 6d35e67 commit aa8ef05

File tree

8 files changed

+28
-14
lines changed

8 files changed

+28
-14
lines changed

Apptentive/Apptentive.xcodeproj/project.pbxproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@
24092409
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
24102410
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
24112411
COPY_PHASE_STRIP = NO;
2412-
CURRENT_PROJECT_VERSION = 42;
2412+
CURRENT_PROJECT_VERSION = 43;
24132413
DEBUG_INFORMATION_FORMAT = dwarf;
24142414
ENABLE_STRICT_OBJC_MSGSEND = YES;
24152415
ENABLE_TESTABILITY = YES;
@@ -2467,7 +2467,7 @@
24672467
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
24682468
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
24692469
COPY_PHASE_STRIP = NO;
2470-
CURRENT_PROJECT_VERSION = 42;
2470+
CURRENT_PROJECT_VERSION = 43;
24712471
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
24722472
ENABLE_NS_ASSERTIONS = NO;
24732473
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -2499,7 +2499,7 @@
24992499
DEFINES_MODULE = YES;
25002500
DEVELOPMENT_TEAM = 86WML2UN43;
25012501
DYLIB_COMPATIBILITY_VERSION = 1;
2502-
DYLIB_CURRENT_VERSION = 42;
2502+
DYLIB_CURRENT_VERSION = 43;
25032503
DYLIB_INSTALL_NAME_BASE = "@rpath";
25042504
GCC_PREFIX_HEADER = "Apptentive/Misc/ApptentiveConnect-Prefix.pch";
25052505
GCC_PREPROCESSOR_DEFINITIONS = "APPTENTIVE_DEBUG=1";
@@ -2519,7 +2519,7 @@
25192519
DEFINES_MODULE = YES;
25202520
DEVELOPMENT_TEAM = 86WML2UN43;
25212521
DYLIB_COMPATIBILITY_VERSION = 1;
2522-
DYLIB_CURRENT_VERSION = 42;
2522+
DYLIB_CURRENT_VERSION = 43;
25232523
DYLIB_INSTALL_NAME_BASE = "@rpath";
25242524
GCC_PREFIX_HEADER = "Apptentive/Misc/ApptentiveConnect-Prefix.pch";
25252525
INFOPLIST_FILE = Apptentive/Info.plist;

Apptentive/Apptentive/Apptentive.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ FOUNDATION_EXPORT double ApptentiveVersionNumber;
2020
FOUNDATION_EXPORT const unsigned char ApptentiveVersionString[];
2121

2222
/** The version number of the Apptentive SDK. */
23-
#define kApptentiveVersionString @"5.2.13"
23+
#define kApptentiveVersionString @"5.2.14"
2424

2525
/** The version number of the Apptentive API platform. */
2626
#define kApptentiveAPIVersionString @"9"

Apptentive/Apptentive/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>5.2.13</string>
18+
<string>5.2.14</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

Apptentive/Apptentive/Surveys/View Controllers/ApptentiveSurveyViewController.m

+11-3
Original file line numberDiff line numberDiff line change
@@ -668,16 +668,24 @@ - (void)presentationControllerDidDismiss:(UIPresentationController *)presentatio
668668
#pragma mark - View model delegate
669669

670670
- (void)viewModelValidationChanged:(ApptentiveSurveyViewModel *)viewModel isValid:(BOOL)valid {
671-
[self.collectionView reloadData];
672-
671+
[self.collectionViewLayout invalidateLayout];
672+
673673
[self setToolbarHidden:valid];
674-
674+
675675
for (UICollectionViewCell *cell in self.collectionView.visibleCells) {
676676
if ([cell isKindOfClass:[ApptentiveSurveyOtherCell class]]) {
677677
ApptentiveSurveyOtherCell *otherCell = (ApptentiveSurveyOtherCell *)cell;
678678
otherCell.valid = [self.viewModel answerIsValidAtIndexPath:[self.viewModel indexPathForTextFieldTag:otherCell.textField.tag]];
679679
}
680680
}
681+
682+
for (NSIndexPath *indexPath in [self.collectionView indexPathsForVisibleSupplementaryElementsOfKind:UICollectionElementKindSectionHeader]) {
683+
UIView *view = [self.collectionView supplementaryViewForElementKind:UICollectionElementKindSectionHeader atIndexPath:indexPath];
684+
685+
if ([view isKindOfClass:[ApptentiveSurveyQuestionView class]]) {
686+
view.accessibilityLabel = [self.viewModel accessibilityLabelForQuestionAtIndexPath:indexPath];
687+
}
688+
}
681689
}
682690

683691
- (void)viewModel:(ApptentiveSurveyViewModel *)viewModel didDeselectAnswerAtIndexPath:(NSIndexPath *)indexPath {

Apptentive/ApptentiveTests/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>5.2.13</string>
18+
<string>5.2.14</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
</dict>

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2020-07-08 - v5.2.14
2+
3+
#### Bugs Fixed
4+
5+
* Fix a bug where a survey with missing/invalid answers loses all user selections on attempted submit.
6+
17
# 2020-07-06 - v5.2.13
28

39
#### Bugs Fixed

Example/Podfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- apptentive-ios (5.2.13)
2+
- apptentive-ios (5.2.14)
33

44
DEPENDENCIES:
55
- apptentive-ios (from `..`)
@@ -9,8 +9,8 @@ EXTERNAL SOURCES:
99
:path: ".."
1010

1111
SPEC CHECKSUMS:
12-
apptentive-ios: d99c34d093015a81d2c8621dcd749d95ad750569
12+
apptentive-ios: 16951b1f9546bbae9165792679f865dc53bbe82f
1313

1414
PODFILE CHECKSUM: 89d2b5f4683b04482e89df6d46b268cc9ed1ef79
1515

16-
COCOAPODS: 1.9.1
16+
COCOAPODS: 1.9.3

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 = '5.2.13'
4+
s.version = '5.2.14'
55
s.license = 'BSD'
66
s.summary = 'Apptentive Customer Communications SDK.'
77
s.homepage = 'https://www.apptentive.com/'

0 commit comments

Comments
 (0)