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

Commit

Permalink
3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mzdluo123 committed Apr 14, 2021
1 parent 0c7330c commit 5b75cdb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ apply plugin: 'kotlinx-serialization'
apply plugin: "com.github.johnrengelman.shadow"


def CORE_VERSION = "2.6-M2"
def CONSOLE_VERSION = "2.6-M2"
def CORE_VERSION = "2.6-RC"
def CONSOLE_VERSION = "2.6-RC"
def LUAMIRAI_VERSION = "2.0.8"

android {
compileSdkVersion 30
buildToolsVersion "29.0.3"
buildToolsVersion "29.0.2"

defaultConfig {
applicationId "io.github.mzdluo123.mirai.android"
minSdkVersion 21
targetSdkVersion 30
versionCode 45
versionName "3.1.2-dev"
versionCode 46
versionName "3.1.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField("String", "COREVERSION", "\"$CORE_VERSION\"")
buildConfigField("String", "CONSOLEVERSION", "\"$CONSOLE_VERSION\"")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io.github.mzdluo123.mirai.android.activity

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

override fun onSupportNavigateUp(): Boolean =
Expand Down

0 comments on commit 5b75cdb

Please sign in to comment.