Use version category

This commit is contained in:
LoveSy 2023-06-27 15:52:48 +08:00
parent 254b21edd4
commit 5f475c56b7
No known key found for this signature in database
5 changed files with 41 additions and 11 deletions

20
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: gradle
directory: "/"
schedule:
interval: daily
time: "21:00"
open-pull-requests-limit: 10
target-branch: master
registries:
- maven-google
- gralde-plugin
registries:
maven-google:
type: maven-repository
url: "https://dl.google.com/dl/android/maven2/"
gralde-plugin:
type: maven-repository
url: "https://plugins.gradle.org/m2/"

14
gradle/libs.versions.toml Normal file
View File

@ -0,0 +1,14 @@
[versions]
agp = "8.0.2"
[plugins]
agp-app = { id = "com.android.application", version.ref = "agp" }
agp-lib = { id = "com.android.library", version.ref = "agp" }
[libraries]
cxx = { module = "dev.rikka.ndk.thirdparty:cxx", version = "1.2.0" }
dobby = { module = "io.github.vvb2060.ndk:dobby", version = "1.2" }
test-ext-junit = { module = "androidx.test.ext:junit", version = "1.1.5" }
test-runner = { module = "androidx.test:runner", version = "1.5.2" }
test-espresso = { module = "androidx.test.espresso:espresso-core", version = "3.5.1" }

View File

@ -3,7 +3,7 @@ import org.eclipse.jgit.api.Git
import org.eclipse.jgit.storage.file.FileRepositoryBuilder
plugins {
id("com.android.library")
alias(libs.plugins.agp.lib)
id("maven-publish")
id("signing")
}
@ -253,7 +253,7 @@ publishing {
}
}
dependencies {
"standaloneCompileOnly"("dev.rikka.ndk.thirdparty:cxx:1.2.0")
"standaloneCompileOnly"(libs.cxx)
}
}

View File

@ -4,10 +4,6 @@ pluginManagement {
google()
mavenCentral()
}
plugins {
id("com.android.application") version "8.0.2"
id("com.android.library") version "8.0.2"
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)

View File

@ -1,7 +1,7 @@
import com.android.build.api.dsl.ManagedVirtualDevice
plugins {
id("com.android.application")
alias(libs.plugins.agp.app)
}
val androidTargetSdkVersion: Int by rootProject.extra
@ -90,10 +90,10 @@ android {
dependencies {
implementation(project(":lsplant"))
implementation("io.github.vvb2060.ndk:dobby:1.2")
implementation(libs.dobby)
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test:runner:1.5.2")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
androidTestImplementation(libs.test.ext.junit)
androidTestImplementation(libs.test.runner)
androidTestImplementation(libs.test.espresso)
}