Skip to content

Commit

Permalink
Merge pull request #343 from salemove/dev
Browse files Browse the repository at this point in the history
Glia Widgets SDK 0.9.2
  • Loading branch information
dukhovnyi authored Jul 26, 2022
2 parents b0cacfb + 52798ee commit d5eab7a
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion GliaWidgets.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
3 changes: 3 additions & 0 deletions GliaWidgets/Component/CallButtonBar/Button/CallButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion GliaWidgets/Component/ImageView/User/UserImageStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public struct UserImageStyle {
placeholderColor: UIColor,
placeholderBackgroundColor: UIColor,
imageBackgroundColor: UIColor,
transferringImage: UIImage?
transferringImage: UIImage? = nil
) {
self.placeholderImage = placeholderImage
self.placeholderColor = placeholderColor
Expand Down
5 changes: 4 additions & 1 deletion GliaWidgets/Glia.Deprecated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ extension Glia {
engagementKind,
configuration: configuration,
queueID: queueID,
visitorContext: Optional(visitorContext)
visitorContext: Optional(visitorContext),
theme: theme,
features: features,
sceneProvider: sceneProvider
)
}
}
2 changes: 1 addition & 1 deletion GliaWidgets/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.9.1</string>
<string>0.9.2</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ 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()
}
}
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()
Expand Down
2 changes: 1 addition & 1 deletion GliaWidgetsTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.9.1</string>
<string>0.9.2</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion TestingApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.9.1</string>
<string>0.9.2</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand Down

0 comments on commit d5eab7a

Please sign in to comment.