mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
scanner: support libs.versions.toml
This commit is contained in:
parent
528760acc8
commit
eff0ef48f4
17 changed files with 723 additions and 35 deletions
2
tests/source-files/catalog.test/app/build.gradle
Normal file
2
tests/source-files/catalog.test/app/build.gradle
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
implementation libs.bundles.firebase
|
||||
implementation libs.play.service.ads
|
||||
5
tests/source-files/catalog.test/build.gradle.kts
Normal file
5
tests/source-files/catalog.test/build.gradle.kts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
plugins {
|
||||
alias(libs.plugins.google.services)
|
||||
alias(libs.plugins.firebase.crashlytics)
|
||||
alias(projectLibs.plugins.firebase.crashlytics)
|
||||
}
|
||||
15
tests/source-files/catalog.test/gradle/libs.versions.toml
Normal file
15
tests/source-files/catalog.test/gradle/libs.versions.toml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[versions]
|
||||
firebase = "1.1.1"
|
||||
gms = "1.2.1"
|
||||
|
||||
[libraries]
|
||||
firebase-crash = { module = "com.google.firebase:firebase-crash", version.ref = "firebase" }
|
||||
firebase_core = { module = "com.google.firebase:firebase-core", version = "2.2.2" }
|
||||
"play.service.ads" = { module = "com.google.android.gms:play-services-ads", version.ref = "gms"}
|
||||
|
||||
[plugins]
|
||||
google-services = { id = "com.google.gms.google-services", version.ref = "gms" }
|
||||
firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebase" }
|
||||
|
||||
[bundles]
|
||||
firebase = ["firebase-crash", "firebase_core"]
|
||||
15
tests/source-files/catalog.test/libs.versions.toml
Normal file
15
tests/source-files/catalog.test/libs.versions.toml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[versions]
|
||||
firebase = "1.1.1"
|
||||
gms = "1.2.1"
|
||||
|
||||
[libraries]
|
||||
firebase-crash = { module = "com.google.firebase:firebase-crash", version.ref = "firebase" }
|
||||
firebase_core = { module = "com.google.firebase:firebase-core", version = "2.2.2" }
|
||||
"play.service.ads" = { module = "com.google.android.gms:play-services-ads", version.ref = "gms"}
|
||||
|
||||
[plugins]
|
||||
google-services = { id = "com.google.gms.google-services", version.ref = "gms" }
|
||||
firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebase" }
|
||||
|
||||
[bundles]
|
||||
firebase = ["firebase-crash", "firebase_core"]
|
||||
11
tests/source-files/catalog.test/settings.gradle.kts
Normal file
11
tests/source-files/catalog.test/settings.gradle.kts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
dependencyResolutionManagement {
|
||||
defaultLibrariesExtensionName = "projectLibs"
|
||||
versionCatalogs {
|
||||
create("libs") {
|
||||
from(files("./libs.versions.toml"))
|
||||
}
|
||||
create("anotherLibs") {
|
||||
from(files("$rootDir/libs.versions.toml"))
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue