Skip to content

A CookieCutter template for generating a C# binding project for binding an Objective-C static library.

License

Notifications You must be signed in to change notification settings

SandyChapman/cookiecutter-csharp-objc-binding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cookiecutter-csharp-objc-binding

A CookieCutter template for generating a C# binding project for binding an Objective-C static library.

Official cookiecutter repo is available here: https://github.com/audreyr/cookiecutter

It is recommended to first generate the ApiDefinition file using Objective Sharpie provided by Xamarin.

Then, execute the cookie cutter using a Python script that will substitute the api_definition value in the cookiecutter.json file and will copy your static library.

Example Python Usage:

with open('path/to/ApiDefinitions.cs') as apis:
            cookiecutter('gh:SandyChapman/cookiecutter-csharp-objc-binding',
                         extra_context={'api_definition': apis.read().replace('\n', '\n\t'),
                                        'library_name': 'MyLibrary'},
                         no_input=True)
            shutil.copyfile('./libMyLibrary.a', './XamarinBinding/XamarinBinding/libMyLibrary.a')

Alternatively, you can manually copy the library file into the project and copy-paste your API definition as desired.

About

A CookieCutter template for generating a C# binding project for binding an Objective-C static library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published