Today Widget - Tracks - #15456
Conversation
|
|
||
| let previousCount = UserDefaults(suiteName: WPAppGroupName)?.object(forKey: WPHomeWidgetTodayCount) as? Int ?? 0 | ||
| let newCount = widgetInfo.count | ||
|
|
There was a problem hiding this comment.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
|
You can trigger an installable build for these changes by visiting CircleCI here. |
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
|
||
| let previousCount = UserDefaults(suiteName: WPAppGroupName)?.object(forKey: WPHomeWidgetTodayCount) as? Int ?? 0 | ||
| let newCount = widgetInfo.count | ||
|
|
There was a problem hiding this comment.
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)
|
Converting it to |
|
I'm waiting to review this for now as there are CircleCI issues (and since I'm trying to resolve other unrelated issues). Let me know @Gio2018 if you still want me to go ahead anyway. |
Hey @diegoreymendez , no particular rush on this one. The CircleCI issue is on the installable build that I triggered, and it's likely because it needs to be updated with the latest version of |
frosty
left a comment
There was a problem hiding this comment.
This seems to be working as expected for me, with the exception of the known issue you mentioned 🙂 However, I feel that two identical widgets will be a fairly unlikely use case!
|
|
||
| UserDefaults(suiteName: WPAppGroupName)?.set(newCount, forKey: WPHomeWidgetTodayCount) | ||
|
|
||
| let properties = ["total_widgets": newCount, |
There was a problem hiding this comment.
We could maybe add these keys to an enum?
…press-mobile/WordPress-iOS into feature/15158-today-widget-tracks
Fixes #15158
To test:
Pre requisites:
wpios_today_home_extension_widget_updatedas event nameKnown issue: two widgets of the same size and the same site, seem to be counted as one.
PR submission checklist:
RELEASE-NOTES.txtif necessary.