Netless

Netless

  • JavaScript
  • Android
  • iOS
  • Server
  • FAQ
  • GitHub
  • 🇨🇳 中文

›Quick start

Overview

  • Introduction
  • Open source
  • Version history

Quick start

  • Overview
  • Client integration
  • Initialization
  • Create Room
  • Join room

Features

  • Doc-conversion & replay
  • State management
  • Tools
  • Perspective operation
  • Whiteboard operation
  • Custom event
  • Scene management
  • Big class read-only
  • Replay

Upgrade

  • 2.0 v2migration

Client integration

This article describes the development environment that needs to be prepared before using the whiteboard SDK formally.

Prerequisite

  1. Android Studio
  2. API 18+

Get sdkToken

Read Access Preparation, register an account, and get the sdk token.

Add SDK to the project

Configuration build.gradle

Open build.gradle in the root directory and perform the following standard configuration:

allprojects {
    repositories {
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

Then open build.gradle in the app directory and configure it as follows:

dependencies {
    //  数字请自行使用最新版本
    implementation 'com.github.duty-os:white-sdk-android:2.6.3'
}
  • At this point you will see a line prompt in Android Studio at the top of the editor

gradle files have changed since last project sync. a project sync may be necessary for the IDE to work properly

  • After clicking the Sync Now button, the prompt changes toGradle project sync in process .... After a while (depending on your network environment), the prompt disappears, and the integration is complete.

Proguard configuration

# SDK model
-keep class com.herewhite.** { *; }
-keepattributes  *JavascriptInterface*
-keepattributes Signature 
# Gson specific classes 
-keep class sun.misc.Unsafe { *; } 
-keep class com.google.gson.stream.** { *; } 
# Application classes that will be serialized/deserialized over Gson 
-keep class com.google.gson.examples.android.model.** { *; }
-keep class com.google.gson.** { *;}
Last updated on 3/5/2020 by leavesster
← OverviewInitialization →
  • Prerequisite
  • Get sdkToken
  • Add SDK to the project
    • Configuration build.gradle
    • Proguard configuration
Netless
Let's interactive.
Product
ConsoleHomepageDemoGithub
Company
Join usServicePrivacy
Contact
support@netless.linkCommunity
Copyright © 2020 Netless