In-App Chat SDK Android Version 1.3.30 Release
Announce: May 17, 2021
Hi there, Good news! We have made some improvements in chat SDK Android. Below is the list of changes:
- Support android 10 & 11 for fix issue can't download or upload a file attachment
- Remove request manage external storage in manifest
- Migrate the chat-core library from Bintray to Artifactory
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;
}
- To integrate your app with Qiscus, it can be done in 2 (two) steps. First, you need to add URL references 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.30’
}
You can see our sample for an update this migration in this link :
https://github.com/qiscus/qiscus-chat-sdk-android-sample.git
For further information, feedback, or questions about the changes above, please feel free to drop us some feedback at https://support.qiscus.com/.
Best regards,
Product Team