delete log

This commit is contained in:
SL 2024-01-15 14:24:58 +08:00
parent a735d9d916
commit c591b21ee4
6 changed files with 6 additions and 12 deletions

7
.idea/gradle.xml generated
View File

@ -4,9 +4,11 @@
<component name="GradleSettings"> <component name="GradleSettings">
<option name="linkedExternalProjectsSettings"> <option name="linkedExternalProjectsSettings">
<GradleProjectSettings> <GradleProjectSettings>
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="/usr/local/Cellar/gradle/6.8.1/libexec" /> <option name="gradleHome" value="/usr/local/Cellar/gradle/8.4/libexec" />
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" /> <option name="gradleJvm" value="jbr-17" />
<option name="modules"> <option name="modules">
<set> <set>
<option value="$PROJECT_DIR$" /> <option value="$PROJECT_DIR$" />
@ -17,6 +19,5 @@
<option name="resolveExternalAnnotations" value="false" /> <option name="resolveExternalAnnotations" value="false" />
</GradleProjectSettings> </GradleProjectSettings>
</option> </option>
<option name="offlineMode" value="true" />
</component> </component>
</project> </project>

View File

@ -3,7 +3,7 @@
该项目是一个完全自定义协议的即时通讯sdk。 该项目是一个完全自定义协议的即时通讯sdk。
## [详细文档](http://githubim.com "文档") ## [详细文档](https://githubim.com/sdk/android.html "文档")
## 官方Demo ## 官方Demo
悟空团队官方基于本sdk编写了一个Android项目该项目覆盖了sdk所有方法的使用及演示流程。[跳转到Demo](https://github.com/TangSengDaoDao/TangSengDaoDaoAndroid) 悟空团队官方基于本sdk编写了一个Android项目该项目覆盖了sdk所有方法的使用及演示流程。[跳转到Demo](https://github.com/TangSengDaoDao/TangSengDaoDaoAndroid)

View File

@ -7,7 +7,7 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:8.0.0' classpath 'com.android.tools.build:gradle:8.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} }
} }

View File

@ -298,7 +298,6 @@ public class ChannelMembersDbManager {
} else { } else {
insert(channelMember); insert(channelMember);
} }
} }
/** /**

View File

@ -173,8 +173,6 @@ class WKProto {
sendAckMsg.clientSeq = wkRead.readInt(); sendAckMsg.clientSeq = wkRead.readInt();
sendAckMsg.messageSeq = wkRead.readInt(); sendAckMsg.messageSeq = wkRead.readInt();
sendAckMsg.reasonCode = wkRead.readByte(); sendAckMsg.reasonCode = wkRead.readByte();
WKLoggerUtils.getInstance().e("发送ack" + sendAckMsg.messageID);
WKLoggerUtils.getInstance().e("发送返回状态:" + sendAckMsg.reasonCode);
} catch (IOException e) { } catch (IOException e) {
WKLoggerUtils.getInstance().e("解码发送消息ack错误"); WKLoggerUtils.getInstance().e("解码发送消息ack错误");
} }
@ -188,7 +186,6 @@ class WKProto {
disconnectMsg.reason = wkRead.readString(); disconnectMsg.reason = wkRead.readString();
WKLoggerUtils.getInstance().e("sdk收到被踢的消息code:" + disconnectMsg.reasonCode + ",reason:" + disconnectMsg.reason); WKLoggerUtils.getInstance().e("sdk收到被踢的消息code:" + disconnectMsg.reasonCode + ",reason:" + disconnectMsg.reason);
return disconnectMsg; return disconnectMsg;
} catch (IOException e) { } catch (IOException e) {
WKLoggerUtils.getInstance().e("解码断开连接错误"); WKLoggerUtils.getInstance().e("解码断开连接错误");
} }

View File

@ -104,7 +104,6 @@ public class CryptoUtils {
InvalidAlgorithmParameterException | IllegalBlockSizeException | InvalidAlgorithmParameterException | IllegalBlockSizeException |
BadPaddingException e) { BadPaddingException e) {
e.printStackTrace(); e.printStackTrace();
Log.e("加密错误:", "-->");
} }
if (encrypted == null) { if (encrypted == null) {
Log.e("加密后的数据为空", "--->"); Log.e("加密后的数据为空", "--->");
@ -184,12 +183,10 @@ public class CryptoUtils {
signature.initVerify(publicK); signature.initVerify(publicK);
signature.update(content.getBytes()); signature.update(content.getBytes());
boolean result = signature.verify(base64Decode(sign)); boolean result = signature.verify(base64Decode(sign));
Log.e("校验结果", result + "");
return result; return result;
} catch (InvalidKeyException | NoSuchAlgorithmException | SignatureException | } catch (InvalidKeyException | NoSuchAlgorithmException | SignatureException |
InvalidKeySpecException e) { InvalidKeySpecException e) {
e.printStackTrace(); e.printStackTrace();
Log.e("校验异常", Objects.requireNonNull(e.getLocalizedMessage()));
return false; return false;
} }
} }