| | |
| | | implementation project(path: ':third-zxing') |
| | | //Link本地库(在线依赖网络库) |
| | | implementation 'com.hdl.android:pmsdk:1.0.2' |
| | | implementation 'com.hdl.android:debugsdk:1.0.16' |
| | | // implementation 'com.hdl.android:debugsdk:1.0.23' |
| | | implementation project(path:':sdk') |
| | | |
| | | testImplementation 'junit:junit:4.13.2' |
| | | androidTestImplementation 'androidx.test.ext:junit:1.1.3' |
| | |
| | | |
| | | |
| | | /*********是否正式服务器*********/ |
| | | private static final boolean isOnlineServer = false; |
| | | private static final boolean isOnlineServer = true; |
| | | /*********正式环境*********/ |
| | | private static final String APP_KEY_ONLINE = "CSZEMDJL"; |
| | | private static final String APP_SECRET_ONLINE = "CSZEMDKBCSZEMDKR"; |
| | |
| | | @Override |
| | | public void onSuccess(MqttInfo info) { |
| | | if (info != null) { |
| | | MqttRecvClient.getInstance().setConnectParam(info.getUrl(), info.getClientId(), info.getUserName(), info.getPassWord(), null); |
| | | MqttRecvClient.getInstance().setConnectParam(info.getUrl(), info.getClientId(), info.getUserName(), info.getPassWord()); |
| | | MqttRecvClient.getInstance().connect(); |
| | | } |
| | | } |
| | |
| | | @Override |
| | | public void onSuccess(MqttInfo info) { |
| | | if (info != null) { |
| | | MqttRecvClient.getInstance().setConnectParam(info.getUrl(), info.getClientId(), info.getUserName(), info.getPassWord(), null); |
| | | MqttRecvClient.getInstance().setConnectParam(info.getUrl(), info.getClientId(), info.getUserName(), info.getPassWord()); |
| | | MqttRecvClient.getInstance().connect(); |
| | | } |
| | | } |
| | |
| | | // Top-level build file where you can add configuration options common to all sub-projects/modules. |
| | | |
| | | apply from:"config.gradle" |
| | | |
| | | buildscript { |
| | | repositories { |
New file |
| | |
| | | Properties properties = new Properties() |
| | | properties.load(project.rootProject.file('local.properties').newDataInputStream()) |
| | | |
| | | ext { |
| | | //使用固定账号 |
| | | ALIYUN_USER_NAME = '5f0673aa7cd41782836e7d3e' |
| | | ALIYUN_PASSWORD = 'lBNkb1So7zEY' |
| | | BASE_URL = 'https://packages.aliyun.com' |
| | | } |
| | |
| | | # Location of the SDK. This is only used by Gradle. |
| | | # For customization when using a Version Control System, please read the |
| | | # header note. |
| | | #Fri Feb 23 16:45:51 CST 2024 |
| | | sdk.dir=/Users/user/Library/Android/sdk |
| | | #Wed May 22 13:42:11 CST 2024 |
| | | sdk.dir=/Users/hdl/Library/Developer/Xamarin/android-sdk-macosx |