Skip to content

TingChen2020/whiteboard-android

 
 

Repository files navigation

white sdk android Release

last release

jitpack release

Run Demo

  1. Read Projects and permissions,Gain APP Identifier and SDK Token
  2. Config app/string_white_sdk_config.xml

Integrate the SDK

Prerequisites

  1. Android Studio
  2. API 19+
  3. A valid APP Identifier and SDK Token

Config build.gradle

Add the following line in the build.gradle file of your project:

allprojects {
    repositories {
        // Add jitpack repository
        maven { url 'https://jitpack.io' }
    }
}

add dependency of whiteboard in the app/build.gradle file

dependencies {
    // Get the latest version number through the release notes.
    implementation 'com.github.netless-io:whiteboard-android:$last-version'
}

Our change log has release history.

The latest release is available on jitpack

Config Proguard

Add the following line in the app/proguard-rules.pro file to prevent obfuscating the code

# 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.** { *;}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.9%
  • Other 0.1%