-
Notifications
You must be signed in to change notification settings - Fork 45
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
Expose structured diff results (from XCDiffCore
)
#85
Comments
8aeb133fa0c2f0c6e6e8042b026c27cfa1c25b3b |
|
Is your feature request related to a problem? Please describe.
Using
XCDiffCore
as library enables other tools and application to leverage xcdiff programatically to perform project comparisons and retrieve their results. This however is limited to textual results only rather than the structured results.e.g. The main entry point is
ProjectComparator
This returns
Result
which exposes the results as a rawString
:Describe the solution you'd like
Expose another method or component that can return the underlying
ProjectCompareResult
(which is structured).One option could be to add another method on
ProjectComparator
:e.g.
structuredCompare()
This however makes the API a little awkward as a
ProjectComparator
is obtained viaProjectComparatorFactory
which requires specifying the list of comparators along with aMode
which specifies the outputformat
that is not applicable when dealing with structured results.Another option could be extend
ProjectComparatorFactory
to return a new typeStructuredProjectComparator
, the factory however will not require specifyingMode
e.g.
Describe alternatives you've considered
ProjectCompareResult
structure that is capable of decoding the raw json back into something more structured. This feels unnecessary seeing theProjectCompareResult
is already public (just notDecodable
).StructuredProjectComparator
outside ofXCDiffCore
, this is a little challenging as there isn't any public mechanisms to create the built in comparators. Furthermore, requires clients to dealXCDiffCore
dependencies (XcodeProj
loading andPathKit
) to recreate the project comparator.The text was updated successfully, but these errors were encountered: