更新放走丢声网的协议
authork.liang <liangkang648253071@126.com>
Mon, 5 Jul 2021 13:00:41 +0000 (21:00 +0800)
committerk.liang <liangkang648253071@126.com>
Mon, 5 Jul 2021 13:00:41 +0000 (21:00 +0800)
app/debug/output.json [deleted file]
app/src/main/aidl/com/enqualcomm/support/IFZDCallback.aidl
app/src/main/java/com/ic/protocols/protocol_fzd.java
app/version_code.properties
local.properties

diff --git a/app/debug/output.json b/app/debug/output.json
deleted file mode 100644 (file)
index d2561fa..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":392,"versionName":"2004071059","enabled":true,"outputFile":"ICSer_V392_2004071059_debug.apk","fullName":"debug","baseName":"debug"},"path":"ICSer_V392_2004071059_debug.apk","properties":{}}]
\ No newline at end of file
index 4d3e7f6..8d849ca 100644 (file)
@@ -11,4 +11,5 @@ interface IFZDCallback {
     void onFriendsMakeResult(in int result,String friendName,String id,String phoneNum);
     void onFriendsUnbindResult();
     void onFriendsListLoaded();
+    void onCalling(in String callerID,in String roomName,in String type,in String token);
 }
\ No newline at end of file
index 895ace5..f9dd55a 100644 (file)
@@ -2604,16 +2604,23 @@ public class protocol_fzd {
      * @param data
      */
     private void handleCallRequest(Connection mConnection, Runtime mRuntime, String data) {
+        RemoteCallbackList<IFZDCallback> fzdCallback = mRuntime.getFZDCallback();
         String[] split = data.split(CMD_SPLIT);
-        if (split.length == 3) {
+        ICLogger.i("split.length = "+split.length);
+        if (split.length == 3 || split.length == 4) {
             needResponseCalling = true;
             //1、准备数据:对方的id,来电类型
             String remoteId = split[0];
             String sessionId = split[1];
             String type = split[2];
+            String token = "";
+            if(split.length == 4){
+                token = split[3];
+            }
             ICLogger.d("remote id is == > " + remoteId);
             ICLogger.d("type is == > " + type);
             ICLogger.d("sessionId is == > " + sessionId);
+            ICLogger.d("token is == > " + token);
 
             //4、环境是否有准备好
             int envState = sharedPreferences.getInt(STATE_ENV, -1);
@@ -2626,6 +2633,19 @@ public class protocol_fzd {
             }
             //否则由设置的地方去通知后台
             //needResponseCalling来判断
+
+            int i = fzdCallback.beginBroadcast();
+            try {
+                while (i > 0) {
+                    i--;
+                    IFZDCallback broadcastItem = fzdCallback.getBroadcastItem(i);
+                    broadcastItem.onCalling(remoteId,sessionId,type,token);
+                }
+            } catch (Exception e) {
+                e.printStackTrace();
+            } finally {
+                fzdCallback.finishBroadcast();
+            }
         }
     }
 
index 1b0c508..7d87ea7 100644 (file)
@@ -1 +1,2 @@
-VERSION_CODE=881
\ No newline at end of file
+#Mon Jul 05 15:49:58 CST 2021
+VERSION_CODE=884
index 3ff6dd5..f210a2f 100644 (file)
@@ -4,5 +4,5 @@
 # Location of the SDK. This is only used by Gradle.\r
 # For customization when using a Version Control System, please read the\r
 # header note.\r
-#Tue Jun 29 20:13:18 CST 2021\r
-sdk.dir=E\:\\Android\\Sdk
\ No newline at end of file
+#Sun Jun 27 19:54:51 CST 2021\r
+sdk.dir=D\:\\android\\Android\\sdk\r