Skip to content

Releases: qiscus/qiscus-sdk-android

Qiscus Chat SDK (buildIn) v2.30.19

27 Apr 06:58
Compare
Choose a tag to compare

We recomendation using v2.30.20 or latest

Qiscus Chat SDK (core) v1.3.29

27 Apr 07:01
Compare
Choose a tag to compare

We recomendation using v1.3.30 or latest

Qiscus Chat SDK (buildIn) v2.30.18

30 Mar 07:37
Compare
Choose a tag to compare

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

30 Mar 07:33
Compare
Choose a tag to compare

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

25 Jan 11:48
Compare
Choose a tag to compare

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 :

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

16 Dec 02:05
Compare
Choose a tag to compare

Changelog :

  • Fix crash when changing network connection state (before client setupAppID)

Qiscus Chat SDK (core) v1.3.25

01 Dec 09:44
Compare
Choose a tag to compare

Changelog :

  • Prevent crash in Qiscuslogger when no message

Qiscus Chat SDK (core) v1.3.24

20 Nov 08:59
Compare
Choose a tag to compare

Changelog :

  • Add params roomType to filter group or single (1-on-1) chat in getAllChatRooms()

2.30.17

03 Nov 09:54
Compare
Choose a tag to compare

Changelog :

  • Support gradle 4.1.0

Qiscus Chat SDK (core) v1.3.23

03 Nov 09:52
Compare
Choose a tag to compare

Changelog :

  • Support gradle 4.1.0