Work in progress!
You will need to have libroc and libroc-devel (headers) installed. Refer to official build instructions on how to install libroc. There is no official distribution for any OS as of now, you will need to install from source.
At the moment we release only android library
Add jcenter repository in build.gradle
file:
repositories {
jcenter()
}
Add dependency to project (last version):
implementation 'org.rocstreaming.roctoolkit:roc-android:0.0.1'
Generate JNI headers:
./gradlew generateHeaders
Build (native code and Java code):
./gradlew build
Build only native code:
./gradlew roc_jni:build
Run tests:
./gradlew test
Generate docs:
./gradlew javadoc
If libroc is not in default path you can specify ROC_INCLUDE_PATH
(path to roc headers) and ROC_LIBRARY_PATH
(path to roc library) variables with:
- environment variables
- gradle system variables
Additional compilation and linking flags can be specified respectively with CFLAGS
and LDFLAGS
gradle system variables
Release workflow:
- make github release with tag version, e.g.
v0.0.1
- travis will run release stage and publish artifacts to bintray
Followed env variables should be set in travis:
BINTRAY_USER
- bintray userBINTRAY_KEY
- bintray user api keyBINTRAY_REPO
- bintray repository nameBINTRAY_REPO_ORG
- bintray organization name