diff --git a/GliaWidgets.podspec b/GliaWidgets.podspec index 8fbb42a9e..65841ebd9 100644 --- a/GliaWidgets.podspec +++ b/GliaWidgets.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'GliaWidgets' - s.version = '0.9.0' + s.version = '0.9.2' s.summary = 'The Glia iOS Widgets library' s.description = 'The Glia Widgets library allows to integrate easily a UI/UX for Glia\'s Digital Customer Service platform' s.homepage = 'https://github.com/salemove/ios-sdk-widgets' diff --git a/GliaWidgets/Component/CallButtonBar/Button/CallButton.swift b/GliaWidgets/Component/CallButtonBar/Button/CallButton.swift index c2dd04ce1..acf88a594 100644 --- a/GliaWidgets/Component/CallButtonBar/Button/CallButton.swift +++ b/GliaWidgets/Component/CallButtonBar/Button/CallButton.swift @@ -132,6 +132,9 @@ class CallButton: UIView { ) accessibilityValue = properties.value accessibilityLabel = properties.label + + let buttonAccessibilityIdentifier = "media_\(properties.value.lowercased())_button" + accessibilityIdentifier = isUserInteractionEnabled ? buttonAccessibilityIdentifier : "" } private func style(for state: State) -> CallButtonStyle.StateStyle { diff --git a/GliaWidgets/Component/ImageView/User/UserImageStyle.swift b/GliaWidgets/Component/ImageView/User/UserImageStyle.swift index 4933c9bc0..0a65fb7d4 100644 --- a/GliaWidgets/Component/ImageView/User/UserImageStyle.swift +++ b/GliaWidgets/Component/ImageView/User/UserImageStyle.swift @@ -29,7 +29,7 @@ public struct UserImageStyle { placeholderColor: UIColor, placeholderBackgroundColor: UIColor, imageBackgroundColor: UIColor, - transferringImage: UIImage? + transferringImage: UIImage? = nil ) { self.placeholderImage = placeholderImage self.placeholderColor = placeholderColor diff --git a/GliaWidgets/Glia.Deprecated.swift b/GliaWidgets/Glia.Deprecated.swift index ef989d31a..a0c421e6e 100644 --- a/GliaWidgets/Glia.Deprecated.swift +++ b/GliaWidgets/Glia.Deprecated.swift @@ -32,7 +32,10 @@ extension Glia { engagementKind, configuration: configuration, queueID: queueID, - visitorContext: Optional(visitorContext) + visitorContext: Optional(visitorContext), + theme: theme, + features: features, + sceneProvider: sceneProvider ) } } diff --git a/GliaWidgets/Info.plist b/GliaWidgets/Info.plist index e89d66461..eedc138ad 100644 --- a/GliaWidgets/Info.plist +++ b/GliaWidgets/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 0.9.1 + 0.9.2 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/GliaWidgets/ViewController/Common/Alert/AlertViewController+SingleMediaUpgrade.swift b/GliaWidgets/ViewController/Common/Alert/AlertViewController+SingleMediaUpgrade.swift index 33c4aa739..49d75e1a5 100644 --- a/GliaWidgets/ViewController/Common/Alert/AlertViewController+SingleMediaUpgrade.swift +++ b/GliaWidgets/ViewController/Common/Alert/AlertViewController+SingleMediaUpgrade.swift @@ -14,6 +14,7 @@ extension AlertViewController { let declineButton = ActionButton(with: viewFactory.theme.alert.negativeAction) declineButton.title = conf.decline + declineButton.accessibilityIdentifier = "alert_negative_button" declineButton.tap = { [weak self] in self?.dismiss(animated: true) { declined() @@ -21,6 +22,7 @@ extension AlertViewController { } let acceptButton = ActionButton(with: viewFactory.theme.alert.positiveAction) acceptButton.title = conf.accept + acceptButton.accessibilityIdentifier = "alert_positive_button" acceptButton.tap = { [weak self] in self?.dismiss(animated: true) { accepted() diff --git a/GliaWidgetsTests/Info.plist b/GliaWidgetsTests/Info.plist index 74e40dfd8..8ddbe09ab 100644 --- a/GliaWidgetsTests/Info.plist +++ b/GliaWidgetsTests/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 0.9.1 + 0.9.2 CFBundleVersion 1 diff --git a/TestingApp/Info.plist b/TestingApp/Info.plist index 08a012a6e..202e92ae2 100644 --- a/TestingApp/Info.plist +++ b/TestingApp/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 0.9.1 + 0.9.2 CFBundleURLTypes