-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Work bench PR for one-go Core Data extraction into target #24242
Draft
mokagio
wants to merge
116
commits into
trunk
Choose a base branch
from
mokagio/wordpressdata-target-xcdatamodeld
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,695
−1,916
Draft
Changes from all commits
Commits
Show all changes
116 commits
Select commit
Hold shift + click to select a range
5984666
Convert WordPressData from Swift package to Xcode target
mokagio 2785440
Disable automatic code signing for WordPressData framework
mokagio 43e1705
Disable "Build libraries for distribution" flag in WordPressData
mokagio 3c10d22
Let WordPressData read iOS deployment target from the project config
mokagio 6d72478
Use the same `SWIFT_INSTALL_OBJC_HEADER` as WordPressAuthenticator
mokagio abff234
Link WordPressData to the Jetpack target
mokagio b522f16
Add CocoaLumberjack to the WordPressData dependencies
mokagio 43b9f98
Add SFHFKeychainUtils as a WordPressData dependency
mokagio 55b5625
Move `NSManagedObject+Lookup` and `TaggedManagedObjectID` to WordPres…
mokagio a3ceaee
Disable `wpAssertionFailure` in `CoreDataHelper`
mokagio 28b18ed
Add WordPressKit as a dependency to WordPressData
mokagio 962b6c4
Move `PostContentProvider.h` to WordPressData
mokagio 39cb3a6
Move `PostVisibility` definition in `AbstractPost.swift`
mokagio 0cf5736
Move various file in staging folder before move to WordPressData
mokagio 32d89b0
Move some models and their deps to WordPressData – Build fails
mokagio e84b287
Move a few more files, the next will be `WPAccount`...
mokagio 1a6a19d
Move WPAccount and related dependencies - Build is worse than before
mokagio e2a9bf9
Remove a stray trailing new line from `PromptRemindersScheduler.swift`
mokagio 6d6809c
Move yet more files...
mokagio e148a4e
Remove a couple of `WordPress-Swift.h` imports from WordPressData
mokagio 4eda235
Do not treat warnings as errors in WordPressData
mokagio ce9dbf9
Move more files — Can't find WordPressData-Swift.h?!
mokagio d208e37
Add `NSURL+IDN` as a WordPressData dependency
mokagio 9573c98
Add CocoaLumberjack (not the Swift) as a WordPressData dependency
mokagio 06d1117
Add a bunch of missing imports
mokagio 2d29f3f
Move `defaultWordPressComAccountRestAPI` definition to WordPressData
mokagio 68985ce
Remove knowledge of `AppConfiguration` from WPAccount Objective-C
mokagio b1f01ea
Add precompiled header to WordPressData to configure CocoaLumberjack
mokagio 5f61d4c
Remove documentation header params without descripiton
mokagio 1ce5c3f
Add some missing imports and convert to angle bracket imports
mokagio f1de7a8
Add dedicated `.m` file for setting `DDLogLevel`
mokagio ad3fcbf
With these hacks, WordPressData compiles as a standalone framework
mokagio ab9f036
Fix issue with WordPressData tests attempting to build WordPress
mokagio 09d6684
Disable CocoaLumberjack temporarily in WordPressData
mokagio 83af2d1
Start addressing build failures when building WordPress
mokagio 39e155e
Address some more import and access control issues to use WordPressData
mokagio 24b19b5
Move `Domain.swift` to WordPressData
mokagio 3aa2e47
Move `Role` to WordPressData
mokagio e9e2e23
Access control update in `Page`
mokagio 31cb81c
Move `BlogQuery` to WordPressData
mokagio 0313c12
Access control updates
mokagio 3f5e16b
Move `Array+Page.swift` to WordPressData
mokagio dff027f
Move `Blog+Quota` to WordPressData
mokagio 7de0721
Add CI step for fast iteration tests on WordPressData
mokagio 1428772
Remove more incomplete documentation comments
mokagio fc44dc3
Address some more access control build failures
mokagio efeef8a
Give `BlogQuery` an explicit `init`
mokagio 9357520
Add more necessary import and access control changes
mokagio f754dd4
Some more imports and access control changes
mokagio 2af4611
Move `PublicizeInfo` to WordPressData
mokagio eb6a137
Move `SiteSuggestion` to WordPressData
mokagio 7fa19e7
Move `UserSuggestion` to WordPressData
mokagio ecefd37
More access control changes to get the code to compile
mokagio d53ad35
More access control changes
mokagio db834a4
Update more access control levels
mokagio 91c642a
Move `PageTemplateCategory` to WordPressData
mokagio d125e56
Move `PageTemplateLayout` to WordPressData
mokagio 42f9774
More imports and access control
mokagio f117d63
Actually add `UserSettings` to the WordPressData
mokagio 5e10c44
More...
mokagio 0f40d14
Remove `WPAccount.h` imports outside WordPressData
mokagio 18cf578
Remove imports of classes that are now in WordPressData
mokagio c382201
More...
mokagio 3d7ecf4
Rebase - Move Comment to WordPressData
mokagio d31f441
Remove unused `AccountService.h` import
mokagio 05b4afa
Move `ReaderPost` and related dependencies
mokagio 1d6ce8b
More...
mokagio 83f88c5
Address a couple for `FIXME`s from the `ReaderPost` move
mokagio 200ff3b
More...
mokagio e6dc51b
Update `DataMigrator` for older `SharedDataIssueSolver` changes
mokagio ee520fe
More...
mokagio fb06d74
Remove redundant `public` access-level
mokagio 2b923a7
Remove useless `NSURL+IDN` import
mokagio 11f65dd
Begin to address test build failures...
mokagio 36df4db
Move WordPressData files from staging folder to target folder
mokagio 964b8b4
Split WordPressData in Objective-C and Swift folders
mokagio 156dabe
Use same module settings as WordPressAuthenticator
mokagio 58471be
Use `xcconfig` for WordPressData, same as WordPressAuthenticator
mokagio 66079ce
Make WordPress unit tests compile
mokagio f6b6790
Use default `PRODUCT_MODULE_NAME` definition
mokagio 85b5691
Add WordPressData tests to the main unit tests `xctestplan`
mokagio 9d58092
Add `BlockedAuthor` to WordPressData
mokagio f5e59a2
Move Gutenberg models to WordPressData
mokagio 6175810
Add FormattableContentKit dependency to WordPressData
mokagio d4f00c9
Move more models, build still broken
mokagio 5fccd59
Address SwiftLint violations
mokagio 039f8f2
Add some missing imports
mokagio 26ab2c7
Add more files to WordPressData target
mokagio dde7837
Move other files to WordPressData
mokagio 33e94f1
Move most of the Blogging Prompts models to WordPressData
mokagio a01d92f
Move more models to WordPressData
mokagio 85bcdf8
Make WordPress and Jetpack targets build
mokagio 9618eb3
Make WordPress unit tests build
mokagio 469e3dc
Add Gravatar as a dependency to WordPressData
mokagio 99b9332
Remove unused WordPressUI import from `ManagedPerson`
mokagio 5c5165c
Move `ManagedPerson` to WordPressData
mokagio 29d7fac
Add note for incorrect `Notification` ext in FormattableContentKit
mokagio 7531f94
Remove `ReachabilityUtils.onAvailableInternetConnectionDo`
mokagio bcd1ac9
Move `Notification` to WordPressData
mokagio 88efddc
Fix `WPAccount+Keychain` location in WordPressData subfolders
mokagio e9144a7
Move `WordPress.xcdatamodeld` to WordPressData
mokagio 42d07a4
Move `Blog` `BlockEditorSettings` `Capabilities` and `Plans` extensions
mokagio 54899b2
Convert a `Blog support...` from Objective-C to Swift
mokagio c7b97cf
Port `Blog` `dotComID` and `willSave` to Swift
mokagio cf91cad
Port `siteVisibility` `Blog` property to Swift
mokagio 884c4cd
Update after rebase - SharingAuthorizationHelper.m
mokagio f59c04f
Update after rebase - Blog.m
mokagio 90c36e7
Update after rebase - WPAccount+RestApi.swift
mokagio e0ff7dd
Fix after rebase - PostVisibility.swift
mokagio 78f20e9
Remove duplicated import
mokagio 27425aa
Fix after rebase - StatsViewController.m
mokagio bef98f2
Remove code disable during WordPressData move in `Comment`
mokagio c600af8
Remove code disable during WordPressData move in `ReaderSiteTopic`
mokagio ea5dc54
Re-enable `wpAssert` calls in WordPressData thanks to #24346
mokagio 80d3336
Remove code disable during WordPressData move in `ReaderCard`
mokagio 15bbed5
Remove "module WordPress" from `xcdatamodel` entities that had it
mokagio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
Modules/Sources/XcodeSupport/XcodeTarget_WordPressData/Empty.swift
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Foundation | ||
|
||
public struct __Empty {} |
This file contains 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
3 changes: 2 additions & 1 deletion
3
WordPress/Classes/Extensions/Notifications/Notification+Interface.swift
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Foundation | ||
import WordPressData | ||
|
||
extension Post { | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import WordPressData | ||
|
||
extension Blog { | ||
|
||
/// Creates a blank `Blog` object for this account | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Foundation | ||
import WordPressData | ||
|
||
enum MobileEditor: String { | ||
case aztec | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Foundation | ||
import WordPressData | ||
|
||
extension Blog { | ||
var isAutomatticP2: Bool { | ||
|
1 change: 1 addition & 0 deletions
1
WordPress/Classes/Models/Blog/BlogSettings+DateAndTimeFormat.swift
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
This should be fixable by moving some bits back to the app target. I might have been too quick in moving types...
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.
Actually... I'm not sure it's a WordPressData Notification... Anyway, I got rid of
Notification
here altogether in #24354