panlili2024
8 天以前 84bb9a10e795b8839d9770eeb37aab71bf22e107
代码优化
1个文件已添加
4个文件已修改
111 ■■■■■ 已修改文件
HDLSDK/.idea/gradle.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDLSDK/app/src/main/java/com/hdl/hdlsdk/MainActivity.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/connect/socket/HDLSocket.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDLSDK/settings.gradle 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDLSDK/settings.xml 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDLSDK/.idea/gradle.xml
@@ -9,7 +9,6 @@
        <option name="modules">
          <set>
            <option value="$PROJECT_DIR$" />
            <option value="$PROJECT_DIR$/app" />
            <option value="$PROJECT_DIR$/com.hdl.sdk" />
            <option value="$PROJECT_DIR$/hdl-connect" />
          </set>
HDLSDK/app/src/main/java/com/hdl/hdlsdk/MainActivity.java
@@ -61,6 +61,7 @@
import com.hdl.sdk.connect.cloud.bean.AiLoginInfo;
import com.hdl.sdk.connect.config.HDLLinkConfig;
import com.hdl.sdk.connect.socket.HDLAuthSocket;
import com.hdl.sdk.connect.socket.HDLSocket;
import com.hdl.sdk.sourceos.utils.SPKey;
import java.io.UnsupportedEncodingException;
@@ -1000,6 +1001,7 @@
        String propertyDownTopic = String.format(TopicConstant.PROPERTY_DOWN, HDLLinkConfig.getInstance().getGatewayId());
        String bodyStr = getPropertyDownBodyStr();
        HDLLink.getInstance().tcpSendMsg(propertyDownTopic, bodyStr);
    }
    /**
HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/connect/socket/HDLSocket.java
@@ -146,7 +146,7 @@
                            @Override
                            public void onError(HDLLinkException e) {
                                isBroadcast = false;
                                LogUtils.i("广播信息给主网关失败!---onError=" + e.toString());
                                LogUtils.i("广播信息给主网关失败!---onError=" + e.getMessage());
                            }
                        });
//                        HDLAuthSocket.getInstance().udpSendMsg(TopicConstant.BROADCAST, GsonConvert.getGson().toJson(request), true);
HDLSDK/settings.gradle
@@ -1,5 +1,5 @@
include ':app'
//include ':app'
//include ':hdl-socket'
include ':hdl-connect'
//include ':hdl-common'
HDLSDK/settings.xml
New file
@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <mirrors>
        <mirror>
            <id>mirror</id>
            <mirrorOf>central,jcenter,!2012126-release-Mc0DNo</mirrorOf>
            <name>mirror</name>
            <url>https://maven.aliyun.com/nexus/content/groups/public</url>
        </mirror>
    </mirrors>
    <servers>
        <server>
            <id>2012126-release-Mc0DNo</id>
            <username>6267892c2c14288da098ae14</username>
            <password>d8MeqjZHC6sV</password>
        </server>
    </servers>
    <profiles>
        <profile>
            <id>rdc</id>
            <properties>
                <altReleaseDeploymentRepository>
                    2012126-release-Mc0DNo::default::https://packages.aliyun.com/5efac36daf80fad018f122b9/maven/2012126-release-mc0dno
                </altReleaseDeploymentRepository>
                <altSnapshotDeploymentRepository>
                    2012126-release-Mc0DNo::default::https://packages.aliyun.com/5efac36daf80fad018f122b9/maven/2012126-release-mc0dno
                </altSnapshotDeploymentRepository>
            </properties>
            <repositories>
                <repository>
                    <id>central</id>
                    <url>https://maven.aliyun.com/nexus/content/groups/public</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>
                <repository>
                    <id>snapshots</id>
                    <url>https://maven.aliyun.com/nexus/content/groups/public</url>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
                <repository>
                    <id>2012126-release-Mc0DNo</id>
                    <url>https://packages.aliyun.com/5efac36daf80fad018f122b9/maven/2012126-release-mc0dno</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <url>https://maven.aliyun.com/nexus/content/groups/public</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </pluginRepository>
                <pluginRepository>
                    <id>snapshots</id>
                    <url>https://maven.aliyun.com/nexus/content/groups/public</url>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </pluginRepository>
                <pluginRepository>
                    <id>2012126-release-Mc0DNo</id>
                    <url>https://packages.aliyun.com/5efac36daf80fad018f122b9/maven/2012126-release-mc0dno</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>rdc</activeProfile>
    </activeProfiles>
</settings>