2023-03-02 18:33:29 +01:00
|
|
|
#
|
2024-05-30 08:07:16 +02:00
|
|
|
# SPDX-FileCopyrightText: 2024 The Calyx Institute
|
2023-03-02 18:33:29 +01:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2023-10-13 07:42:24 +02:00
|
|
|
[versions]
|
2024-05-30 08:07:16 +02:00
|
|
|
# Gradle plugin versions
|
2024-09-09 07:53:31 +02:00
|
|
|
androidGradlePlugin = "8.6.0"
|
2024-05-30 08:07:16 +02:00
|
|
|
protobufPlugin = "0.9.4"
|
|
|
|
ktlint = "11.5.0"
|
|
|
|
|
2023-10-13 07:42:24 +02:00
|
|
|
# Android SDK versions
|
2024-09-09 07:56:32 +02:00
|
|
|
compileSdk = "35"
|
2024-05-28 15:23:43 +02:00
|
|
|
minSdk = "34"
|
2024-09-09 07:56:32 +02:00
|
|
|
targetSdk = "35"
|
2023-10-13 07:42:24 +02:00
|
|
|
|
|
|
|
# Test versions
|
|
|
|
junit4 = "4.13.2"
|
2024-05-28 15:23:43 +02:00
|
|
|
junit5 = "5.10.2" # careful, upgrading this can change a Cipher's IV size in tests!?
|
2023-10-13 07:42:24 +02:00
|
|
|
mockk = "1.13.4" # newer versions require kotlin > 1.8.10
|
|
|
|
espresso = "3.4.0"
|
|
|
|
|
|
|
|
# Dependency versions below this are AOSP versions.
|
|
|
|
# We use "strictly" to enforce the version cannot be overriden by transitive dependencies.
|
|
|
|
# We need to enforce that the versions we use are the same as AOSP to ensure compatibility.
|
|
|
|
|
2024-05-30 08:07:16 +02:00
|
|
|
# 1.3.61 Android 11
|
|
|
|
# 1.4.30 Android 12
|
|
|
|
# 1.6.10 Android 13
|
|
|
|
# 1.7.20 Android 13 (QPR2)
|
|
|
|
# 1.8.10 Android 14
|
|
|
|
# 1.9.0 Android 14 (QPR2)
|
2024-07-27 06:45:42 +02:00
|
|
|
# 1.9.22 Android 14 (QPR3)
|
2024-09-09 07:53:31 +02:00
|
|
|
# 1.9.23 Android 15
|
|
|
|
# Check: https://android.googlesource.com/platform/external/kotlinc/+/refs/tags/android-15.0.0_r1/build.txt
|
|
|
|
kotlin = { strictly = "1.9.23" }
|
|
|
|
ksp = "1.9.23-1.0.20" # Keep in match with kotlin version
|
2024-07-27 06:45:42 +02:00
|
|
|
dokka = "1.9.20" # Dokka has no releases after 1.9.20
|
2023-10-13 07:42:24 +02:00
|
|
|
|
|
|
|
# Lint versions
|
|
|
|
lint-rules = { strictly = "0.1.0" }
|
|
|
|
|
2024-08-28 22:08:40 +02:00
|
|
|
# Logging libs (check versions at /libs)
|
|
|
|
logging = { strictly = "6.0.3" }
|
|
|
|
slf4j-api = { strictly = "2.0.16" }
|
|
|
|
|
2023-10-13 07:42:24 +02:00
|
|
|
# Google versions
|
2024-09-09 07:53:31 +02:00
|
|
|
# https://android.googlesource.com/platform/external/protobuf/+/refs/tags/android-15.0.0_r1/java/pom.xml#7
|
2024-03-06 15:22:22 +01:00
|
|
|
protobuf = { strictly = "3.21.12" }
|
2024-09-09 07:53:31 +02:00
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-15.0.0_r1/current/extras/material-design-x/Android.bp#7
|
|
|
|
material = { strictly = "1.11.0" }
|
2023-10-13 07:42:24 +02:00
|
|
|
# careful with upgrading tink, so old backups continue to be decryptable
|
2024-03-06 15:22:22 +01:00
|
|
|
# https://github.com/tink-crypto/tink-java/releases
|
2024-09-18 22:25:58 +02:00
|
|
|
tink = { strictly = "1.15.0" }
|
2023-10-13 07:42:24 +02:00
|
|
|
|
|
|
|
# Coroutines versions
|
2024-09-09 07:53:31 +02:00
|
|
|
# https://android.googlesource.com/platform/external/kotlinx.coroutines/+/refs/tags/android-15.0.0_r1/CHANGES.md
|
2024-07-31 19:44:07 +02:00
|
|
|
coroutines = { strictly = "1.7.3" } # AOSP has 1.7.2 but several libs require 1.7.3
|
2023-10-13 07:42:24 +02:00
|
|
|
|
|
|
|
# AndroidX versions
|
2024-09-09 07:53:31 +02:00
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/android-15.0.0_r1/current/androidx/m2repository/androidx/room/room-ktx?autodive=0
|
|
|
|
room = { strictly = "2.7.0-alpha03" }
|
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/android-15.0.0_r1/current/androidx/m2repository/androidx/core/core-ktx?autodive=0
|
|
|
|
androidx-core = { strictly = "1.14.0-alpha01" }
|
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/android-15.0.0_r1/current/androidx/m2repository/androidx/fragment/fragment-ktx?autodive=0
|
|
|
|
androidx-fragment = { strictly = "1.8.0-rc01" }
|
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/android-15.0.0_r1/current/androidx/m2repository/androidx/activity/activity-ktx?autodive=0
|
|
|
|
androidx-activity = { strictly = "1.9.2" } # 1.10.0-alpha01 in AOSP but has compile SDK version issues
|
2024-03-06 15:22:22 +01:00
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/android-14.0.0_r29/current/androidx/m2repository/androidx/preference/preference?autodive=0
|
|
|
|
androidx-preference = { strictly = "1.2.0-alpha01" } # 1.3.0-alpha01 in AOSP but isn't released
|
2024-09-09 07:53:31 +02:00
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/android-15.0.0_r1/current/androidx/m2repository/androidx/lifecycle/lifecycle-viewmodel-ktx?autodive=0
|
|
|
|
androidx-lifecycle-viewmodel-ktx = { strictly = "2.9.0-alpha01" }
|
|
|
|
androidx-lifecycle-livedata-ktx = { strictly = "2.9.0-alpha01" }
|
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/android-15.0.0_r1/current/androidx/m2repository/androidx/constraintlayout/constraintlayout?autodive=0
|
2024-03-06 15:22:22 +01:00
|
|
|
androidx-constraintlayout = { strictly = "2.2.0-alpha13" }
|
2024-09-09 07:53:31 +02:00
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/android-15.0.0_r1/current/androidx/m2repository/androidx/documentfile/documentfile?autodive=0
|
2024-03-06 15:22:22 +01:00
|
|
|
androidx-documentfile = { strictly = "1.1.0-alpha01" } # 1.1.0-alpha02 in AOSP but isn't released
|
2024-09-09 07:53:31 +02:00
|
|
|
# https://android.googlesource.com/platform/prebuilts/sdk/+/android-15.0.0_r1/current/androidx/m2repository/androidx/work/work-runtime-ktx?autodive=0
|
|
|
|
androidx-work-runtime = { strictly = "2.10.0-alpha02" }
|
2023-10-13 07:42:24 +02:00
|
|
|
|
2024-08-28 22:08:40 +02:00
|
|
|
# https://android.googlesource.com/platform/external/okio/+/refs/tags/android-14.0.0_r53/CHANGELOG.md
|
|
|
|
squareup-okio = { strictly = "3.7.0" }
|
|
|
|
|
2023-10-13 07:42:24 +02:00
|
|
|
[libraries]
|
|
|
|
# Kotlin standard dependencies
|
2024-05-30 08:07:16 +02:00
|
|
|
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
|
|
|
|
kotlin-stdlib-jdk8 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
|
|
|
|
kotlin-stdlib-common = { module = "org.jetbrains.kotlin:kotlin-stdlib-common", version.ref = "kotlin" }
|
2023-10-13 07:42:24 +02:00
|
|
|
|
|
|
|
# Lint dependencies
|
|
|
|
thirdegg-lint-rules = { module = "com.github.thirdegg:lint-rules", version.ref = "lint-rules" }
|
|
|
|
|
|
|
|
# Google dependencies
|
|
|
|
google-tink-android = { module = "com.google.crypto.tink:tink-android", version.ref = "tink" }
|
|
|
|
google-protobuf-javalite = { module = 'com.google.protobuf:protobuf-javalite', version.ref = 'protobuf' }
|
2024-07-11 22:37:11 +02:00
|
|
|
google-protobuf-kotlin-lite = { module = 'com.google.protobuf:protobuf-kotlin-lite', version.ref = 'protobuf' }
|
2023-10-13 07:42:24 +02:00
|
|
|
google-material = { module = 'com.google.android.material:material', version.ref = 'material' }
|
|
|
|
|
|
|
|
# Coroutines dependencies
|
|
|
|
kotlinx-coroutines-core-jvm = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm", version.ref = "coroutines" }
|
|
|
|
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
|
|
|
|
|
|
|
|
# AndroidX dependencies
|
|
|
|
androidx-core = { module = "androidx.core:core", version.ref = "androidx-core" }
|
|
|
|
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidx-core" }
|
|
|
|
androidx-fragment = { module = "androidx.fragment:fragment-ktx", version.ref = "androidx-fragment" }
|
|
|
|
androidx-activity = { module = "androidx.activity:activity-ktx", version.ref = "androidx-activity" }
|
|
|
|
androidx-preference = { module = "androidx.preference:preference", version.ref = "androidx-preference" }
|
|
|
|
androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidx-lifecycle-viewmodel-ktx" }
|
|
|
|
androidx-lifecycle-livedata-ktx = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "androidx-lifecycle-livedata-ktx" }
|
|
|
|
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx-constraintlayout" }
|
|
|
|
androidx-documentfile = { module = "androidx.documentfile:documentfile", version.ref = "androidx-documentfile" }
|
2024-02-01 18:12:47 +01:00
|
|
|
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "androidx-work-runtime" }
|
2023-10-13 07:42:24 +02:00
|
|
|
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
|
|
|
|
|
2024-08-28 22:08:40 +02:00
|
|
|
squareup-okio = { module= "com.squareup.okio:okio", version.ref = "squareup-okio" }
|
|
|
|
kotlin-logging = { module = "io.github.oshai:kotlin-logging-jvm", version.ref = "logging" }
|
|
|
|
slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j-api" }
|
|
|
|
|
2023-10-13 07:42:24 +02:00
|
|
|
[bundles]
|
|
|
|
kotlin = ["kotlin-stdlib", "kotlin-stdlib-jdk8", "kotlin-stdlib-common"]
|
|
|
|
coroutines = ["kotlinx-coroutines-core-jvm", "kotlinx-coroutines-android"]
|
2024-05-30 08:07:16 +02:00
|
|
|
|
|
|
|
[plugins]
|
|
|
|
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
|
|
|
|
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
|
2024-05-30 08:50:20 +02:00
|
|
|
google-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
2024-05-30 08:07:16 +02:00
|
|
|
google-protobuf = { id = "com.google.protobuf", version.ref = "protobufPlugin" }
|
2024-07-27 06:45:42 +02:00
|
|
|
jetbrains-dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
|
2024-07-25 23:55:01 +02:00
|
|
|
jetbrains-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
2024-05-30 08:07:16 +02:00
|
|
|
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
|
|
|
jlleitschuh-ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }
|