Android library embedding the Xray core (via libxray and native libxray-go).
This project is licensed under the GNU General Public License v3.0. See the LICENSE file.
- Add the JitPack repository:
Kotlin DSL (settings.gradle.kts)
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven(url = "https://jitpack.io")
}
}Groovy (settings.gradle)
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}- Add the dependency. JitPack publishes the
libxraymodule as artifactlibxray-android(no extra module segment in the coordinate):
Kotlin DSL
dependencies {
implementation("com.github.thebytearray:libxray-android:VERSION")
}Groovy
dependencies {
implementation 'com.github.thebytearray:libxray-android:VERSION'
}Replace VERSION with a Git tag, branch name, or commit hash (for example 1.0.1 or abc1234).
Public API entry points:
org.thebytearray.libxray.sdk.LibXrayorg.thebytearray.libxray.sdk.ProtectHandler
minSdk is 23. The AAR ships native libraries for armeabi-v7a, arm64-v8a, and x86_64.
./gradlew :libxray:assembleReleasePublish to Maven Local (same as JitPack’s Gradle step):
./gradlew :libxray:publishReleasePublicationToMavenLocal