- Read Projects and permissions,Gain APP Identifier and SDK Token
- Config app/string_white_sdk_config.xml
- Android Studio
- API 19+
- A valid APP Identifier and SDK Token
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
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.** { *;}