~glhrmfrts/hcs-sdk-android

HCS SDK for Android
fix typo in Patient.getAllWithUID JNI function
update versions
remove hcs_wait_announce call and test issue about repeating announce call

clone

read-only
https://git.sr.ht/~glhrmfrts/hcs-sdk-android
read/write
git@git.sr.ht:~glhrmfrts/hcs-sdk-android

You can also use your local clone with git send-email.


#HCS SDK ANDROID

Download

Android SDK for use of HCS service.

#Summary

#Install

The package is available in Quoretech's bintray repository

To install the lib as a dependency, just add the following block to build.gradle into allprojects -> repositories:

maven {
    name 'quoretech_android'
    url 'https://dl.bintray.com/quoretech/android'
}

This will looks like this:

allprojects {
    repositories {
        google()
        mavenCentral()
        jcenter()

        maven {
            name 'quoretech_android'
            url 'https://dl.bintray.com/quoretech/android'
        }
    }
}

Then add the library to dependencies block:

implementation 'com.quoretech:hcs_sdk_android:1.4.2'

Build the project's gradle, and it's done!

#Docs

Import the package:

import com.quoretech.hcs.*

To open a connection, simply use the HCS class:

val hcs = HCS("hcs.vikingmakt.tech", "31010", "myServiceName")
hcs.connect()

After that you can send and receive messages from HCS server:

val uid = User.uid(hcs, "myUsername")
val isAuthenticated = User.auth(hcs, uid, "789548")

And when is not needed anymore, close the connection:

hcs.dispose()