Egloo is publicly hosted on Maven Central repository, where you
can download the AAR package and other artifacts. To fetch with Gradle, make sure you add the
JCenter repository in your root projects build.gradle
file:
allprojects {
repositories {
mavenCentral()
}
}
Then simply download the latest version. For regular Android projects users:
implementation("com.otaliastudios.opengl:egloo:0.6.1")
For Kotlin Multiplatform projects:
// Add a single dependency into your common Kotlin Multiplatform sourceset.
// This will include the correct artifact for each target that you want to support.
implementation("com.otaliastudios.opengl:egloo-multiplatform:0.6.1")
// Or use granular dependencies:
implementation("com.otaliastudios.opengl:egloo-android:0.6.1") // Android AAR
implementation("com.otaliastudios.opengl:egloo-androidnativex86:0.6.1") // Android Native KLib
implementation("com.otaliastudios.opengl:egloo-androidnativex64:0.6.1") // Android Native KLib
implementation("com.otaliastudios.opengl:egloo-androidnativearm32:0.6.1") // Android Native KLib
implementation("com.otaliastudios.opengl:egloo-androidnativearm64:0.6.1") // Android Native KLib
The Android version works on API 18+, which is the only requirement and should be met by many projects nowadays.
We deploy snapshots on each push to the main branch. If you want to use the latest, unreleased features, you can do so (at your own risk) by adding the snapshot repository:
allprojects {
repositories {
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}
and changing the library version from 0.6.1
to latest-SNAPSHOT
.