- 初始化 HiveMQ MQTT 客户端并连接 Broker,订阅命令主题 - 添加屏幕亮灭广播监听,支持上报设备亮屏/熄屏状态 - 新增 MQTT 配置(地址、主题等)及 SystemUtils 屏幕状态查询方法 - 添加 HiveMQ 依赖并配置 ProGuard 混淆规则与打包排除项
26 lines
903 B
Prolog
26 lines
903 B
Prolog
# Add project specific ProGuard rules here.
|
|
# You can control the set of applied configuration files using the
|
|
# proguardFiles setting in build.gradle.
|
|
#
|
|
# For more details, see
|
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
|
|
# If your project uses WebView with JS, uncomment the following
|
|
# and specify the fully qualified class name to the JavaScript interface
|
|
# class:
|
|
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
# public *;
|
|
#}
|
|
|
|
# Uncomment this to preserve the line number information for
|
|
# debugging stack traces.
|
|
#-keepattributes SourceFile,LineNumberTable
|
|
|
|
# If you keep the line number information, uncomment this to
|
|
# hide the original source file name.
|
|
#-renamesourcefileattribute SourceFile
|
|
|
|
# ===== HiveMQ MQTT Client (依赖 Netty、JCTools) =====
|
|
-keepclassmembernames class io.netty.** { *; }
|
|
-keepclassmembers class org.jctools.** { *; }
|