Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 1 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pubspec.lock

build/
example/.flutter-plugins-dependencies
.idea/
10 changes: 3 additions & 7 deletions 10 android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ buildscript {
repositories {
google()
jcenter()
maven {
url "https://dl.bintray.com/stringee/Stringee-Android-SDK"
}
mavenCentral()
}

dependencies {
Expand All @@ -19,9 +17,7 @@ rootProject.allprojects {
repositories {
google()
jcenter()
maven {
url "https://dl.bintray.com/stringee/Stringee-Android-SDK"
}
mavenCentral()
}
}

Expand All @@ -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'
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.