Add basic Xamarin.Mac support #278
Reference in New Issue
Block a user
No description provided.
Delete Branch "xamarin_mac_support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!
If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact cla@fb.com if you have any questions.
CLA should be signed now.
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!
@chamons updated the pull request - view changes
@splhack Can you have a look?
You can now build libmono.dylib via
buck build //csharp:yoganet#default,shared
. Can you revertMONOMAC
changes in csharp/Facebook.Yoga/Native.cs, csharp/Facebook.Yoga/YogaLogger.cs, csharp/Facebook.Yoga/YogaNode.cs?libyoga.dylib
Apparently we need empty ApiDefinition.cs but don't bind static lib. Can you update the comments?
libyoga.dylib
Dynamic
@chamons updated the pull request - view changes
@chamons updated the pull request - view changes
@chamons updated the pull request - view changes
All of the icon images are deleted (default project added them) and I swapped over to the dylib. I also handled all of the code review comments except the request to rewrite the sample.
I'll have to spend more time to do that, later.
Also can you take a look at my directory hierarchy proposal? https://github.com/facebook/yoga/pull/283#issuecomment-267533985
@chamons updated the pull request - view changes
Sample converted. There is one special case hack in the ApplyYogaLayout helper function, but the entire thing is a bit of a hack.
UIView+Yoga.m really needs to get ported over to AppKit.
@splhack Anything else for this?
@chamons It is holiday season so this might take a while to get fully reviews and merged 👍
@emilsjolander Beyond no problem. Just wanted to make sure my end had a nice bow before I disappeared for 🎄
@chamons Sorry for the late reply. Do you mind to move Xamarin.Mac related files to
csharp/Xamarin.Mac
directory like #280csharp/Xamarin.iOS
directory structure?@chamons I'm thinking to merge #283 first. Do you mind to take a look at #283? I think Xamarin.Mac can use
csharp/Facebook.Yoga/Facebook.Yoga.Shared.shproj
as well.@splhack I 👍 that PR earlier.
I'm fine w\ that going in and then reworking on top. I think since it's moving stuff around it should go first anyway.
Want to make sure you are aware of changes being made to the iOS wrapper currently as it might effect this PR https://github.com/facebook/yoga/pull/289
https://github.com/facebook/yoga/pull/283 has been merged now
@splhack @emilsjolander Ok, I've:
On the todo list (outside this PR) is porting YogaKit to Mac/Xamarin.Mac.
Anything else needed for this?
@chamons Thank you for working on this! looks good to me, just a little thing in coding style, we already have 4 spaces indent in all C# files. Do you mind to replace tab?
@splhack Nope. I'll need to remember to teach XS / vim that next time I hack on things.
Let me reformat that...
Used: expand -t 4 foo | sponge foo
I think I got them all. I did not both formatting the machine generated files (csproj, sln, info.plist, designer.cs).
@splhack has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Pull request closed