7b7f01a439
RxJava2 extensions
66 lines
3.4 KiB
Groovy
66 lines
3.4 KiB
Groovy
ext.versions = [
|
|
minSdk : 16,
|
|
targetSdk : 29,
|
|
compileSdk : 29,
|
|
buildTools : '29.0.2',
|
|
kotlin : '1.3.61',
|
|
ktlint : '0.36.0',
|
|
|
|
// UI libs.
|
|
picasso : '2.5.2',
|
|
|
|
// Others.
|
|
coroutines : '1.3.3',
|
|
retrofit : '2.7.1',
|
|
okHttp : '4.3.1',
|
|
okio : '2.4.3',
|
|
moshi : '1.9.2',
|
|
javax : '1',
|
|
room : '2.2.2',
|
|
coreKtx : '1.1.0',
|
|
lifecycle : '2.2.0',
|
|
rx2 : '2.2.17',
|
|
|
|
// Testing.
|
|
junit : '4.13',
|
|
truth : '1.0',
|
|
mockito : '2.24.0',
|
|
mockitoKotlin : '2.2.0',
|
|
]
|
|
|
|
ext.libraries = [
|
|
// UI libs.
|
|
supportAppCompat : 'androidx.appcompat:appcompat:1.1.0',
|
|
supportLifecycle : "androidx.lifecycle:lifecycle-runtime-ktx:$versions.lifecycle",
|
|
lifecycleExtensions : "androidx.lifecycle:lifecycle-extensions:$versions.lifecycle",
|
|
supportCardView : 'androidx.cardview:cardview:1.0.0',
|
|
supportDesign : 'com.google.android.material:material:1.0.0',
|
|
supportRecyclerView : 'androidx.recyclerview:recyclerview:1.0.0',
|
|
supportFragments : 'androidx.fragment:fragment-ktx:1.1.0',
|
|
picasso : "com.squareup.picasso:picasso:$versions.picasso",
|
|
|
|
// Others.
|
|
retrofit : "com.squareup.retrofit2:retrofit:$versions.retrofit",
|
|
retrofitMoshiConverter : "com.squareup.retrofit2:converter-moshi:$versions.retrofit",
|
|
okHttp : "com.squareup.okhttp:okhttp:$versions.okHttp",
|
|
okio : "com.squareup.okio:okio:$versions.okio",
|
|
moshi : "com.squareup.moshi:moshi:$versions.moshi",
|
|
moshiCodegen : "com.squareup.moshi:moshi-kotlin-codegen:$versions.moshi",
|
|
javax : "javax.inject:javax.inject:$versions.javax",
|
|
kotlinStdLib : "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin",
|
|
roomCompiler : "androidx.room:room-compiler:$versions.room",
|
|
roomRuntime : "androidx.room:room-ktx:$versions.room",
|
|
coreKtx : "androidx.core:core-ktx:$versions.coreKtx",
|
|
rx2 : "io.reactivex.rxjava2:rxjava:$versions.rx2",
|
|
|
|
// Testing.
|
|
junit : "junit:junit:$versions.junit",
|
|
truth : "com.google.truth:truth:$versions.truth",
|
|
mockito : "org.mockito:mockito-core:$versions.mockito",
|
|
mockitoKotlin : "com.nhaarman.mockitokotlin2:mockito-kotlin:$versions.mockitoKotlin",
|
|
coroutinesCore : "org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.coroutines",
|
|
coroutinesRx : "org.jetbrains.kotlinx:kotlinx-coroutines-rx2:$versions.coroutines",
|
|
coroutinesReactive : "org.jetbrains.kotlinx:kotlinx-coroutines-reactive:$versions.coroutines",
|
|
coroutinesAndroid : "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.coroutines",
|
|
coroutinesTest : "org.jetbrains.kotlinx:kotlinx-coroutines-test:$versions.coroutines"
|
|
]
|