This repository was archived by the owner on Oct 20, 2023. It is now read-only.
File tree 2 files changed +12
-5
lines changed
src/main/java/io/github/mzdluo123/mirai/android/activity
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,20 @@ apply plugin: 'kotlinx-serialization'
8
8
apply plugin : " com.github.johnrengelman.shadow"
9
9
10
10
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 "
13
13
def LUAMIRAI_VERSION = " 2.0.8"
14
14
15
15
android {
16
16
compileSdkVersion 30
17
- buildToolsVersion " 29.0.3 "
17
+ buildToolsVersion " 29.0.2 "
18
18
19
19
defaultConfig {
20
20
applicationId " io.github.mzdluo123.mirai.android"
21
21
minSdkVersion 21
22
22
targetSdkVersion 30
23
- versionCode 45
24
- versionName " 3.1.2-dev "
23
+ versionCode 46
24
+ versionName " 3.1.3 "
25
25
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
26
26
buildConfigField(" String" , " COREVERSION" , " \" $CORE_VERSION \" " )
27
27
buildConfigField(" String" , " CONSOLEVERSION" , " \" $CONSOLE_VERSION \" " )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package io.github.mzdluo123.mirai.android.activity
2
2
3
3
import android.content.Intent
4
4
import android.net.Uri
5
+ import android.os.Build
5
6
import android.os.Bundle
6
7
import android.util.Log
7
8
import androidx.appcompat.app.AppCompatActivity
@@ -72,6 +73,12 @@ class MainActivity : AppCompatActivity() {
72
73
// if (BuildConfig.DEBUG) toast("跳过更新检查")
73
74
// else updateCheck()
74
75
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
+ }
75
82
}
76
83
77
84
override fun onSupportNavigateUp (): Boolean =
You can’t perform that action at this time.
0 commit comments