修复:没有跳转到具体的通知权限设置页的问题

新增:`{{当前时间}}` `{{CURRENT_TIME}}` 标签(便于调试)
This commit is contained in:
pppscn 2023-07-07 10:42:05 +08:00
parent 2c9065a743
commit a9eaa8c791
4 changed files with 8 additions and 5 deletions

View File

@ -188,7 +188,9 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//frpc
implementation files('libs/frpclib.aar')
//kmnkt是基于Kotlin Multiplatform的跨平台socket通信统一接口Android目标与JVM目标UDP/TCP/MQTT协议使用同一套接口实现
//kmnkt基于Kotlin Multiplatform的跨平台socket通信统一接口UDP/TCP/MQTT协议
//https://github.com/xuankaicat/kmnkt
implementation("org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5")
implementation files('libs/socket.aar')
@ -262,7 +264,7 @@ dependencies {
testImplementation "androidx.paging:paging-common-ktx:$paging_version"
//https://github.com/getActivity/XXPermissions
implementation 'com.github.getActivity:XXPermissions:18.0'
implementation 'com.github.getActivity:XXPermissions:18.2'
def mail_version = '1.6.7'
implementation "com.sun.mail:android-mail:$mail_version"
@ -281,9 +283,6 @@ dependencies {
//Location Android LocationManager https://github.com/jenly1314/Location
implementation 'com.github.pppscn:location:1.0.0'
//socket通信统一接口https://gitee.com/xuankaicat/kmnkt
//implementation 'com.github.pppscn.kmnkt:socket:2.0.0-alpha06'
}
//X-Library依赖
apply from: 'x-library.gradle'

View File

@ -51,6 +51,7 @@ data class MsgInfo(
.replace(getString(R.string.tag_title), title)
.replace(getString(R.string.tag_scheme), scheme)
.replace(getString(R.string.tag_receive_time), SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date))
.replace(getString(R.string.tag_current_time), SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Date()))
.replace(getString(R.string.tag_device_name), deviceMark)
.replace(getString(R.string.tag_app_version), versionName)
.trim()
@ -97,6 +98,7 @@ data class MsgInfo(
.replace(getString(R.string.tag_title), title)
.replace(getString(R.string.tag_scheme), scheme)
.replace(getString(R.string.tag_receive_time), SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date))
.replace(getString(R.string.tag_current_time), SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Date()))
.replace(getString(R.string.tag_device_name), deviceMark)
.replace(getString(R.string.tag_app_version), versionName)
.trim()

View File

@ -589,6 +589,7 @@
<string name="tag_card_slot">{{CARD_SLOT}}</string>
<string name="tag_card_subid">{{CARD_SUBID}}</string>
<string name="tag_receive_time">{{RECEIVE_TIME}}</string>
<string name="tag_current_time">{{CURRENT_TIME}}</string>
<string name="tag_device_name">{{DEVICE_NAME}}</string>
<string name="tag_app_version">{{APP_VERSION}}</string>
<string name="tag_title">{{TITLE}}</string>

View File

@ -590,6 +590,7 @@
<string name="tag_card_slot">{{卡槽信息}}</string>
<string name="tag_card_subid">{{卡槽主键}}</string>
<string name="tag_receive_time">{{接收时间}}</string>
<string name="tag_current_time">{{当前时间}}</string>
<string name="tag_device_name">{{设备名称}}</string>
<string name="tag_app_version">{{当前应用版本号}}</string>
<string name="tag_title">{{通知标题}}</string>