This article introduces the development environment that needs to be prepared before using the Whiteboard SDK.
Open build.gradle in the root directory and perform the following standard configuration:
allprojects {
repositories {
jcenter()
// add the following
maven {url'https://jitpack.io'}
}
}
Then open build.gradle in the app directory and configure as follows:
dependencies {
// Please add numbers according to the latest version
implementation'com.github.duty-os:white-sdk-android:2.13.18'
}
For the latest version, please check Version History
gradle files have changed since last project sync. a project sync may be necessary for the IDE to work properly
Sync Now
button, the prompt changes to Gradle project sync in process...
. After a while (depending on your network environment), the prompt disappears and the integration is complete.# 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.** {*;}