Skip to content

Commit 9d965d0

Browse files
committed
Merge branch 'trunk' into task/xcode-targets-wp
2 parents 13c85e5 + bae5a91 commit 9d965d0

130 files changed

Lines changed: 343 additions & 2273 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ AllCops:
33
- DerivedData/**/*
44
- Pods/**/*
55
- vendor/**/*
6+
- WordPressAuthenticator/**/*
7+
- WordPressKit/**/*
68
NewCops: enable
79

810
Metrics/BlockLength:

Podfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ def gravatar
5656
pod 'GravatarUI', '2.0.0'
5757
end
5858

59-
def kanvas
60-
pod 'Kanvas', '~> 1.4.4'
61-
# pod 'Kanvas', git: 'https://github.com/tumblr/Kanvas-iOS.git', tag: ''
62-
# pod 'Kanvas', git: 'https://github.com/tumblr/Kanvas-iOS.git', commit: ''
63-
# pod 'Kanvas', path: '../Kanvas-iOS'
64-
end
65-
6659
def shared_with_all_pods
6760
wordpress_shared
6861
end
@@ -107,7 +100,6 @@ abstract_target 'Apps' do
107100
## ====================
108101
##
109102
wordpress_shared
110-
kanvas
111103
gravatar
112104

113105
# Production

Podfile.lock

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ PODS:
1616
- GravatarUI (2.0.0):
1717
- Gravatar (= 2.0.0)
1818
- Gutenberg (1.120.1)
19-
- Kanvas (1.4.9):
20-
- CropViewController
2119
- MediaEditor (1.2.2):
2220
- CropViewController (~> 2.5.3)
2321
- Specta (1.0.7)
@@ -37,7 +35,6 @@ DEPENDENCIES:
3735
- Gravatar (= 2.0.0)
3836
- GravatarUI (= 2.0.0)
3937
- Gutenberg (from `https://cdn.a8c-ci.services/gutenberg-mobile/Gutenberg-v1.120.1.podspec`)
40-
- Kanvas (~> 1.4.4)
4138
- MediaEditor (>= 1.2.2, ~> 1.2)
4239
- Specta (= 1.0.7)
4340
- SwiftLint (= 0.54.0)
@@ -57,7 +54,6 @@ SPEC REPOS:
5754
- Expecta
5855
- Gravatar
5956
- GravatarUI
60-
- Kanvas
6157
- MediaEditor
6258
- Specta
6359
- SwiftLint
@@ -82,7 +78,6 @@ SPEC CHECKSUMS:
8278
Gravatar: 54fc63ea6298e9afca7329007815be25868f1dfe
8379
GravatarUI: bb5e03cda2da61e54aa1c20d4dde32b7153fa8b4
8480
Gutenberg: 0699e7dd207afb591ccd5e81252a92e6e7781391
85-
Kanvas: cc027f8058de881a4ae2b5aa5f05037b6d054d08
8681
MediaEditor: d08314cfcbfac74361071a306b4bc3a39b3356ae
8782
Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66
8883
SwiftLint: c1de071d9d08c8aba837545f6254315bc900e211
@@ -91,6 +86,6 @@ SPEC CHECKSUMS:
9186
WordPressShared: 0160364ed24f4d67fed4e85003fefa837faad84f
9287
WordPressUI: f883fdd2508a0bc525c19805b2bbae980b581271
9388

94-
PODFILE CHECKSUM: be2b1266b694f9fb945c63ec61af8a26ee415305
89+
PODFILE CHECKSUM: 2c4301332e4759f1e2cf52493c97c0c95207b1a0
9590

9691
COCOAPODS: 1.15.2

RELEASE-NOTES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
25.2
22
-----
3+
4+
* [*] [Jetpack-only] Stats: Made optimizations to enhance scrolling performance. [#22847]
35
* [*] Simplify post list context menu sections [#23356]
46
* [*] Fix an issue with incorrect snackbar shown when saving drafts manually [#23358]
7+
* [**] Support editing media metadata for sites not powered by Jetpack and reliant on XML-RPC [#23316]
8+
* [*] Fix rare crash in the unsupported block editor [#23379]
59

610
25.1
711
-----

WordPress/Classes/Models/Blog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ typedef NS_ENUM(NSUInteger, BlogFeature) {
7474
BlogFeatureNoncePreviews,
7575
/// Does the blog support editing media metadata?
7676
BlogFeatureMediaMetadataEditing,
77+
/// Does the blog support editing media alternative text?
78+
BlogFeatureMediaAltEditing,
7779
/// Does the blog support deleting media?
7880
BlogFeatureMediaDeletion,
7981
/// Does the blog support Stock Photos feature (free photos library)
@@ -82,8 +84,6 @@ typedef NS_ENUM(NSUInteger, BlogFeature) {
8284
BlogFeatureTenor,
8385
/// Does the blog support setting the homepage type and pages?
8486
BlogFeatureHomepageSettings,
85-
/// Does the blog support stories?
86-
BlogFeatureStories,
8787
/// Does the blog support Jetpack contact info block?
8888
BlogFeatureContactInfo,
8989
BlogFeatureBlockEditorSettings,

WordPress/Classes/Models/Blog.m

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -592,13 +592,16 @@ - (BOOL)supports:(BlogFeature)feature
592592
case BlogFeatureNoncePreviews:
593593
return [self supportsRestApi] && ![self isHostedAtWPcom];
594594
case BlogFeatureMediaMetadataEditing:
595-
return [self supportsRestApi] && [self isAdmin];
595+
return [self isAdmin];
596+
case BlogFeatureMediaAltEditing:
597+
// alt is not supported via XML-RPC API
598+
// https://core.trac.wordpress.org/ticket/58582
599+
// https://github.com/wordpress-mobile/WordPress-Android/issues/18514#issuecomment-1589752274
600+
return [self supportsRestApi];
596601
case BlogFeatureMediaDeletion:
597602
return [self isAdmin];
598603
case BlogFeatureHomepageSettings:
599604
return [self supportsRestApi] && [self isAdmin];
600-
case BlogFeatureStories:
601-
return [self supportsStories];
602605
case BlogFeatureContactInfo:
603606
return [self supportsContactInfo];
604607
case BlogFeatureBlockEditorSettings:
@@ -712,11 +715,6 @@ - (BOOL)supportsPluginManagement
712715
return supports;
713716
}
714717

715-
- (BOOL)supportsStories
716-
{
717-
return NO;
718-
}
719-
720718
- (BOOL)supportsContactInfo
721719
{
722720
return [self hasRequiredJetpackVersion:@"8.5"] || self.isHostedAtWPcom;

WordPress/Classes/Services/PostCoordinator.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -717,13 +717,6 @@ class PostCoordinator: NSObject {
717717
return post.titleForDisplay()
718718
}
719719

720-
func add(assets: [ExportableAsset], to post: AbstractPost) -> [Media?] {
721-
let media = assets.map { asset in
722-
return mediaCoordinator.addMedia(from: asset, to: post)
723-
}
724-
return media
725-
}
726-
727720
private func observeMedia(for post: AbstractPost, completion: @escaping (Result<AbstractPost, SavingError>) -> ()) -> UUID {
728721
// Only observe if we're not already
729722
let handleSingleMediaFailure = { [weak self] (error: Error) -> Void in

WordPress/Classes/Services/Stories/CameraHandler.swift

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)