项目作者: Straas

项目描述 :
Straas Android SDK samples and documentation
高级语言: Java
项目地址: git://github.com/Straas/Straas-android-sdk-sample.git
创建时间: 2016-07-20T07:36:19Z
项目社区:https://github.com/Straas/Straas-android-sdk-sample

开源协议:Apache License 2.0

下载


android-sdk-sample

Samples & documentation for the Straas Android SDK.

Developer Authentication

Read Credential first.

To run our sample, you have to copy your client_id into gradle.properties:

  1. your_debug_client_id=xxxxx
  2. your_release_client_id=xxxxx

User Identity

Read Identity first.
To change the identity in out sample, change the Identity declared in MemberIdentity.ME.

Using Straas Android SDK

1. Add repositories

Add repositories in the build.gradle file in the root of your project:

  1. repositories {
  2. google()
  3. jcenter()
  4. maven { url "https://raw.githubusercontent.com/Straas/Straas-android-sdk-releases/main" }
  5. }

2. Add Straas module dependencies

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):

    1. compile 'io.straas.android.sdk:straas-extension-ima:X.X.X'
  • Media browser & playback only (minSdkVersion 16):

    1. compile 'io.straas.android.sdk:straas-media-core:X.X.X'
  • ChatRoom (minSdkVersion 14):

    1. compile 'io.straas.android.sdk:straas-messaging:X.X.X'
  • ChatRoom with UI (minSdkVersion 14):

    1. compile 'io.straas.android.sdk:straas-messaging-ui:X.X.X'
  • Streaming (minSdkVersion 18):

    1. compile 'io.straas.android.sdk:straas-streaming:X.X.X'

Learn about Android SDK