Releases: qiscus/qiscus-sdk-android
Qiscus Chat SDK (core) v1.8.3
Changelog :
- update deprecated library for OnLifecycleEvent
- add param packageId (com.xxx.xxx) when registerDeviceToken
for example :
QiscusCore.registerDeviceToken(deviceToken, packageId);
Qiscus Chat SDK (core) v1.8.2
Changelog :
- add eventBus when success autoRefreshToken
for example :
//implement this to all your activity
@Subscribe
public void onRefreshToken(QiscusRefreshTokenEvent event) {
if (event.isTokenExpired()) {
// isTokenExpired
} else if (event.isUnauthorized()) {
// isUnauthorized
} else if (event.isSuccessAutoRefreshToken()){
// success autoRefreshToken
} else {
// do somethings
}
}
Qiscus Chat SDK (core) v1.8.1
Changelog :
- Fix ANR Issue
Qiscus Chat SDK (core) v1.8.0
Changelog :
- Update flow expired token
for example for handle new flow
//Subscribe to AllActivity
@Subscribe
public void onRefreshToken(QiscusRefreshTokenEvent event) {
if (event.isTokenExpired()) {
//need to call api refresh token when auto refresh token from be is false, by default is true from be
callRefreshToken();
} else if (event.isUnauthorized()) {
//need to force re login or re init qiscusCore
reLoginUser();
}
}
private void callRefreshToken() {
QiscusCore.refreshToken(new QiscusCore.SetRefreshTokenListener() {
@Override
public void onSuccess(QiscusRefreshToken refreshToken) {
}
@Override
public void onError(Throwable throwable) {
}
});
}
private void logoutUser() {
if (QiscusCore.hasSetupUser()) {
QiscusCore.clearUser();
}
//call flow re initiate SDK qiscusCore
}
Qiscus Chat SDK (core) v1.7.1
Changelog :
- Fix issues token after calling API profile in the flow feature refresh token
Qiscus Chat SDK (core) v1.7.0
Changelog :
- Support background thread
Qiscus Chat SDK (core) v1.6.10
Changelog :
- Fix race condition when logout-login
Note :
if you using custom EditText like our editText (MentionEditText) you need implementation this lib.
implementation 'com.qiscus.utils:manggil:1.2.1'
**Please add this proguard when get an error build
# With R8 full mode generic signatures are stripped for classes that are not
# kept. Suspend functions are wrapped in continuations where the type argument
# is used.
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response
# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>
Qiscus Chat SDK (core) v1.6.9
Changelog :
- Update Lib to fix issue CVE in lib Okhttp, Gson, Jsoup
Note :
if you using custom EditText like our editText (MentionEditText) you need implementation this lib.
implementation 'com.qiscus.utils:manggil:1.2.1'
**Please add this proguard when get an error build
# With R8 full mode generic signatures are stripped for classes that are not
# kept. Suspend functions are wrapped in continuations where the type argument
# is used.
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response
# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>
Qiscus Chat SDK (core) v1.6.8
Changelog :
- Support Lib Manggil with the latest appCompat
Note :
if you using custom EditText like our editText (MentionEditText) you need implementation this lib.
implementation 'com.qiscus.utils:manggil:1.2.1'
**Please add this proguard when get an error build
# With R8 full mode generic signatures are stripped for classes that are not
# kept. Suspend functions are wrapped in continuations where the type argument
# is used.
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response
# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>
Qiscus Chat SDK (core) v1.6.7
Changelog :
- Fix issue CVE-2019-11777 in realtime
- Reduce Size SDKCore
Note :
** if you using custom EditText like our editText (MentionEditText) you need implementation this lib.
implementation 'com.qiscus.utils:manggil:1.2.1'
** Please add this proguard when get an error build
# With R8 full mode generic signatures are stripped for classes that are not
# kept. Suspend functions are wrapped in continuations where the type argument
# is used.
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response
# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>