From c21a82d8add45c95bd168ce9cac570b5fb98a727 Mon Sep 17 00:00:00 2001 From: LittleTurtle2333 <841474544@qq.com> Date: Wed, 16 Feb 2022 18:09:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20/app/build.gradle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/.gitignore | 3 ++- app/build.gradle | 10 ++-------- .../simplicitytools/activity/SettingsActivity.kt | 4 ++-- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app/.gitignore b/app/.gitignore index 42afabfd..67e07b8f 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1 +1,2 @@ -/build \ No newline at end of file +/build +/release diff --git a/app/build.gradle b/app/build.gradle index 0fb8e1bc..801cd401 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -39,12 +39,6 @@ android { dependencies { compileOnly 'de.robv.android.xposed:api:82' - compileOnly 'de.robv.android.xposed:api:82:sources' - implementation 'androidx.constraintlayout:constraintlayout:2.1.2' - implementation 'androidx.preference:preference:1.1.1' - implementation 'androidx.appcompat:appcompat:1.4.0' - implementation 'com.google.android.material:material:1.4.0' - testImplementation 'junit:junit:4.+' - androidTestImplementation 'androidx.test.ext:junit:1.1.3' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + implementation 'androidx.preference:preference:1.2.0' + implementation 'com.google.android.material:material:1.5.0' } \ No newline at end of file diff --git a/app/src/main/java/com/lt2333/simplicitytools/activity/SettingsActivity.kt b/app/src/main/java/com/lt2333/simplicitytools/activity/SettingsActivity.kt index d0f4c09c..fc421566 100644 --- a/app/src/main/java/com/lt2333/simplicitytools/activity/SettingsActivity.kt +++ b/app/src/main/java/com/lt2333/simplicitytools/activity/SettingsActivity.kt @@ -68,9 +68,9 @@ class SettingsActivity : AppCompatActivity() { BuildConfig.VERSION_NAME + "(" + BuildConfig.BUILD_TYPE + ")" } - override fun onPreferenceTreeClick(preference: Preference?): Boolean { + override fun onPreferenceTreeClick(preference: Preference): Boolean { - when (preference!!.key) { + when (preference.key) { "opensource" -> { try { val uri =