diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
index 3cc336b..1ca7a5c 100644
--- a/.idea/codeStyles/Project.xml
+++ b/.idea/codeStyles/Project.xml
@@ -8,15 +8,7 @@
-
+
diff --git a/app/build.gradle b/app/build.gradle
index e030691..073fe97 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -71,13 +71,17 @@ android {
}
dependencies {
+ api fileTree(include: ['*.aar'], dir: 'libs') // https://stackoverflow.com/a/63029110/28801553
+
//noinspection GradleDependency
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.12.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
+ implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
+ //noinspection GradleDependency
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.7'
+ //noinspection GradleDependency
implementation 'androidx.navigation:navigation-ui-ktx:2.7.7'
testImplementation 'junit:junit:4.13.2'
implementation "androidx.preference:preference-ktx:1.2.1"
@@ -91,7 +95,7 @@ dependencies {
implementation 'com.github.vovaksenov99:OverscrollableScrollView:1.0'
implementation 'com.github.liaoinstan.SpringView:library:0a24d3e9dd'
implementation 'com.github.zawadz88:MaterialPopupMenu:4.1.0'
- implementation 'com.lapism:search:2.4.1@aar'
+ implementation files('libs/com.lapism/search-2.4.1.aar') // https://stackoverflow.com/a/63029110/28801553
//noinspection GradleDependency
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
implementation 'com.airbnb.android:lottie:6.5.2'
diff --git a/app/libs/com.lapism/search-2.4.1.aar b/app/libs/com.lapism/search-2.4.1.aar
new file mode 100644
index 0000000..158ddca
Binary files /dev/null and b/app/libs/com.lapism/search-2.4.1.aar differ
diff --git a/app/src/main/java/top/fumiama/copymanga/ui/home/HomeFragment.kt b/app/src/main/java/top/fumiama/copymanga/ui/home/HomeFragment.kt
index 5cc9276..e77b22f 100644
--- a/app/src/main/java/top/fumiama/copymanga/ui/home/HomeFragment.kt
+++ b/app/src/main/java/top/fumiama/copymanga/ui/home/HomeFragment.kt
@@ -26,7 +26,6 @@ import kotlinx.android.synthetic.main.viewpage_horizonal.view.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
-import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withContext
import top.fumiama.copymanga.MainActivity
import top.fumiama.copymanga.MainActivity.Companion.ime
diff --git a/build.gradle b/build.gradle
index e7efebf..784d5d8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
- ext.kotlin_version = '1.7.10'
+ ext.kotlin_version = "$cm_kotlin_version"
repositories {
google()
mavenCentral()
@@ -19,7 +19,6 @@ buildscript {
allprojects {
repositories {
google()
- jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
diff --git a/gradle.properties b/gradle.properties
index 1d8133f..9fc617d 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -23,3 +23,4 @@ android.enableR8.fullMode=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
+cm_kotlin_version=1.7.10
diff --git a/settings.gradle b/settings.gradle
index 3fc2f4b..e230c77 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,2 +1,8 @@
+pluginManagement {
+ plugins {
+ id 'kotlin-android' version "$cm_kotlin_version"
+ }
+}
+
include ':app'
rootProject.name = "拷贝漫画"
\ No newline at end of file