Samples & documentation for the Straas Android SDK.
Read Credential first.
To run our sample, you have to copy your client_id
into gradle.properties
:
your_debug_client_id=xxxxx
your_release_client_id=xxxxx
Read Identity first.
To change the identity in out sample, change the Identity declared in MemberIdentity.ME
.
Add repositories in the build.gradle
file in the root of your project:
repositories {
google()
jcenter()
maven { url "https://raw.githubusercontent.com/Straas/Straas-android-sdk-releases/main" }
}
Then, add the dependencies in the build.gradle
file of your app module:
X.X.X is the your preferred version. For the version information, see CHANGELOG
- Media browser & playback + Ad integration (
minSdkVersion
16):
compile 'io.straas.android.sdk:straas-extension-ima:X.X.X'
- Media browser & playback only (
minSdkVersion
16):
compile 'io.straas.android.sdk:straas-media-core:X.X.X'
- ChatRoom (
minSdkVersion
14):
compile 'io.straas.android.sdk:straas-messaging:X.X.X'
- ChatRoom with UI (
minSdkVersion
14):
compile 'io.straas.android.sdk:straas-messaging-ui:X.X.X'
- Streaming (
minSdkVersion
18):
compile 'io.straas.android.sdk:straas-streaming:X.X.X'