Releases: qiscus/qiscus-sdk-android
Qiscus Chat SDK (buildIn) v2.30.19
We recomendation using v2.30.20 or latest
Qiscus Chat SDK (core) v1.3.29
We recomendation using v1.3.30 or latest
Qiscus Chat SDK (buildIn) v2.30.18
Changelog :
- All feature from SDK Chat-Core version 1.3.28
- Migrate the chat Library (BuildIn) from Bintray to Artifactory
To integrate your app with Qiscus, it can be done in 2 (two) steps. First, you need to add URL reference in your .gradle project. This reference is a guide for .gradle to get Qiscus Chat SDK from the right repository. Below is how to do that:
allprojects {
repositories {
maven {
url "https://artifactory.qiscus.com/artifactory/qiscus-library-open-source"
}
}
}
Second, you need to add SDK dependencies inside your app .gradle. Then, you need to synchronize to compile the Qiscus Chat SDK for your app.
dependencies {
implementation 'com.qiscus.sdk:chat:2.30.18'
}
Qiscus Chat SDK (core) v1.3.28
Changelog :
- Remove duplicate manifest
- Add new parameters userId, includeExtensions, excludeExtensions in getFileList() api
- Migrate the chat-core library from Bintray to Artifactory
To integrate your app with Qiscus, it can be done in 2 (two) steps. First, you need to add URL reference in your .gradle project. This reference is a guide for .gradle to get Qiscus Chat SDK from the right repository. Below is how to do that:
allprojects {
repositories {
maven {
url "https://artifactory.qiscus.com/artifactory/qiscus-library-open-source"
}
}
}
Second, you need to add SDK dependencies inside your app .gradle. Then, you need to synchronize to compile the Qiscus Chat SDK for your app.
dependencies {
implementation 'com.qiscus.sdk:chat-core:1.3.28'
}
You can see our sample for update this migration in this link :
https://github.com/qiscus/qiscus-chat-sdk-android-sample.git
Qiscus Chat SDK (core) v1.3.27
Changelog :
- Implement feature update message
- Handle Android API 30 when saving local storage
For example send update message
Subscription subscription = QiscusApi.getInstance().updateMessage(qiscusComment)
.doOnNext(this::commentEditSuccess)
.doOnError(throwable -> {
QiscusErrorLogger.print(throwable);
throwable.printStackTrace();
})
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.compose(bindToLifecycle())
.subscribe(commentSend -> {
if (commentSend.getRoomId() == room.getId()) {
view.onSuccessSendEditComment(commentSend);
}
}, throwable -> {
QiscusErrorLogger.print(throwable);
throwable.printStackTrace();
});
code when you receive update message
@Subscribe
public void onCommentUpdateEvent(QiscusCommentUpdateEvent event) {
if (event.getQiscusComment().getRoomId() == room.getId()) {
//if comment isType image, you need to delete local file.
//QiscusCore.getDataStore().deleteLocalPath(qiscusComment.getId());
onGotUpdateComment(event.getQiscusComment());
}
}
****Note :
- If you want to use this feature, please contact us (https://support.qiscus.com/hc/en-us/requests/new)
- If you use feature compress image, please update your code
for example
public static File compressImage(File imageFile) {
FileOutputStream out = null;
String filename = "";
int androidVersion = Build.VERSION.SDK_INT;
if (androidVersion >= 29) {
filename = QiscusFileUtil.generateFilePath(imageFile.getName(), ".jpg", Environment.DIRECTORY_PICTURES);
} else {
filename = QiscusFileUtil.generateFilePath(imageFile.getName(), ".jpg");
}
try {
out = new FileOutputStream(filename);
//write the compressed bitmap at the destination specified by filename.
QiscusImageUtil.getScaledBitmap(Uri.fromFile(imageFile)).compress(Bitmap.CompressFormat.JPEG,
QiscusCore.getChatConfig().getQiscusImageCompressionConfig().getQuality(), out);
} catch (FileNotFoundException e) {
e.printStackTrace();
} finally {
try {
if (out != null) {
out.close();
}
} catch (IOException ignored) {
//Do nothing
}
}
File compressedImage = new File(filename);
QiscusFileUtil.notifySystem(compressedImage);
return compressedImage;
}
Qiscus Chat SDK (core) v1.3.26
Changelog :
- Fix crash when changing network connection state (before client setupAppID)
Qiscus Chat SDK (core) v1.3.25
Changelog :
- Prevent crash in Qiscuslogger when no message
Qiscus Chat SDK (core) v1.3.24
Changelog :
- Add params roomType to filter group or single (1-on-1) chat in
getAllChatRooms()
2.30.17
Changelog :
- Support gradle 4.1.0
Qiscus Chat SDK (core) v1.3.23
Changelog :
- Support gradle 4.1.0