@@ -1,6 +1,6 @@ | |||||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||
<project version="4"> | <project version="4"> | ||||
<component name="CompilerConfiguration"> | <component name="CompilerConfiguration"> | ||||
<bytecodeTargetLevel target="11" /> | |||||
<bytecodeTargetLevel target="17" /> | |||||
</component> | </component> | ||||
</project> | </project> |
@@ -1,7 +1,7 @@ | |||||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||
<project version="4"> | <project version="4"> | ||||
<component name="ExternalStorageConfigurationManager" enabled="true" /> | <component name="ExternalStorageConfigurationManager" enabled="true" /> | ||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK"> | |||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK"> | |||||
<output url="file://$PROJECT_DIR$/build/classes" /> | <output url="file://$PROJECT_DIR$/build/classes" /> | ||||
</component> | </component> | ||||
<component name="ProjectType"> | <component name="ProjectType"> | ||||
@@ -12,8 +12,6 @@ android { | |||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||||
consumerProguardFiles "consumer-rules.pro" | consumerProguardFiles "consumer-rules.pro" | ||||
versionCode 1 | |||||
versionName '1.0.0' | |||||
} | } | ||||
buildTypes { | buildTypes { | ||||
@@ -66,6 +66,8 @@ public class ImManager implements IMInterface { | |||||
@Override | @Override | ||||
public void connectComplete(boolean reconnect, String serverURI) { | public void connectComplete(boolean reconnect, String serverURI) { | ||||
Log.e("======>connectComplete", reconnect + "::" + serverURI); | Log.e("======>connectComplete", reconnect + "::" + serverURI); | ||||
status = 0; | |||||
if (reconnect) return; | |||||
try { | try { | ||||
mqttClient.subscribe(Constant.getSdkAppID() + "/message" + Constant.getUserId(), 2); | mqttClient.subscribe(Constant.getSdkAppID() + "/message" + Constant.getUserId(), 2); | ||||
mqttClient.subscribe(Constant.getSdkAppID() + "/pang" + Constant.getUserId(), 2); | mqttClient.subscribe(Constant.getSdkAppID() + "/pang" + Constant.getUserId(), 2); | ||||
@@ -1,5 +1,5 @@ | |||||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | // Top-level build file where you can add configuration options common to all sub-projects/modules. | ||||
plugins { | plugins { | ||||
id 'com.android.application' version '7.4.2' apply false | |||||
id 'com.android.library' version '7.4.2' apply false | |||||
id 'com.android.application' version '8.0.1' apply false | |||||
id 'com.android.library' version '8.0.1' apply false | |||||
} | } |
@@ -18,4 +18,6 @@ android.useAndroidX=true | |||||
# Enables namespacing of each library's R class so that its R class includes only the | # Enables namespacing of each library's R class so that its R class includes only the | ||||
# resources declared in the library itself and none from the library's dependencies, | # resources declared in the library itself and none from the library's dependencies, | ||||
# thereby reducing the size of the R class for that library | # thereby reducing the size of the R class for that library | ||||
android.nonTransitiveRClass=true | |||||
android.nonTransitiveRClass=true | |||||
android.defaults.buildfeatures.buildconfig=true | |||||
android.nonFinalResIds=false |
@@ -1,6 +1,6 @@ | |||||
#Tue May 16 10:36:25 CST 2023 | #Tue May 16 10:36:25 CST 2023 | ||||
distributionBase=GRADLE_USER_HOME | distributionBase=GRADLE_USER_HOME | ||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip | |||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip | |||||
distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||
zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||
zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME |