File tree Expand file tree Collapse file tree
src/main/java/com/fankes/miui/notify Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11plugins {
22 id ' com.android.application'
33 id ' kotlin-android'
4- id ' com.google.devtools.ksp' version ' 1.6.21 -1.0.5 '
4+ id ' com.google.devtools.ksp' version ' 1.7.0 -1.0.6 '
55}
66
77android {
8- compileSdk 31
8+ compileSdk 32
99
1010 signingConfigs {
1111 debug {
@@ -21,7 +21,7 @@ android {
2121 defaultConfig {
2222 applicationId " com.fankes.miui.notify"
2323 minSdk 28
24- targetSdk 31
24+ targetSdk 32
2525 versionCode rootProject. ext. appVersionCode
2626 versionName rootProject. ext. appVersionName
2727
@@ -63,10 +63,10 @@ dependencies {
6363 ksp ' com.highcapable.yukihookapi:ksp-xposed:1.0.92'
6464 implementation " com.github.topjohnwu.libsu:core:3.1.2"
6565 implementation ' androidx.annotation:annotation:1.3.0'
66- implementation ' com.squareup.okhttp3:okhttp:4.9.3 '
67- implementation ' androidx.core:core-ktx:1.7 .0'
68- implementation ' androidx.appcompat:appcompat:1.4.1 '
69- implementation ' com.google.android.material:material:1.6.0 '
66+ implementation ' com.squareup.okhttp3:okhttp:5.0.0-alpha.7 '
67+ implementation ' androidx.core:core-ktx:1.8 .0'
68+ implementation ' androidx.appcompat:appcompat:1.4.2 '
69+ implementation ' com.google.android.material:material:1.6.1 '
7070 implementation ' androidx.constraintlayout:constraintlayout:2.1.4'
7171 testImplementation ' junit:junit:4.13.2'
7272 androidTestImplementation ' androidx.test.ext:junit:1.1.3'
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ package com.fankes.miui.notify.ui.activity.base
2727import android.os.Bundle
2828import androidx.appcompat.app.AppCompatActivity
2929import androidx.core.content.res.ResourcesCompat
30- import androidx.core.view.ViewCompat
30+ import androidx.core.view.WindowCompat
3131import androidx.viewbinding.ViewBinding
3232import com.fankes.miui.notify.R
3333import com.fankes.miui.notify.utils.factory.isNotSystemInDarkMode
@@ -61,7 +61,7 @@ abstract class BaseActivity<VB : ViewBinding> : AppCompatActivity() {
6161 /* * 隐藏系统的标题栏 */
6262 supportActionBar?.hide()
6363 /* * 初始化沉浸状态栏 */
64- ViewCompat .getWindowInsetsController (window.decorView)? .apply {
64+ WindowCompat .getInsetsController (window, window .decorView).apply {
6565 isAppearanceLightStatusBars = isNotSystemInDarkMode
6666 isAppearanceLightNavigationBars = isNotSystemInDarkMode
6767 }
Original file line number Diff line number Diff line change 2020 *
2121 * This file is Created by fankes on 2022/1/8.
2222 */
23- @file:Suppress(" DEPRECATION" , " CanvasSize" )
23+ @file:Suppress(" DEPRECATION" , " CanvasSize" , " OVERRIDE_DEPRECATION " )
2424
2525package com.fankes.miui.notify.utils.drawable.drawabletoolbox
2626
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ object GithubReleaseTool {
6161 override fun onFailure (call : Call , e : IOException ) {}
6262
6363 override fun onResponse (call : Call , response : Response ) = runInSafe {
64- JSONObject (response.body? .string() ? : " " ).apply {
64+ JSONObject (response.body.string()).apply {
6565 GithubReleaseBean (
6666 name = getString(" name" ),
6767 htmlUrl = getString(" html_url" ),
Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ object IconRuleManagerTool {
343343 }
344344
345345 override fun onResponse (call : Call , response : Response ) {
346- val bodyString = response.body? .string() ? : " "
346+ val bodyString = response.body.string()
347347 (context as ? Activity ? )?.runOnUiThread { result(true , bodyString) } ? : result(true , bodyString)
348348 }
349349 })
Original file line number Diff line number Diff line change 11plugins {
2- id ' com.android.application' version ' 7.2.0 ' apply false
3- id ' com.android.library' version ' 7.2.0 ' apply false
4- id ' org.jetbrains.kotlin.android' version ' 1.6.21 ' apply false
2+ id ' com.android.application' version ' 7.2.1 ' apply false
3+ id ' com.android.library' version ' 7.2.1 ' apply false
4+ id ' org.jetbrains.kotlin.android' version ' 1.7.0 ' apply false
55}
66
77ext {
Original file line number Diff line number Diff line change 66# http://www.gradle.org/docs/current/userguide/build_environment.html
77# Specifies the JVM arguments used for the daemon process.
88# The setting is particularly useful for tweaking memory settings.
9- org.gradle.jvmargs =-Xmx2048m -Dfile.encoding=UTF-8
9+ org.gradle.jvmargs =-XX:+UseParallelGC
1010# When configured, Gradle will run in incubating parallel mode.
1111# This option should only be used with decoupled projects. More details, visit
1212# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
@@ -18,4 +18,6 @@ android.useAndroidX=true
1818# Automatically convert third-party libraries to use AndroidX
1919android.enableJetifier =true
2020# Kotlin code style for this project: "official" or "obsolete":
21- kotlin.code.style =official
21+ kotlin.code.style =official
22+ # Incremental
23+ kotlin.incremental.useClasspathSnapshot =true
You can’t perform that action at this time.
0 commit comments