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

Commit 5b75cdb

Browse files
committed
3.1.1
1 parent 0c7330c commit 5b75cdb

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ apply plugin: 'kotlinx-serialization'
88
apply plugin: "com.github.johnrengelman.shadow"
99

1010

11-
def CORE_VERSION = "2.6-M2"
12-
def CONSOLE_VERSION = "2.6-M2"
11+
def CORE_VERSION = "2.6-RC"
12+
def CONSOLE_VERSION = "2.6-RC"
1313
def LUAMIRAI_VERSION = "2.0.8"
1414

1515
android {
1616
compileSdkVersion 30
17-
buildToolsVersion "29.0.3"
17+
buildToolsVersion "29.0.2"
1818

1919
defaultConfig {
2020
applicationId "io.github.mzdluo123.mirai.android"
2121
minSdkVersion 21
2222
targetSdkVersion 30
23-
versionCode 45
24-
versionName "3.1.2-dev"
23+
versionCode 46
24+
versionName "3.1.3"
2525
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2626
buildConfigField("String", "COREVERSION", "\"$CORE_VERSION\"")
2727
buildConfigField("String", "CONSOLEVERSION", "\"$CONSOLE_VERSION\"")

app/src/main/java/io/github/mzdluo123/mirai/android/activity/MainActivity.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package io.github.mzdluo123.mirai.android.activity
22

33
import android.content.Intent
44
import android.net.Uri
5+
import android.os.Build
56
import android.os.Bundle
67
import android.util.Log
78
import androidx.appcompat.app.AppCompatActivity
@@ -72,6 +73,12 @@ class MainActivity : AppCompatActivity() {
7273
// if (BuildConfig.DEBUG) toast("跳过更新检查")
7374
// else updateCheck()
7475
updateCheck()
76+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
77+
alertDialog {
78+
this.setTitle("特别提醒")
79+
message = "MiraiAndroid不对低于Android8.0的设备提供支持,但是你仍然可以在低于8.0的设备上运行;适配代码由溯洄提供,请勿反馈问题"
80+
}.show()
81+
}
7582
}
7683

7784
override fun onSupportNavigateUp(): Boolean =

0 commit comments

Comments
 (0)