diff --git a/app/build.gradle b/app/build.gradle index 848b63f..a55e3a4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,12 +12,12 @@ android { keyPassword '34864394' } } - compileSdkVersion 30 + compileSdkVersion 32 defaultConfig { applicationId "com.yutou.nas_music_player" minSdkVersion 23 - targetSdkVersion 30 + targetSdkVersion 32 versionCode 1 versionName "1.1" @@ -44,14 +44,14 @@ android { } dependencies { - implementation 'com.google.android.material:material:1.4.0' - implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0' - implementation fileTree(dir: "libs", include: ["*.jar"]) + implementation 'com.google.android.material:material:1.6.0' + implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0' + implementation fileTree(dir: "libs", include: ["*.aar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'androidx.appcompat:appcompat:1.3.1' - implementation 'androidx.constraintlayout:constraintlayout:2.1.1' - implementation 'androidx.work:work-runtime:2.5.0' - implementation 'androidx.recyclerview:recyclerview:1.2.0' + implementation 'androidx.appcompat:appcompat:1.4.1' + implementation 'androidx.constraintlayout:constraintlayout:2.1.3' + implementation 'androidx.work:work-runtime:2.7.1' + implementation 'androidx.recyclerview:recyclerview:1.2.1' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e6d9804..2bc61ce 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -14,9 +14,10 @@ android:theme="@style/AppTheme" android:usesCleartextTraffic="true"> + android:theme="@style/Theme.AppCompat.DayNight.NoActionBar" + android:exported="true"> @@ -46,7 +47,8 @@ - + diff --git a/app/src/main/java/com/yutou/nas_music_player/views/MainActivity.java b/app/src/main/java/com/yutou/nas_music_player/views/MainActivity.java index 0458d92..d6843fa 100644 --- a/app/src/main/java/com/yutou/nas_music_player/views/MainActivity.java +++ b/app/src/main/java/com/yutou/nas_music_player/views/MainActivity.java @@ -33,6 +33,7 @@ import com.yutou.nas_music_player.containers.MusicContainer; import com.yutou.nas_music_player.tools.AppData; import com.yutou.nas_music_player.tools.AppTools; import com.yutou.nas_music_player.tools.ConfigTools; +import com.yutou.popdialog.POPDialog; import java.util.List; import java.util.Locale; diff --git a/app/src/main/java/com/yutou/nas_music_player/views/OpenActivity.java b/app/src/main/java/com/yutou/nas_music_player/views/OpenActivity.java index 5735bb1..0fa82b8 100644 --- a/app/src/main/java/com/yutou/nas_music_player/views/OpenActivity.java +++ b/app/src/main/java/com/yutou/nas_music_player/views/OpenActivity.java @@ -3,7 +3,6 @@ package com.yutou.nas_music_player.views; import android.content.Intent; import android.os.Bundle; import android.widget.TextView; -import android.widget.Toast; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; diff --git a/build.gradle b/build.gradle index 1c0a656..9422648 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:7.2.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21" // NOTE: Do not place your application dependencies here; they belong