Commit 9235384
authored
Remove legacy Jetpack Social publicize code (#25747)
* Remove the socialSharingV2 feature flag
The Jetpack Social v2 experience is now always enabled.
* Remove the unreachable legacy social sharing UI from post settings
The v2 social sharing section fully shadows the legacy one: every
condition that produced legacy content also produces the v2 binding, and
PostSettings.sharing was already hardcoded to nil.
* Apply swift-format to files touched by Task 2
* Remove the legacy Publicize sharing management UI
The v2 connection management screen replaces SharingViewController
everywhere. The stats insights nudge now opens the v2 screen, and the
dashboard Jetpack Social card is removed along with its promo views.
* Apply swift-format ahead of the legacy publicize services removal
* Remove the legacy publicize services and remotes
Deletes the keyring-based connection sync (SharingSyncService), the
publicize half of SharingService/SharingServiceRemote, the share-limit
sync (Jetpack Social no longer has per-post share limits), and the
legacy publicize merge in PostHelper. The sharing-buttons half of both
services is kept. Also removes the now-orphaned
PublicizeInfo.configure(with:) helper in WordPressData, whose only
caller was the deleted JetpackSocialService.
* Apply swift-format ahead of the legacy publicize model removal
* Remove the unused socialIcon(for:) style helper
* Clean up leftover publicize references in comments and strings
Fixes two stale copy-paste comments in the sharing buttons service and
removes an unused Jetpack Social string from the pre-publishing sheet.1 parent 053471d commit 9235384
79 files changed
Lines changed: 398 additions & 7392 deletions
File tree
- Modules
- Sources
- WordPressData
- Swift
- WordPressKit
- Tests/WordPressDataTests/Helpers
- Sources/Keystone
- Tests
- KeystoneTests
- Helpers
- Tests
- Features/Dashboard
- Models
- Services
- WordPressKitTests/WordPressKitTests
- Mock Data
- Tests
- Social
- WordPress
- Classes
- Models
- Blog
- Services
- System
- Utility
- BuildInformation
- ViewRelated
- Aztec/ViewControllers
- Blog
- Blog Dashboard
- Cards
- Models
- Blog Details
- BlogPersonalization
- Sharing
- Gutenberg
- Jetpack/Social
- Post
- PostSettings
- Publishing
- Views
- Stats/Insights
- WordPress.xcodeproj
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 22 | + | |
31 | 23 | | |
32 | 24 | | |
33 | 25 | | |
| |||
Lines changed: 0 additions & 35 deletions
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 22 deletions
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 16 deletions
This file was deleted.
0 commit comments