Update WordPressKit and WordPressAuthentificator setup#23392
Merged
jkmassel merged 15 commits intotask/xcode-targets-merge-trunkfrom Jul 5, 2024
Merged
Update WordPressKit and WordPressAuthentificator setup#23392jkmassel merged 15 commits intotask/xcode-targets-merge-trunkfrom
jkmassel merged 15 commits intotask/xcode-targets-merge-trunkfrom
Conversation
Collaborator
Generated by 🚫 Danger |
Contributor
|
| App Name | WordPress Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr23392-68cf81b | |
| Version | 25.1 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 68cf81b | |
| App Center Build | WPiOS - One-Offs #10236 |
Contributor
|
| App Name | Jetpack Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr23392-68cf81b | |
| Version | 25.1 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 68cf81b | |
| App Center Build | jetpack-installable-builds #9285 |
kean
commented
Jun 27, 2024
|
|
||
| // MARK: - RotationAwareNavigationViewController | ||
| // | ||
| public class RotationAwareNavigationViewController: UINavigationController { |
Contributor
Author
There was a problem hiding this comment.
I moved it from WordPressUI to make sure WordPressAuthentificator doesn't re-exposes WordPressUI in its auto-generated header when creating an Objective-C module. I made some changes to remove its uses from Objective-C, that I kept, but then realized that there were a ton more usages from its test target, so I had to fix it.
Evidently, you can't include a Swift module in headers for an Objective-C module.
| @objc optional func secondaryButtonPressed() | ||
| @objc optional func tertiaryButtonPressed() | ||
| func secondaryButtonPressed() | ||
| func tertiaryButtonPressed() |
Contributor
Author
There was a problem hiding this comment.
It's a safe change because it never used dynamically from Objective-C (think respondsToSelector: to dynamically configure the UI.
1 task
jkmassel
approved these changes
Jul 5, 2024
jkmassel
added a commit
that referenced
this pull request
Jul 5, 2024
* Optimize TopTotalsCell to add rows only when the cell loads TopTotalsCell was calling addRows on every configuration of cell which in turn created and added a hierarchy of UIStackView-based views. Optimizing TopTotalsCell to only add rows once and then make manipulations on existing rows. * Optimize CountriesCell to add rows only when the cell loads * Do not track StatsTraffic tableView scrolling * Update RELEASE-NOTES.txt * Update TopTotalsCell to use setNeedsLayout for more efficiency * Update CountriesCell to use setNeedsLayout for more efficiency * Update RELEASE-NOTES * Move additional checks for adding default rows into the extension * Fix rare crash in GutenbergWebViewController * Update release notes * Remove force layout calls when setting subtitle visibility These calls were added together with dynamic type support, however, they slow down layout process of the cell * Make maximum content size category smaller for stats cell subtitles * Create StatsRowsCell with default child stack view rows and ability to configure more * Put analyticsTracker back since it's used by JetpackBanner * JPBackground as png * Move JPBackground to AppImage specific to the Jetpack app * Remove Stories related files * Remove unused site creation icons * Reduce rppreview size * Replace JPBackground with tiny-fied icons * Remove custom fonts used by Kanvas * Remove remaining Kanvas related code * Remove Kanvas related code * Remove StoryEditor * Replace remaining Kanvas usages * Remove StoriesIntroViewController * Remove Kanvas pod * Update rubocop.yml * Add unique identifier to file downloads rows (#23310) File Downloads data can be identical which can result in a rare duplicate diffable data source identifiers crash. Pass a unique identifier to ensure that each file downloads row is treated as unique. * Support editing media metadata via XML-RPC #809 (#23316) * Support media metadata editing for XML-RPC connected self-hosted sites - Updated WordPressKit supports editing title, description, and caption of the media via XML-RPC - XML-RPC API doesn't support editing alt-text * Support editing media metadata via XMLRPC in MediaService Media is a type of a post therefore "wp.editPost" can be used to edit media metadata. Note that alternative text cannot be edited due to lack of XML-RPC support https://core.trac.wordpress.org/ticket/58582 * Update RELEASE-NOTES.txt * Fix warnings in MemoryCache * Fix warnings in CachedAsyncImage * Fix more warnings * Remove deprecated in JetpackBrandingVisibility.enabled * Remove AlamofireNetworkActivityIndicator (#23385) * Merge 25.1 release finalization (#23391) * Fix announcement card keep showing up after tapping Done (#23384) * Update app translations – `Localizable.strings` * Update WordPress metadata translations * Update Jetpack metadata translations * Bump version number --------- Co-authored-by: David Christiandy <1299411+dvdchr@users.noreply.github.com> * Update WordPressKit and WordPressAuthentificator setup (#23392) * Install WordPressUI using SPM * Remove WordPressShared from Podfile * Add WordPressShared using SPM * Fix WordPress compilation * Fix WordPressKit being embeded in the wrong targets * Disable some warnings in WordPressKit * Remove redundant manual linker flags * Fix WordPressKit tests * Fix WordPressAuthentificator tests * Remove Specta and Expecta from Podfile * Fix WordPressAuthentificator tests by temporary disabling LoginFacadeTests * Update WordPressAuthenticator so that it could be compliled as an ObjC module again * Rewrite LoginFacadeTests * Fix WordPressTests * Add missing executable_path/../../Frameworks in the share extensions --------- Co-authored-by: Povilas Staskus <povilas.staskus@automattic.com> Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com> Co-authored-by: WordPress Mobile Bot Account <mobile+wpmobilebot@automattic.com> Co-authored-by: David Christiandy <1299411+dvdchr@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


I tested an original PR and there was a small issue with
WordPressKitnot being included in theJetpackapp. I fixed it, and also followed Tony's suggested next steps by importingWordPressSharedandWordPressUIusing SPM to get rid of the custom CocoaPods scripts.Tony's PR was a bit behind, so I merged trunk in a separate PR to make it easier to review: #23393.
Changes
WordPressAuthentificatorand others, which was leading to it being duplicated multiple times. EmbedWordPressKitin the app target itself. You can’t embed one dynamic framework framework into another dynamic framework on iOS – it works only on macOS. They have to go in the app.LoginFacadeTeststests withoutSpectaandExpectin order to remove them (it was needed because without the custom scripts I mentioned earlier, it was no longer working)WordPressAuthentificatorandWordPressKitto make sure it doesnt' re-exportWordPressUIand other modules in its Objective-C auto-generated module header.@executable_path/../../Frameworksto the share extensions – apparently it got deleted at some pointNext Steps
Package.swiftfile that will define all the targets in the app and all their dependencies (stop using Xcode UI for that)WordPressSharedandWordPressUIto the monorepoWordPressAuthentificatorto use the newGravatarpackage and install it as a Swift package – looks like the team integrating it missed itTo test:
Regression Notes
Potential unintended areas of impact: everything
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txtif necessary.Testing checklist: