A template for a Djinni library that can be used in Java/Kotlin on Android, ObjC/Swift on iOS/macOS and C# on Windows.
VERSION
file specifying a temporary version for local development. The build process relies on the existence
of either a VERSION
-file (e.g. 0.0.1
), or a Git release tag (e.g. v0.0.1
) for determining the library version.lib/djinni-generated
, as it will be updated by
Djinni automatically.This template integrates into each build system by providing a package format native to each platform.
repositories {
maven {
url "https://maven.pkg.github.com/jothepro/djinni-library-template"
}
}
dependencies {
implementation 'my.djinnilibrary:mydjinnilibrary'
}
The NuGet package only works for .NET 6 (Core) Projects!
https://nuget.pkg.github.com/jothepro/index.json
MyDjinniLibrary
and install the package.jothepro/djinni-library-template-swiftpackage
as Package dependency to your XCode project.
It contains the XCFramework with the Objective-C binaries.import MyDjinniLibrary
This template is meant to be used in a C++ project on Linux, e.g. together with gtkmm-3.0
.
The binary for Linux consists of just the C++ interface without any wrapper.
conan remote add djinni_library_template https://gitlab.com/api/v4/projects/27897297/packages/conan
[requires]
my_djinni_library/1.0.0@jothepro/release
Read Next: Development