Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 32b55b7

Browse files
committed
update core to 1.0.1
1 parent d0a1ae9 commit 32b55b7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apply plugin: 'kotlin-kapt'
55
apply plugin: 'org.jetbrains.kotlin.plugin.serialization'
66

77

8-
def CORE_VERSION = "1.0.0"
8+
def CORE_VERSION = "1.0.1"
99
def LUAMIRAI_VERSION = "0.2.1"
1010

1111
android {
@@ -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\"")

app/src/main/java/io/github/mzdluo123/mirai/android/miraiconsole/AndroidMiraiConsole.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)