+++ /dev/null
-[{"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
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
* @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);
}
//否则由设置的地方去通知后台
//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();
+ }
}
}
# 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