-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove EditPostActivity
companion object
#22122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr22122-8f91c58 | |
Commit | 8f91c58 | |
Direct Download | wordpress-prototype-build-pr22122-8f91c58.apk |
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr22122-8f91c58 | |
Commit | 8f91c58 | |
Direct Download | jetpack-prototype-build-pr22122-8f91c58.apk |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #22122 +/- ##
=======================================
Coverage 39.43% 39.43%
=======================================
Files 2149 2149
Lines 101872 101872
Branches 15604 15604
=======================================
Hits 40177 40177
Misses 58126 58126
Partials 3569 3569 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look sound to me. Thank you for progressing this.
I did not experience any regressions while testing GutenbergKit, Gutenberg Mobile, and Aztec.
35df0af
to
27c7104
Compare
Eliminate EditPostActivity companion object and reorganize constants to prepare for GutenbergKitActivity duplication. Changes: - Move shareable constants to EditorConstants (NEW_MEDIA_POST family, timing constants, regex groups, RestartEditorOptions enum) - Move checkToRestart() method to EditorLauncher companion object - Add ViewPager constants back to EditPostActivity as private constants with VIEW_PAGER_ prefix (activity-specific implementation details) - Update all external references to use EditorLauncher.checkToRestart() - Update AnalyticsUtils to use EditorConstants.NEW_MEDIA_POST This eliminates the EditPostActivity companion object while making shareable constants available in EditorConstants. ViewPager configuration remains private to each activity.
9b8b798
to
8f91c58
Compare
|
Motivation
Remove
EditPostActivity
companion object to eliminate activity-specific dependencies beforeGutenbergKitActivity
duplication. Move shareable constants toEditorConstants
and activity-specific constants to private fields.Changes
EditPostActivity
companion object entirelyEditorConstants
checkToRestart()
method toEditorLauncher
ViewPager
constants to private fields withVIEW_PAGER_
prefixNo Functional Changes
This PR contains only code organization changes. No business logic, behavior, or functionality has been modified.