Skip to content

Commit ab3b51e

Browse files
authored
Merge pull request #18545 from wordpress-mobile/feature/18375-update_wpkit
Blogging Prompts: use prompt date fix
2 parents afd1d0c + 3fa3b93 commit ab3b51e

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def wordpress_ui
4747
end
4848

4949
def wordpress_kit
50-
pod 'WordPressKit', '~> 4.51.0'
50+
pod 'WordPressKit', '~> 4.52.0-beta'
5151
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :tag => ''
5252
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :branch => ''
5353
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :commit => ''

Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ PODS:
487487
- WordPressKit (~> 4.18-beta)
488488
- WordPressShared (~> 1.12-beta)
489489
- WordPressUI (~> 1.7-beta)
490-
- WordPressKit (4.51.0):
490+
- WordPressKit (4.52.0-beta.2):
491491
- Alamofire (~> 4.8.0)
492492
- CocoaLumberjack (~> 3.4)
493493
- NSObject-SafeExpectations (= 0.0.4)
@@ -591,7 +591,7 @@ DEPENDENCIES:
591591
- SVProgressHUD (= 2.2.5)
592592
- WordPress-Editor-iOS (~> 1.19.8)
593593
- WordPressAuthenticator (~> 2.0.0)
594-
- WordPressKit (~> 4.51.0)
594+
- WordPressKit (~> 4.52.0-beta)
595595
- WordPressMocks (~> 0.0.15)
596596
- WordPressShared (~> 1.17.1)
597597
- WordPressUI (~> 1.12.5)
@@ -603,6 +603,7 @@ DEPENDENCIES:
603603
SPEC REPOS:
604604
https://github.com/wordpress-mobile/cocoapods-specs.git:
605605
- WordPressAuthenticator
606+
- WordPressKit
606607
trunk:
607608
- Alamofire
608609
- AlamofireImage
@@ -640,7 +641,6 @@ SPEC REPOS:
640641
- UIDeviceIdentifier
641642
- WordPress-Aztec-iOS
642643
- WordPress-Editor-iOS
643-
- WordPressKit
644644
- WordPressMocks
645645
- WordPressShared
646646
- WordPressUI
@@ -853,7 +853,7 @@ SPEC CHECKSUMS:
853853
WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504
854854
WordPress-Editor-iOS: 9eb9f12f21a5209cb837908d81ffe1e31cb27345
855855
WordPressAuthenticator: 5163f732e4e529781f931f158f54b1a1545bc536
856-
WordPressKit: 79d309801a09fabe9564ac9e1e06554274fc5022
856+
WordPressKit: cc1e5b12e92232d977664682ac69110852fc4ce7
857857
WordPressMocks: 6b52b0764d9939408151367dd9c6e8a910877f4d
858858
WordPressShared: 0c4bc5e25765732fcf5d07f28c81970ab28493fb
859859
WordPressUI: c5be816f6c7b3392224ac21de9e521e89fa108ac
@@ -869,6 +869,6 @@ SPEC CHECKSUMS:
869869
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba
870870
ZIPFoundation: ae5b4b813d216d3bf0a148773267fff14bd51d37
871871

872-
PODFILE CHECKSUM: f6bd23447af8d4f331d87b63590f4bf520730633
872+
PODFILE CHECKSUM: d7bc9c0d041c5f2d6e109c77b2bf02d28f5f81c0
873873

874874
COCOAPODS: 1.11.2

WordPress/Classes/Services/BloggingPromptsService.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ struct BloggingPrompt {
7373
let answered: Bool
7474
let answerCount: Int
7575
let displayAvatarURLs: [URL]
76+
let attribution: String
7677

7778
static let examplePrompt = BloggingPrompt(
7879
promptID: 239,
@@ -82,7 +83,8 @@ struct BloggingPrompt {
8283
date: Date(),
8384
answered: false,
8485
answerCount: 5,
85-
displayAvatarURLs: []
86+
displayAvatarURLs: [],
87+
attribution: ""
8688
)
8789
}
8890

@@ -96,5 +98,6 @@ extension BloggingPrompt {
9698
answered = remotePrompt.answered
9799
answerCount = remotePrompt.answeredUsersCount
98100
displayAvatarURLs = remotePrompt.answeredUserAvatarURLs
101+
attribution = remotePrompt.attribution
99102
}
100103
}

0 commit comments

Comments
 (0)