This repository was archived by the owner on Oct 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
src/main/java/io/github/mzdluo123/mirai/android/miraiconsole Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ apply plugin: 'kotlin-kapt'
55apply plugin : ' org.jetbrains.kotlin.plugin.serialization'
66
77
8- def CORE_VERSION = " 1.0.0 "
8+ def CORE_VERSION = " 1.0.1 "
99def LUAMIRAI_VERSION = " 0.2.1"
1010
1111android {
@@ -16,8 +16,8 @@ android {
1616 applicationId " io.github.mzdluo123.mirai.android"
1717 minSdkVersion 24
1818 targetSdkVersion 29
19- versionCode 12
20- versionName " 2.2 "
19+ versionCode 13
20+ versionName " 2.3 "
2121 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
2222 buildConfigField(" String" , " COREVERSION" , " \" $CORE_VERSION \" " )
2323 buildConfigField(" String" , " LUAMIRAI_VERSION" , " \" $LUAMIRAI_VERSION \" " )
Original file line number Diff line number Diff line change @@ -145,10 +145,9 @@ class AndroidMiraiConsole(context: Context) : MiraiConsoleUI {
145145
146146 private fun Bot.subscribeBotLifeEvent () {
147147 subscribeAlways<BotOfflineEvent >(priority = Listener .EventPriority .HIGHEST ) {
148- // 防止一闪而过得掉线
149- // 但是它可能并不能在1.0版本正常工作。。。。。
148+ // 防止一闪而过的掉线
150149 delay(500 )
151- if (this .bot.isActive ) return @subscribeAlways
150+ if (this .bot.isOnline ) return @subscribeAlways
152151 pushLog(0L , " [INFO] 发送离线通知...." )
153152 val builder =
154153 NotificationCompat .Builder (
You can’t perform that action at this time.
0 commit comments