Skip to content

Commit bee048a

Browse files
authoredMar 19, 2025··
Sync blogs upon launch (#24243)
* Sync blogs upon launch * Update WordPressKit * Use BlogSyncFacade instead of BlogService
1 parent 36a1509 commit bee048a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎WordPress.xcworkspace/xcshareddata/swiftpm/Package.resolved

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"originHash" : "b048f2348f14b6f12b4a4b8588355abe499af3f8f4e91cacc054e98187a7746c",
2+
"originHash" : "b637515cdb9c1c25894b401b59b20ad56c195cd52aa6bee2ada1b56cd753ece8",
33
"pins" : [
44
{
55
"identity" : "alamofire",
@@ -392,7 +392,7 @@
392392
"location" : "https://github.com/wordpress-mobile/WordPressKit-iOS",
393393
"state" : {
394394
"branch" : "wpios-edition",
395-
"revision" : "ba542bae62a1d9b80b0baee44d610bfac55936ea"
395+
"revision" : "554d3ef682af4cfd7888e33658789df48b67c408"
396396
}
397397
},
398398
{

‎WordPress/Classes/System/WordPressAppDelegate.swift

+4
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ class WordPressAppDelegate: UIResponder, UIApplicationDelegate {
135135
WKWebView.warmup()
136136
}
137137

138+
if let account = try? WPAccount.lookupDefaultWordPressComAccount(in: ContextManager.shared.mainContext) {
139+
BlogSyncFacade().syncBlogs(for: account, success: { /* Do nothing */ }, failure: { _ in /* Do nothing */ })
140+
}
141+
138142
return true
139143
}
140144

0 commit comments

Comments
 (0)
Please sign in to comment.