Skip to content

J-Swift/NukeProxy

 
 

Repository files navigation

NukeProxy

This is a small Xamarin.iOS binding Proxy for Nuke. Since Nuke is a Swift library, which doesn't expose its code with @objc annotations, we cannot bind it directly and need a proxy for this. This proxy provides enough API for Xamarin.Forms.Nuke to function. If you need more of Nukes API to be surfaced, PRs are welcome.

Installation

NuGet:

Install-Package Xamarin.Nuke

Setting up locally

Make sure to install carthage first. This can be done through Homebrew:

brew install carthage

Getting Nuke from carthage:

sh carthage.sh update --use-xcframeworks

Exposing more API

Open the NukeProxy.xcodeproj in Xcode and add more code to NukeProxy.swift.

Make sure to annotate correctly with @objc. Refer to the other code and Xamarin.iOS Swift Bindings. When done adding more code, ensure project builds:

  1. Run sh build-fat.sh from commandline (make sure you have the latest Sharpie installed)
  2. Copy the new definitions from the sharpie_output folder into the Xamarin.Nuke C# project
  3. Adjust the definitions and ensure the project builds
  4. Create a PR to this repository

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 70.0%
  • Swift 19.5%
  • Shell 7.6%
  • Objective-C 2.9%