Giter Site home page Giter Site logo

mveril / mobiledevicesharp Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 3.0 8.3 MB

A C# object oriented wrapper around Libimobiledevice

License: MIT License

C# 100.00%
idevice imobiledevice iphone wapper api-wrapper libimobiledevice object-oriented-programming

mobiledevicesharp's Introduction

MobileDeviceSharp

A C# object-oriented wrapper around Libimobiledevice

Libimobiledevice is a cool project. It is useful to interact programmatically with Apple devices exactly like iTunes do. It's a C Open source library. An Open source .NET bindings library exits on NuGet, and it's called imobiledevice-net, but this library is just a binding and remains a 100 % functional programming API. So it does not respect C# language standards. The objective of this project is to provide a fully object-oriented API for C# and .NET developers to interact with Apple device. It uses Libimobiledevice under the hood but try to use all the C# languages features to provide an easy-to-use API. Somme examples:

  • The LockdownSession.ParAsync API can be used to pair a device asynchronously.
  • The PlistDictionary implement IDictionary<String,PlistNode> interface.
  • The AFCStream class allow interacting with Apple device files using the Apple file conduit protocol with the standard .NET Stream API.
  • With all supported framework the overloads of InstallationProxySession.GetApplications() return an IEnumerable<Application> and on .NET Core 3 or greater InstallationProxySession.GetApplicationsAsync() return an IAsyncEnumerable<Application>

Main API and associated libraries

We have created some libraries, indeed we wanted to separate the project into different libraries as much as possible (in the future we could try to make other separations if possible). In this part we will describe the content of the already implemented APIs (when it's possible a link with it's main associated native Libimobiledevice library is provided)

MobileDeviceSharp library

MobileDeviceSharp

This namespace contains the core APIs.

MobileDeviceSharp.Usbmuxd

  • UsbmuxdService

MobileDeviceSharp.ProperyList

  • PlistDocument
  • PlistDictionary
  • PlistArray

MobileDeviceSharp.DiagnosticsRelay

Provide .NET API for diagnostics_relay.h

  • DiagnosticRelaySession

MobileDeviceSharp.NotificationProxy

Provide .NET API for notification_proxy.h

  • NotificationProxySession

MobileDeviceSharp.AFC library

MobileDeviceSharp.AFC

Provide .NET API for afc.h

  • AFCSession
  • AFC2Session
  • AFCFile
  • AFCDirectory
  • AFCStream

MobileDeviceSharp.InstallationProxy library

MobileDeviceSharp.InstallationProxy

Provide .NET API for installation_proxy.h

  • InstallationProxySession
  • Application
  • CapabilityMatcher
  • InstallationProxyArchiveOptions
  • InstallationProxyInstallOptions

MobileDeviceSharp.HouseArrest library

MobileDeviceSharp.HouseArrest

Provide .NET API for house_arrest.h

  • HouseArrestSession
  • AFCHouseArrestSession

MobileDeviceSharp.SpringBoardServices library

MobileDeviceSharp.SpringBoardServices

Provide .NET API for sbservices.h

  • SpringBoardServiceSession

We also have MobileDeviceSharp.SourceGenerator and MobileDeviceSharp.CompilerServices to make programming these libraries easier using Source Generators.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Contributing

We welcome contributions to the MobileDeviceSharp project. Please check out the CONTRIBUTING.md file for more information on how to get started.

Please note that currently, this project does not have any unit tests. So, we ask that contributors take extra care to ensure the stability and reliability of the code when making changes. Thank you!

Conclusion

We are aware that there is still a lot of work to implement all the APIs proposed in the Libimobiledevice library in a modern C# compliant way, but it is a good starting point, and we hope that this project can grow over time to make it easy to develop software that connects with Apple Devices in .NET.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.