Add the JitPack repository to your root settings.gradle or settings.gradle.kts file under the dependencyResolutionManagement block.
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Choose the method that matches your project setup.
Add the following configuration to your gradle/libs.versions.toml file:
[versions]
androidOpenssl = "3.5.6"
[libraries]
android-openssl = { module = "com.github.nextcloud-releases:android-openssl", version.ref = "androidOpenssl" }
Then, reference it in your app-level build.gradle.kts:
dependencies {
implementation(libs.android.openssl)
}
dependencies {
implementation("com.github.nextcloud-releases:android-openssl:3.5.6")
}
dependencies {
implementation 'com.github.nextcloud-releases:android-openssl:3.5.6'
}
- Minimum API Level: 28
- Target NDK Version: 29
- Supported ABIs:
arm64-v8a,x86_64
The package includes precompiled binaries alongside Prefab metadata to allow direct C/C++ linking in your CMake or ndk-build workflows.
| Artifact Path | Description |
|---|---|
jni/{abi}/libcrypto.so |
Compiled OpenSSL libcrypto binary |
jni/{abi}/libssl.so |
Compiled OpenSSL libssl binary |
prefab/modules/crypto/ |
Prefab metadata and headers for native crypto linking |
prefab/modules/ssl/ |
Prefab metadata and headers for native ssl linking |
- Navigate to the Actions tab of the repository.
- Select the Build Android OpenSSL AAR workflow.
- Click the Run workflow dropdown menu.
- Input your target OpenSSL version (e.g.,
3.5.6) and trigger the execution.
Ensure your local machine has curl, make, and python3 installed, and that your Android SDK/NDK path is exported.
# Execute the build script with the target version string
./build-android.sh 3.5.6