Skip to content

Commit

Permalink
Change Pola logo button behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
WezSieTato committed Aug 25, 2020
1 parent 9c2a2c5 commit eebfa1e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions BuyPolish/Pola/Manager/Analytics/AnalyticsEventName.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ enum AnalyticsEventName: String {
case reportFinished = "report_finished"
case menuItemOpened = "menu_item_opened"
case donateOpened = "donate_opened"
case aboutPola = "about_pola"
case polasFriends = "polas_friends"
}
5 changes: 5 additions & 0 deletions BuyPolish/Pola/Manager/Analytics/AnalyticsHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ final class AnalyticsHelper {
parameters: AnalitycsPolasFriendsParameters(device_id: UIDevice.current.deviceId))
}

class func aboutPolaOpened() {
logEvent(name: .aboutPola,
parameters: AnalitycsPolasFriendsParameters(device_id: UIDevice.current.deviceId))
}

private class func reportParameters(barcode: String?) -> AnalyticsReportParameters {
return AnalyticsReportParameters(code: barcode ?? "No Code",
device_id: UIDevice.current.deviceId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"Accessibility.Close" = "Zamknij";
"Accessibility.CardHint" = "Otwórz lub zamknij poprzez kliknięcie";
"Accessibility.Report.AddPhoto" = "Dodaj zdjęcie";
"Accessibility.Logo" = "Strona główna";
"CaptureVideo.Timer.Seconds" = "sek.";
"CaptureVideo.Start" = "START";
"CaptureVideo.Sending" = "Wysyłanie zdjęć";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class ScanCodeView: UIView {

addSubview(dimView)

logoButton.accessibilityLabel = R.string.localizable.accessibilityPolaFriends()
logoButton.accessibilityLabel = R.string.localizable.accessibilityLogo()
logoButton.setImage(R.image.logoIcon(), for: .normal)
logoButton.sizeToFit()
addSubview(logoButton)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ final class ScanCodeViewController: UIViewController {

@objc
func tapLogoButton() {
AnalyticsHelper.polasFriendsOpened()
let vc = AboutWebViewController(url: "https://www.pola-app.pl/m/friends",
AnalyticsHelper.aboutPolaOpened()
let vc = AboutWebViewController(url: "https://www.pola-app.pl/m/about",
title: R.string.localizable.polaSFriends())
vc.addCloseButton()
let nvc = UINavigationController(rootViewController: vc)
Expand Down

0 comments on commit eebfa1e

Please sign in to comment.