-
Notifications
You must be signed in to change notification settings - Fork 358
Cococapods: Clean-up the lockfile data model #11085
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
base: main
Are you sure you want to change the base?
Conversation
b473ca4 to
2e2e47a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11085 +/- ##
=========================================
Coverage 57.38% 57.38%
+ Complexity 1703 1701 -2
=========================================
Files 346 346
Lines 12833 12833
Branches 1218 1218
=========================================
Hits 7364 7364
Misses 4999 4999
Partials 470 470
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
50191db to
27ea0af
Compare
sschuberth
left a comment
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.
For the record, I'm not a big fan of making DependencyHandler implementations stateful. I like APIs that ensure correct use at compile-time, but with the stateful design you have to remember to call setContext() and will only realize at runtime that something is wrong.
I know that the Yarn implementations already are stateful, too, and that we have no clear rule in favor or against this. I just wanted to share my opinion.
I also think that @bs-ondem should share his opinion as he contributed the withResolvedPaths() logic.
plugins/package-managers/cocoapods/src/main/kotlin/CocoaPods.kt
Outdated
Show resolved
Hide resolved
Simplify an upcoming change. Signed-off-by: Frank Viernau <[email protected]>
Prepare for making `Dependency` a non-inner class again. Signed-off-by: Frank Viernau <[email protected]>
Remove mixing the upstream data model with means for mapping it to ORT's model. Also revert back to a non-inner data class, which removes unnecessary complexity. Signed-off-by: Frank Viernau <[email protected]>
Clearly separate the upstream data model, and simplify things by turning the class into a non-inner data class again. Signed-off-by: Frank Viernau <[email protected]>
Remove complications which have become unnecessary with recent changes in `Lockfile`. Signed-off-by: Frank Viernau <[email protected]>
Make the names a tad more speaking and consistent. Signed-off-by: Frank Viernau <[email protected]>
Signed-off-by: Frank Viernau <[email protected]>
Signed-off-by: Frank Viernau <[email protected]>
27ea0af to
b456617
Compare
Clearly separate again the upstream data model, from means to mapping it to ORT's model.
Furthermore, eliminate complexities related to the use of inner classes and mapping a
Lockfileto anotherLockfile, e.g inwithResolvedPaths().There was also a hidden requirement to not access the (now removed) lazy properties too early.