Version 2.2.0
Plugin Configuration
The com.simplito.privmx-endpoint-install-native
Gradle plugin automates the process of downloading
and installing shared libraries from GitHub releases assets
into the module directory with version specified in privmxEndpointInstallJni
task configuration.
The downloaded libraries are installed in the src/main/jniLibs
directory of your module.
The source code of this plugin is available on GitHub.
Options
version
(required)
The version of the native shared libraries to download.
public String version
platforms
(optional)
A list of platforms (as a pair of operating system and architecture) for which to download the native shared library. The default is the building platform.
public List<PrivmxEndpointPlatform> platforms
Usage
- Add
mavenCentral()
repository to yoursettings.gradle
:
pluginManagement {
repositories{
mavenCentral()
}
}
- Add plugin in
build.gradle
:
plugins {
id "com.simplito.privmx-endpoint-install-native" version "$pluginVersion"
}
- Configure plugin in
build.gradle
:
privmxEndpointInstallJni{
version = $nativeLibVersion // Set the version of library to download, it should
// match the privmx-endpoint-java dependency version
// Set project supported platforms to download native libraries for them.
platforms = [
SupportedPlatforms.Darwin.arm64.platform,
*SupportedPlatforms.Android.values().platform
]
}