Define skeleton for new WordPressData module - #24153
Conversation
Generated by 🚫 Danger |
2131a51 to
325bf00
Compare
|
| App Name | Jetpack Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr24153-758008b | |
| Version | 25.8 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 758008b | |
| App Center Build | jetpack-installable-builds #10635 |
|
| App Name | WordPress Alpha |
|
| Configuration | Release-Alpha | |
| Build Number | pr24153-758008b | |
| Version | 25.8 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 758008b | |
| App Center Build | WPiOS - One-Offs #11604 |
5252c48 to
518924d
Compare
bb53b69 to
c14928d
Compare
| import UIKit | ||
| import AsyncImageKit | ||
| import CoreData | ||
| import UIKit | ||
| import WordPressData | ||
| import WordPressShared | ||
| import AsyncImageKit |
There was a problem hiding this comment.
In hindsight, sorting the imports alphabetically in the context of this PR makes the diff harder to read. Apologies.
I would add
I suggest moving it to
Your call. If it's not logging anything you consider useful, I'd also remove it. |
|
Btw, I really like the name "WordPressData" – rhymes with "CoreData". |
Glad you like it 😄 |
See conversation with @kean at #24153 (comment) This will become useful as some of the code using `WPException` will move away from the main target and into one or more modules.
See conversation with @kean at #24153 (comment) This will become useful as some of the code using `WPException` will move away from the main target and into one or more modules.
Cool. Done via #24157 |
See how https://buildkite.com/automattic/wordpress-ios/builds/25994 failed: ``` error: Build input file cannot be found: '/opt/ci/builds/builder/automattic/wordpress-ios/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/WordPress Alpha/BuildProductsPath/Release-Alpha-iphoneos/WordPressDataObjC.o'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'WordPress' from project 'WordPress') ```
Not sure how it was working before — and in CI too, see https://buildkite.com/automattic/wordpress-ios/builds/25995 My only guess is that the file became available in the DerivedData somehow because the Swift package importing it was built before the app targets? Odd...
It was needed just because there was no file in the package yet, but we've addressed it whenw e moved `CoreDataService` in there.
c14928d to
2d08677
Compare
See conversation with @kean at #24153 (comment) This will become useful as some of the code using `WPException` will move away from the main target and into one or more modules.


Internal ref pbArwn-7b1-p2
CoreDataStack(Swift)in WordPressDataTesting
Next steps
xcdatamodeldfolder into the package. Also check out how Tracks does itTaggedManagedObjectIDinto the packageLooking at the code, I noticed two things that we need to take a decision on:
WPException. Make it into its own package to import it in WordPressData and in the other code usingWPException, or expose it through WordPressData and make those types that need it import WordPressData.My thoughts in the details. What do you think @crazytonyli @kean ?
WPException. Packages are cheap to add thanks to the current setup. Let's keep things clean and make a micro-package forWPException. It also keeps things clearer because importing a model/data package only to use an exception seems confusing to me.Regression Notes
PR submission checklist:
RELEASE-NOTES.txtif necessary.Testing checklist: