diff --git a/Podfile b/Podfile index 39c8caae468b..4a8cc04d89d2 100644 --- a/Podfile +++ b/Podfile @@ -20,7 +20,7 @@ workspace 'WordPress.xcworkspace' ## =================================== ## def wordpress_shared - pod 'WordPressShared', '~> 1.16.2' + pod 'WordPressShared', '~> 1.17.0-beta.1' #pod 'WordPressShared', :git => 'https://github.com/wordpress-mobile/WordPress-iOS-Shared.git', :tag => '' #pod 'WordPressShared', :git => 'https://github.com/wordpress-mobile/WordPress-iOS-Shared.git', :branch => '' #pod 'WordPressShared', :git => 'https://github.com/wordpress-mobile/WordPress-iOS-Shared.git', :commit => '' diff --git a/Podfile.lock b/Podfile.lock index c06f5a7f2247..181797febb0a 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -460,7 +460,7 @@ PODS: - WordPressShared (~> 1.15-beta) - wpxmlrpc (~> 0.9) - WordPressMocks (0.0.15) - - WordPressShared (1.16.2): + - WordPressShared (1.17.0-beta.1): - CocoaLumberjack (~> 3.4) - FormatterKit/TimeIntervalFormatter (~> 1.8) - WordPressUI (1.12.2) @@ -555,7 +555,7 @@ DEPENDENCIES: - WordPressAuthenticator (~> 1.42.1) - WordPressKit (~> 4.44.0-beta) - WordPressMocks (~> 0.0.15) - - WordPressShared (~> 1.16.2) + - WordPressShared (~> 1.17.0-beta.1) - WordPressUI (~> 1.12.2) - WPMediaPicker (~> 1.7.2) - Yoga (from `https://raw.githubusercontent.com/wordpress-mobile/gutenberg-mobile/v1.66.0/third-party-podspecs/Yoga.podspec.json`) @@ -566,6 +566,7 @@ SPEC REPOS: https://github.com/wordpress-mobile/cocoapods-specs.git: - WordPressAuthenticator - WordPressKit + - WordPressShared - WordPressUI trunk: - 1PasswordExtension @@ -607,7 +608,6 @@ SPEC REPOS: - WordPress-Aztec-iOS - WordPress-Editor-iOS - WordPressMocks - - WordPressShared - WPMediaPicker - wpxmlrpc - ZendeskCommonUISDK @@ -812,7 +812,7 @@ SPEC CHECKSUMS: WordPressAuthenticator: 111793c08fa8e9d9a72aed5b33a094c91ff4fd82 WordPressKit: 7fe46752fe65808f80163ae135bb5c3f081d108b WordPressMocks: 6b52b0764d9939408151367dd9c6e8a910877f4d - WordPressShared: 6f4d949aa3ec8c3b9c24f5aa601473f087badd24 + WordPressShared: 3f365c6d5ae8fc1615f7f30aac7f9f78f1dd70fb WordPressUI: c573f4b5c2e5d0ffcebe69ecf86ae75ab7b6ff4d WPMediaPicker: d5ae9a83cd5cc0e4de46bfc1c59120aa86658bc3 wpxmlrpc: bf55a43a7e710bd2a4fb8c02dfe83b1246f14f13 @@ -826,6 +826,6 @@ SPEC CHECKSUMS: ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba ZIPFoundation: e27423c004a5a1410c15933407747374e7c6cb6e -PODFILE CHECKSUM: 70e2c1b2bb057852c4af271041294e98678f6963 +PODFILE CHECKSUM: 20da29455383f5750e70430df408221693ac799b COCOAPODS: 1.10.1 diff --git a/WordPress/Classes/Utility/Analytics/WPAnalyticsTrackerAutomatticTracks.m b/WordPress/Classes/Utility/Analytics/WPAnalyticsTrackerAutomatticTracks.m index 3511ee45d122..a7d3e2b24b1b 100644 --- a/WordPress/Classes/Utility/Analytics/WPAnalyticsTrackerAutomatticTracks.m +++ b/WordPress/Classes/Utility/Analytics/WPAnalyticsTrackerAutomatticTracks.m @@ -1748,6 +1748,12 @@ + (TracksEventPair *)eventPairForStat:(WPAnalyticsStat)stat case WPAnalyticsStatStatsItemTappedInsightsAddStat: eventName = @"stats_add_insight_item_tapped"; break; + case WPAnalyticsStatStatsItemTappedPostStatsMonthsYears: + eventName = @"stats_posts_and_pages_months_years_item_tapped"; + break; + case WPAnalyticsStatStatsItemTappedPostStatsRecentWeeks: + eventName = @"stats_posts_and_pages_recent_weeks_item_tapped"; + break; case WPAnalyticsStatStatsItemTappedInsightsCustomizeDismiss: eventName = @"stats_customize_insights_dismiss_item_tapped"; break; diff --git a/WordPress/Classes/ViewRelated/Stats/Shared Views/StatsTotalRow.swift b/WordPress/Classes/ViewRelated/Stats/Shared Views/StatsTotalRow.swift index d05afad6bd78..b5788bbc52ff 100644 --- a/WordPress/Classes/ViewRelated/Stats/Shared Views/StatsTotalRow.swift +++ b/WordPress/Classes/ViewRelated/Stats/Shared Views/StatsTotalRow.swift @@ -460,6 +460,10 @@ private extension StatSection { return .statsItemTappedVideoTapped case .insightsAddInsight: return .statsItemTappedInsightsAddStat + case .postStatsMonthsYears: + return .statsItemTappedPostStatsMonthsYears + case .postStatsRecentWeeks: + return .statsItemTappedPostStatsRecentWeeks default: return nil }