2021-01-19 13:14:52 +01:00
|
|
|
ext {
|
2021-10-07 18:44:55 +02:00
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/androidx/Android.bp#2943
|
|
|
|
ext.room_version = "2.3.0-beta02"
|
|
|
|
// https://android.googlesource.com/platform/external/protobuf/+/refs/tags/android-12.0.0_r2/java/pom.xml#7
|
2021-01-19 13:14:52 +01:00
|
|
|
ext.protobuf_version = "3.9.1"
|
2021-06-18 22:30:07 +02:00
|
|
|
junit4_version = "4.13.2"
|
2021-01-19 13:14:52 +01:00
|
|
|
junit5_version = "5.5.2" // careful, upgrading this can change a Cipher's IV size in tests!?
|
2021-10-07 18:44:55 +02:00
|
|
|
mockk_version = "1.12.0"
|
|
|
|
espresso_version = "3.4.0"
|
2021-01-19 13:14:52 +01:00
|
|
|
}
|
|
|
|
|
2020-09-15 22:16:22 +02:00
|
|
|
// To produce these binaries, in latest AOSP source tree, run
|
|
|
|
// $ m
|
2021-01-19 13:14:52 +01:00
|
|
|
ext.aosp_libs = fileTree(include: [
|
|
|
|
// For more information about this module:
|
|
|
|
// https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-11.0.0_r3/Android.bp#507
|
|
|
|
// framework_intermediates/classes-header.jar works for gradle build as well,
|
|
|
|
// but not unit tests, so we use the actual classes (without updatable modules).
|
|
|
|
//
|
|
|
|
// out/target/common/obj/JAVA_LIBRARIES/framework-minus-apex_intermediates/classes.jar
|
|
|
|
'android.jar',
|
2021-10-07 18:44:55 +02:00
|
|
|
// out/target/common/obj/JAVA_LIBRARIES/core-libart.com.android.art_intermediates/classes.jar
|
2021-01-19 13:14:52 +01:00
|
|
|
'libcore.jar',
|
|
|
|
], dir: "$projectDir/app/libs")
|
|
|
|
|
|
|
|
ext.kotlin_libs = [
|
|
|
|
std: [
|
|
|
|
dependencies.create('org.jetbrains.kotlin:kotlin-stdlib') {
|
|
|
|
version { strictly "$aosp_kotlin_version" }
|
|
|
|
},
|
|
|
|
dependencies.create('org.jetbrains.kotlin:kotlin-stdlib-jdk8') {
|
|
|
|
version { strictly "$aosp_kotlin_version" }
|
|
|
|
},
|
|
|
|
dependencies.create('org.jetbrains.kotlin:kotlin-stdlib-common') {
|
|
|
|
version { strictly "$aosp_kotlin_version" }
|
|
|
|
},
|
|
|
|
],
|
|
|
|
coroutines: [
|
2021-10-07 18:44:55 +02:00
|
|
|
dependencies.create('org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm') {
|
|
|
|
// https://android.googlesource.com/platform/prebuilts/tools/+/refs/tags/android-12.0.0_r2/common/m2/Android.bp#273
|
|
|
|
version { strictly '1.4.2' }
|
2021-01-19 13:14:52 +01:00
|
|
|
},
|
|
|
|
dependencies.create('org.jetbrains.kotlinx:kotlinx-coroutines-android') {
|
2021-10-07 18:44:55 +02:00
|
|
|
// https://android.googlesource.com/platform/prebuilts/tools/+/refs/tags/android-12.0.0_r2/common/m2/Android.bp#288
|
2021-01-19 13:14:52 +01:00
|
|
|
version { strictly '1.3.0' }
|
|
|
|
},
|
|
|
|
],
|
|
|
|
]
|
|
|
|
|
|
|
|
ext.std_libs = [
|
2021-10-07 18:44:55 +02:00
|
|
|
androidx_core: [
|
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/androidx/Android.bp#867
|
|
|
|
dependencies.create('androidx.core:core') {
|
|
|
|
version { strictly '1.6.0' } // should be 1.6.0-beta03, but that is not even released, yet
|
|
|
|
},
|
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/androidx/Android.bp#833
|
|
|
|
dependencies.create('androidx.core:core-ktx') {
|
|
|
|
version { strictly '1.5.0-beta02' }
|
|
|
|
},
|
|
|
|
],
|
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/androidx/Android.bp#1189
|
2021-01-19 13:14:52 +01:00
|
|
|
androidx_fragment: dependencies.create('androidx.fragment:fragment-ktx') {
|
2021-10-07 18:44:55 +02:00
|
|
|
version { strictly '1.4.0-alpha01' }
|
|
|
|
},
|
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/androidx/Android.bp#20
|
|
|
|
androidx_activity: dependencies.create('androidx.activity:activity-ktx') {
|
|
|
|
version { strictly '1.3.0-alpha03' }
|
2021-01-19 13:14:52 +01:00
|
|
|
},
|
2021-10-07 18:44:55 +02:00
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/androidx/Android.bp#2695
|
2021-01-19 13:14:52 +01:00
|
|
|
androidx_preference: dependencies.create('androidx.preference:preference') {
|
2020-09-15 22:16:22 +02:00
|
|
|
version { strictly '1.1.1' } // should be 1.2.0-alpha01, but that is not even released, yet
|
2021-01-19 13:14:52 +01:00
|
|
|
},
|
2021-10-07 18:44:55 +02:00
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/androidx/Android.bp#1820
|
2021-01-19 13:14:52 +01:00
|
|
|
androidx_lifecycle_viewmodel_ktx: dependencies.create('androidx.lifecycle:lifecycle-viewmodel-ktx') {
|
2021-10-07 18:44:55 +02:00
|
|
|
version { strictly '2.4.0-alpha01' }
|
2021-01-19 13:14:52 +01:00
|
|
|
},
|
2021-10-07 18:44:55 +02:00
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/androidx/Android.bp#1618
|
2021-01-19 13:14:52 +01:00
|
|
|
androidx_lifecycle_livedata_ktx: dependencies.create('androidx.lifecycle:lifecycle-livedata-ktx') {
|
2021-10-07 18:44:55 +02:00
|
|
|
version { strictly '2.4.0-alpha01' }
|
2021-01-19 13:14:52 +01:00
|
|
|
},
|
2021-10-07 18:44:55 +02:00
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/extras/constraint-layout-x/Android.bp#39
|
2021-01-19 13:14:52 +01:00
|
|
|
androidx_constraintlayout: dependencies.create('androidx.constraintlayout:constraintlayout') {
|
2020-09-15 22:16:22 +02:00
|
|
|
version { strictly '2.0.0-beta7' }
|
2021-01-19 13:14:52 +01:00
|
|
|
},
|
2021-10-07 18:44:55 +02:00
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/androidx/Android.bp#969
|
2021-01-19 13:14:52 +01:00
|
|
|
androidx_documentfile: dependencies.create('androidx.documentfile:documentfile') {
|
2021-10-07 18:44:55 +02:00
|
|
|
version { strictly '1.1.0-alpha01' }
|
2021-01-19 13:14:52 +01:00
|
|
|
},
|
2021-10-07 18:44:55 +02:00
|
|
|
// https://android.googlesource.com/platform/prebuilts/sdk/+/refs/tags/android-12.0.0_r2/current/extras/material-design-x/Android.bp#6
|
2021-01-19 13:14:52 +01:00
|
|
|
com_google_android_material: dependencies.create('com.google.android.material:material') {
|
2021-10-07 18:44:55 +02:00
|
|
|
version { strictly '1.4.0' }
|
2021-01-19 13:14:52 +01:00
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
ext.lint_libs = [
|
2021-10-07 18:44:55 +02:00
|
|
|
exceptions: 'com.github.thirdegg:lint-rules:0.0.6-beta'
|
2021-01-19 13:14:52 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
ext.storage_libs = [
|
|
|
|
androidx_room_runtime: dependencies.create('androidx.room:room-runtime') {
|
|
|
|
version { strictly "$room_version" }
|
|
|
|
},
|
|
|
|
com_google_protobuf_javalite: dependencies.create('com.google.protobuf:protobuf-javalite') {
|
|
|
|
version { strictly "$protobuf_version" }
|
|
|
|
},
|
|
|
|
com_google_crypto_tink_android: dependencies.create('com.google.crypto.tink:tink-android') {
|
2021-10-07 18:44:55 +02:00
|
|
|
version { strictly '1.6.1' }
|
2021-01-19 13:14:52 +01:00
|
|
|
},
|
|
|
|
]
|