From a4cb8a8946905de215b9b0ab78a63325fee1517f Mon Sep 17 00:00:00 2001 From: AnhNQK Date: Tue, 8 Jun 2021 14:23:35 +0700 Subject: [PATCH] upgrade sdk --- .gitignore | 1 + android/build.gradle | 10 +++------- .../StringeeCallManager.java | 18 +++++++++++------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 1829ec3..a7e6ef2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ pubspec.lock build/ example/.flutter-plugins-dependencies +.idea/ diff --git a/android/build.gradle b/android/build.gradle index b576aa5..7c89046 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -5,9 +5,7 @@ buildscript { repositories { google() jcenter() - maven { - url "https://dl.bintray.com/stringee/Stringee-Android-SDK" - } + mavenCentral() } dependencies { @@ -19,9 +17,7 @@ rootProject.allprojects { repositories { google() jcenter() - maven { - url "https://dl.bintray.com/stringee/Stringee-Android-SDK" - } + mavenCentral() } } @@ -41,6 +37,6 @@ android { dependencies { // implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"]) - implementation 'com.stringee.sdk.android:stringee-android-sdk:1.6.9' + implementation 'com.stringee.sdk.android:stringee-android-sdk:1.7.1' implementation 'androidx.annotation:annotation:1.1.0' } \ No newline at end of file diff --git a/android/src/main/java/com/stringee/stringeeflutterplugin/StringeeCallManager.java b/android/src/main/java/com/stringee/stringeeflutterplugin/StringeeCallManager.java index 5a66805..9797055 100644 --- a/android/src/main/java/com/stringee/stringeeflutterplugin/StringeeCallManager.java +++ b/android/src/main/java/com/stringee/stringeeflutterplugin/StringeeCallManager.java @@ -426,7 +426,7 @@ public void run() { * @param callInfo * @param result */ - public void sendCallInfo(String callId, Map callInfo, MethodChannel.Result result) { + public void sendCallInfo(String callId, Map callInfo, final MethodChannel.Result result) { if (_client == null || !_client.isConnected()) { Map map = new HashMap(); map.put("status", false); @@ -457,12 +457,16 @@ public void sendCallInfo(String callId, Map callInfo, MethodChannel.Result resul JSONObject jsonObject = null; try { jsonObject = Utils.convertMapToJson(callInfo); - _call.sendCallInfo(jsonObject); - Map map = new HashMap(); - map.put("status", true); - map.put("code", 0); - map.put("message", "Success"); - result.success(map); + _call.sendCallInfo(jsonObject, new StatusListener() { + @Override + public void onSuccess() { + Map map = new HashMap(); + map.put("status", true); + map.put("code", 0); + map.put("message", "Success"); + result.success(map); + } + }); } catch (JSONException e) { e.printStackTrace(); Map map = new HashMap();