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 +12
-5
lines changed
src/main/java/io/github/mzdluo123/mirai/android/activity Expand file tree Collapse file tree 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'
88apply 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 "
1313def LUAMIRAI_VERSION = " 2.0.8"
1414
1515android {
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 \" " )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package io.github.mzdluo123.mirai.android.activity
22
33import android.content.Intent
44import android.net.Uri
5+ import android.os.Build
56import android.os.Bundle
67import android.util.Log
78import 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 =
You can’t perform that action at this time.
0 commit comments