-
-
Notifications
You must be signed in to change notification settings - Fork 760
Enable Refit on iOS via code generation #38
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
Conversation
Whom do we need to lynch at Xamarin to get this hotness integrated? ♨️ 🍰 |
Hah! I filed a bug with their support team, hopefully @chrisntr that @conceptdev gets @jamesmontemagno their @zgramana attention :cough: @migueldeicaza, so that we can get xbuild for Xamarin.iOS and move from the old mdtool-based build system |
Paul, we have been working on a migration to xbuild for iOS, but the devil is in the details :-( We want to move as much as the next guy, but needs some work until it is finished. |
@migueldeicaza Totally understand! Just wanted to add my +1 |
Sorry, something went wrong.
Hi paul, I'd be happy to put in any work required to get this going on iOS. |
@cfraz89 Yeah, the tests show how to rig it up in the build - it works in the csproj, but you have to manually set it up by hand. https://github.com/paulcbetts/refit/blob/roslyn-codegen/Refit-Tests/Refit-Tests-iOS.csproj#L121-127 are the relevant lines that make it work |
@paulcbetts Thanks, got it working. Running the generator from out of the iOS csproj wouldn't work however, even in the fresh Refit-Tests project. mdtool just seemed to ignore the section... However have got it going integrated into our build system, is working nicely. Ty, would totally recommend releasing as a beta or whatnot in its current state. |
Any updates on that one? |
@SimonSimCity No updates. The library as-is works great on every other platform, including OS X. |
This should totally work on the new unified Xamarin.iOS now, gonna pick this up again 🔜 |
Hot stuff <3
|
…bolt things into it in a pinch
226ced0
to
129bbc3
Compare
Enable Refit on iOS via code generation
|
This is on-hold until Xamarin fixes the iOS build system on OS X so that we can add pre-build commands
This PR 🔥s Castle.Core's dynamic proxies and replaces them with code generation via analysing the existing source files with Roslyn and running a pre-build task which generates a new "RefitStubs.cs" code file.
TODO: