6.7.0 - Alpha6 - 使用版本目录 (Version Catalogs) 集中管理 Gradle 依赖和插件版本

This commit is contained in:
SuperMonster003
2025-09-24 15:53:37 +08:00
parent e46a3bd15b
commit ef076d1cf8
11 changed files with 200 additions and 41 deletions

View File

@@ -28,7 +28,7 @@ android {
}
dependencies {
implementation 'org.bouncycastle:bcprov-jdk15on:1.70'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.70'
implementation 'androidx.annotation:annotation:1.9.1'
implementation libs.bcprov.jdk15on
implementation libs.bcpkix.jdk15on
implementation libs.annotation
}

View File

@@ -39,8 +39,8 @@ repositories {
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation libs.appcompat
implementation libs.material
// @Hint by SuperMonster003 on Mar 14, 2025.
// ! Dependency "prov" contains "core" (zh-CN: 依赖 "prov" 已包含 "core"):
@@ -48,9 +48,9 @@ dependencies {
// ! | +--- com.madgag.spongycastle:core:1.58.0.0
// ! | \--- junit:junit:4.12 (*)
// # implementation("com.madgag.spongycastle:core:1.58.0.0")
implementation("com.madgag.spongycastle:prov:1.58.0.0")
implementation(libs.prov)
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}
testImplementation libs.junit
androidTestImplementation libs.test.ext.junit
androidTestImplementation libs.test.espresso.core
}

View File

@@ -37,6 +37,6 @@ repositories {
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation libs.appcompat
implementation libs.preference.ktx
}

View File

@@ -43,15 +43,12 @@ repositories {
}
dependencies {
// implementation "org.jetbrains.kotlin:kotlin-stdlib:${project.ext.kotlinVersion}"
implementation libs.appcompat
implementation libs.commons.lang3
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'org.apache.commons:commons-lang3:3.16.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
testImplementation libs.junit
androidTestImplementation libs.test.ext.junit
androidTestImplementation libs.test.espresso.core
}
tasks.withType(JavaCompile).configureEach {

View File

@@ -44,14 +44,14 @@ repositories {
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.recyclerview:recyclerview:1.4.0'
implementation libs.appcompat
implementation libs.recyclerview
testImplementation 'junit:junit:4.13.2'
testImplementation 'com.pholser:junit-quickcheck-core:0.9.2'
testImplementation 'com.pholser:junit-quickcheck-generators:0.9.1'
testImplementation libs.junit
testImplementation libs.junit.quickcheck.core
testImplementation libs.junit.quickcheck.generators
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test:runner:1.6.2'
androidTestImplementation 'androidx.test:rules:1.6.1'
androidTestImplementation libs.test.ext.junit
androidTestImplementation libs.test.runner
androidTestImplementation libs.test.rules
}

View File

@@ -39,8 +39,8 @@ repositories {
}
dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'me.zhanghai.android.materialprogressbar:library:1.4.2'
implementation libs.appcompat.v7
implementation libs.support.annotations
implementation libs.recyclerview.v7
implementation libs.materialprogressbar
}