Skip to content
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

Allow referencing Akavache.Drawing from NetStandard project #560

Merged
merged 2 commits into from
Jan 29, 2020

Conversation

john-manktelow
Copy link
Contributor

What kind of change does this PR introduce?
Includes Akavache.Drawing in the .sln file
Adds netstandard2.0 the target frameworks for Akavache.Drawing

What is the current behavior?
After the bitmap mixing were moved to Akavache.Drawing, they could no longer be used in a .NET Standard project.

For example, on macOS, the following warning would be raised:

  [NU1701] Package 'Akavache.Drawing 6.10.2' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.1'. This package may not be fully compatible with your project.

What is the new behavior?
Akavache.Drawing's targets include netstandard2.0. Registrations is still included, but does not call RegisterPlatformBitmapLoader when built for NetStandard.

What might this PR break?
The test pass rate is unchanged and the change is only to the newly separate Drawing project.

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Not sure how to unit test something like this.

Other information:

Allows a netstandard library to continue working with IBitmaps in Akavache, provided the native host registers the IPlatformBitmapLoader.
@dnfclas
Copy link

dnfclas commented Jan 28, 2020

CLA assistant check
All CLA requirements met.

@glennawatson
Copy link
Contributor

This would likely bring back the Mac compile issues so bit hesitant to merge this one.

@glennawatson glennawatson merged commit 5490c28 into reactiveui:master Jan 29, 2020
@glennawatson
Copy link
Contributor

Given its the drawing package not the main one should be fine to unblock blazor and wasm users. So I'll merge it in.

Thanks for the pr

@john-manktelow john-manktelow deleted the jm-drawing-netstandard branch January 29, 2020 01:22
@glennawatson
Copy link
Contributor

Hi @john-manktelow this will be included in the release going out tonight for Akavache. Thanks for your help again.

@lock lock bot locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants