apply plugin: 'com.android.application'
//apply plugin: 'me.tatarka.retrolambda'
+
// APK 名称
static def getApkBaseName() {
return "ICSer"
// minifyEnabled true
// useProguard false
}
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
// 适用 gradle 3.0 及以上版本
android.applicationVariants.all { variant ->
variant.outputs.all {
}
}
}
- lintOptions {
- checkReleaseBuilds false
- // Or, if you prefer, you can continue to check for errors in release builds,
- // but continue the build even when errors are found:
- abortOnError false
- }
- dexOptions {
- incremental true
- javaMaxHeapSize "4g"
+ compileOptions {
+ targetCompatibility JavaVersion.VERSION_1_8
+ sourceCompatibility JavaVersion.VERSION_1_8
}
}
// sourceSets.main {
// }
}
dependencies {
+ implementation project(path: ':core')
+ implementation project(path: ':dNSCache')
compileOnly files ('libs/frameworks-full-debug.jar')
provided files ('libs/telephony_common-full-debug.jar')
implementation 'com.android.support:appcompat-v7:25.1.0'
implementation 'com.github.ChestnutPlus:TestModules:v1.0.16'
testCompile 'junit:junit:4.12'
- implementation project(path: ':dNSCache')
implementation 'com.android.support:recyclerview-v7:25.1.0'
compile files ('libs/android-logging-log4j-1.0.3.jar','libs/ftp4j-1.7.2.jar','libs/log4j-1.2.17.jar','libs/okio-2.4.3.jar' )
compile files ('libs/mail.jar' )
compile files ('libs/activation.jar','libs/additionnal.jar' )
- implementation 'se.wetcat.qatja:core:1.0.4'
+// implementation 'se.wetcat.qatja:core:1.0.4'
// implementation "androidx.recyclerview:recyclerview:1.1.0
}
}\r
\r
@Override\r
- public void connect(String paramString, int paramInt){\r
+ public void connect(String serverip, int serverport){\r
// mqtt_client.attemptConnectMqtt(paramString,"IC_"+mRuntime.IMEI(),paramInt);\r
- ICLogger.i("mqttconnect " +paramString+" "+paramInt+" cycle "+mRuntime.getHeartBeatCycle()*60+" as "+"IC_"+mRuntime.IMEI());\r
- mqtt_client.configMqtt(paramString,paramInt, mRuntime.getHeartBeatCycle()*60,"IC_"+mRuntime.IMEI());\r
+ ICLogger.i("mqttconnect " +serverip+" "+serverport+" cycle "+mRuntime.getHeartBeatCycle()*60+" as "+"IC_"+mRuntime.IMEI());\r
+ mqtt_client.configMqtt(serverip,serverport, mRuntime.getHeartBeatCycle()*60,"IC_"+mRuntime.IMEI());\r
mqtt_client.connectservice();\r
// if(isServerconnected) mqtt_client.attemptConnectMqtt();\r
}\r
}\r
private String mqttHost="";\r
private String devid="";\r
- private int mqtt_port=18083;\r
+ private int mqtt_port=8083;\r
private int mqtt_cycle_seconds=600;\r
public void configMqtt(String host,int port,int cycle_seconds,String idname){\r
mqttHost=host;\r
attemptConnectMqtt(mqttHost,mqtt_port,devid,mqtt_cycle_seconds);\r
}\r
public void attemptConnectMqtt(String host, int port,String identifier, int cycle_inSeconds) {\r
- ICLogger.i("attemptConnectMqtt($host, $identifier)");\r
+ ICLogger.i("attemptConnectMqtt("+host+", "+port+" "+identifier+" "+cycle_inSeconds);\r
\r
if (!(MQTTConnectionConstants.STATE_CONNECTING == mClient.getState() || MQTTConnectionConstants.STATE_CONNECTED == mClient.getState())) {\r
try {\r
if (protocolName != null)
connect.setProtocolName(protocolName);
+ ICLogger.i(connect.toString());
sendMessage(connect, false);
}
*/
public synchronized void connect() {
if (DEBUG)
- ICLogger.i( "connect to: " + host);
+ ICLogger.i( "mqtt connect to: " + host);
cleanUp();
*/
private synchronized void setState(int state) {
if (DEBUG)
- ICLogger.i("setState() " + (mState - CONSTANTS_BASE) + " -> " + (state- CONSTANTS_BASE));
+ ICLogger.i("mqtt setState() " + (mState - CONSTANTS_BASE) + " -> " + (state- CONSTANTS_BASE));
if (mState != state) {
mState = state;
-#Sat Aug 29 15:32:52 CST 2020\r
-VERSION_CODE=509\r
+#Tue Sep 01 11:24:02 CST 2020\r
+VERSION_CODE=510\r
--- /dev/null
+Subproject commit b6b76d5e81e7d87cfca5b1bd72c57d351461640c
// minifyEnabled true\r
// useProguard false\r
}\r
- compileOptions {\r
- sourceCompatibility JavaVersion.VERSION_1_8\r
- targetCompatibility JavaVersion.VERSION_1_8\r
- }\r
+\r
+ }\r
+ compileOptions {\r
+ sourceCompatibility JavaVersion.VERSION_1_8\r
+ targetCompatibility JavaVersion.VERSION_1_8\r
}\r
}\r
\r
<?xml version="1.0" encoding="UTF-8"?>\r
-<module external.linked.project.id=":dNSCache" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">\r
+<module external.linked.project.id=":dNSCache" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="icsupport" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">\r
<component name="FacetManager">\r
<facet type="android-gradle" name="Android-Gradle">\r
<configuration>\r