From 941883d2a0a4aa96a211247995fb11c05aacee45 Mon Sep 17 00:00:00 2001 From: Farhad7d7 Date: Sat, 21 Aug 2021 13:50:58 +0430 Subject: [PATCH] v0.9.11.0 update CHANGELOG update ChatActivity methods name --- CHANGELOG.md | 88 +++++++++++++++++++ .../application/chatexample/ChatActivity.java | 19 ++-- podchat/build.gradle | 25 +++--- 3 files changed, 107 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47bc5a69..5342e907 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,94 @@ All notable changes to this project will be documented here. +## Version [0.9.11.0] -2021-8-21 + +[Added] **Video Call** + +[Improved] **Audio Call** + +[Added] Permission to use the camera + +[ŮŽAdded] setupCall(VideoCallParam, AudioCallParam, CallConfig, List) + +[Added] requestCall(CallRequest) method + +[Added] acceptVoiceCall(AcceptCallRequest) method + +[Added] onCallCreated() callback + +[Added] onCallDelivered(ChatResponse) callback + +[Added] onReceiveCallRequest(ChatResponse) callback + +[Added] onVoiceCallStarted(ChatResponse) callback + +[Added] rejectVoiceCall(RejectCallRequest) method + +[Added] onCallRequestRejected(ChatResponse) callback + +[Added] endAudioCall(EndCallRequest) method + +[Added] onVoiceCallEnded(ChatResponse) callback + +[Added] onEndCallRequestFromNotification() callback + +[Added] onCallReconnect(ChatResponse) callback + +[Added] onCallConnect(ChatResponse) callback + +[Added] MessageVO.getCallHistoryVO(); + +[Added] getCallsHistory(GetCallHistoryRequest) method + +[Added] onReceiveCallHistory(ChatResponse) callback + +[Added] switchCallMuteState(Boolean,CallId) method + +[Added] onAudioCallMuted(ChatResponse) callback + +[Added] onAudioCallUnMuted(ChatResponse) callback + +[Added] requestMuteCallParticipant(MuteUnMuteCallParticipantRequest) method + +[Added] onCallParticipantMuted(ChatResponse) callback + +[Added] requestUnMuteCallParticipant(MuteUnMuteCallParticipantRequest) method + +[Added] onCallParticipantUnMuted(ChatResponse) callback + +[Added] onMutedByAdmin(ChatResponse) callback + +[Added] onUnMutedByAdmin(ChatResponse) callback + +[Added] switchCallSpeakerState(Boolean) method + +[Added] openCamera() method + +[Added] closeCamera() method + +[Added] switchCamera() method + +[Added] turnOnVideo(CallId) method + +[Added] turnOffVideo(CallId) method + +[Added] turnCallParticipantVideoOff(TurnCallParticipantVideoOffRequest) method + +[Added] onCallParticipantStoppedVideo(ChatResponse) callback + +[Added] onCallParticipantStartedVideo(ChatResponse) callback + +[Added] getCallParticipants(GetCallParticipantsRequest) + +[Added] onActiveCallParticipantsReceived(ChatResponse) callback + + + + + + + ## Version [0.9.10.0] -2021-7-17 [Added] ```getMutualGroup``` method diff --git a/app/src/main/java/com/example/chat/application/chatexample/ChatActivity.java b/app/src/main/java/com/example/chat/application/chatexample/ChatActivity.java index 3cc09db0..aa9f499d 100644 --- a/app/src/main/java/com/example/chat/application/chatexample/ChatActivity.java +++ b/app/src/main/java/com/example/chat/application/chatexample/ChatActivity.java @@ -18,11 +18,9 @@ import android.view.View; import android.widget.Button; import android.widget.EditText; -import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; -import com.bumptech.glide.Glide; import com.bumptech.glide.load.model.GlideUrl; import com.bumptech.glide.load.model.LazyHeaders; import com.bumptech.glide.request.RequestOptions; @@ -134,7 +132,6 @@ import com.google.gson.GsonBuilder; import com.google.gson.JsonObject; import com.mindorks.placeholderview.ExpandablePlaceHolderView; -import com.mindorks.placeholderview.annotations.Resolve; import com.orhanobut.logger.AndroidLogAdapter; import com.orhanobut.logger.Logger; @@ -2627,12 +2624,12 @@ public void onClick(View v) { private void connect() { if (serverType == ServerType.Main) { - SetMainServer(); + setMainServer(); } else if (serverType == ServerType.Sandbox) { - SetSandBoxServer(); + setSandBoxServer(); } else if (serverType == ServerType.Integration) { - SetIntgrationServer(); - } else SetMainServer(); + setIntgrationServer(); + } else setMainServer(); RequestConnect rc = new RequestConnect.Builder( socketAddress, @@ -2649,8 +2646,8 @@ private void connect() { tvServerType.setText(serverType.name()); } - private void SetMainServer() { - ssoHost = BaseApplication.getInstance().getString(R.string.sso_host); + private void setMainServer() { + ssoHost = BaseApplication.getInstance().getString(R.string.ssoHost); serverName = "chat-server"; name = BaseApplication.getInstance().getString(R.string.main_server_name); @@ -2659,7 +2656,7 @@ private void SetMainServer() { fileServer = BaseApplication.getInstance().getString(R.string.fileServer); } - private void SetSandBoxServer() { + private void setSandBoxServer() { ssoHost = BaseApplication.getInstance().getString(R.string.sandbox_ssoHost); serverName = BaseApplication.getInstance().getString(R.string.sandbox_server_name); @@ -2670,7 +2667,7 @@ private void SetSandBoxServer() { } - private void SetIntgrationServer() { + private void setIntgrationServer() { ssoHost = BaseApplication.getInstance().getString(R.string.integration_ssoHost); serverName = BaseApplication.getInstance().getString(R.string.integration_serverName); diff --git a/podchat/build.gradle b/podchat/build.gradle index f4bb4675..522093e1 100644 --- a/podchat/build.gradle +++ b/podchat/build.gradle @@ -5,7 +5,7 @@ apply plugin: 'com.kezong.fat-aar' apply plugin: 'com.google.gms.google-services' ext { - libraryVersion = '0.9.9.0-call-beta' + libraryVersion = '0.9.11.0' } android { @@ -13,7 +13,7 @@ android { defaultConfig { minSdkVersion 17 targetSdkVersion 29 - versionCode 169 + versionCode 171 versionName libraryVersion testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" @@ -91,18 +91,15 @@ dependencies { //call - api project(path: ':podcall') - -// List runTasks = gradle.startParameter.getTaskNames(); -// -// for (String item : runTasks) { -// println(item) -// if (item.contains("assembleDebug")) { -// api project(path: ':podcall') -// } else { -// embed project(path: ':podcall') -// } -// } + List runTasks = gradle.startParameter.getTaskNames(); + + for (String item : runTasks) { + if (item.contains("assembleDebug")) { + api project(path: ':podcall') + } else { + embed project(path: ':podcall') + } + } }