The Andromeda Library provides you access to the APIs included in the Andromeda Server. This library is made specifically to work with Kotlin - it technically will work with Java, but not pleasantly.
Add in your root build.gradle at the end of repositories
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}Add the dependency to your project build.gradle
dependencies {
implementation 'com.github.prjkt-io:lib-andromeda:[latest_version]'
}Request for explicit permission on an activity:
requestPermissions(
arrayOf(AndromedaClient.ACCESS_PERMISSION),
ANDROMEDA_REQUEST_CODE_PERMISSION
)Initialize the the app to use the APIs:
AndromedaClient.initialize(this)You're set! From here you can call any methods from Andromeda* classes.
There is an example app (:example) to check/play with. Also checkout the full documentation here.