ext {
    versions = [
        java              : JavaVersion.VERSION_1_8,
        compileSdk        : 27,
        targetSdk         : 27,
        buildTools        : '27.0.3',
        kotlin            : '1.2.21',
        coroutine         : '0.22',
        dokka             : '0.9.15',

        // Main dependencies
        support                : '27.0.2',
        constraintLayout       : '1.0.2',
        dagger                 : '2.13',
        exoPlayer              : '2.6.0',
        playServices           : '11.8.0',
        room                   : '1.0.0',
        rxKotlin               : '2.2.0',
        rxAndroid              : '2.0.1',
        moshi                  : '1.6.0-SNAPSHOT',
        okhttp                 : '3.9.0',
        timber                 : '4.5.1',
        threeTenABP            : '1.0.5',
        rxBinding              : '2.0.0',
        fresco                 : '1.7.1',
        kotshi                 : '0.3.0',
        frescoImageViewer      : '0.5.0',
        androidSvg             : '1.2.1',
        aVLoadingIndicatorView : '2.1.3',
        markwon                : '1.0.3',
        textDrawable           : '1.0.2', // Remove this library after https://github.com/RocketChat/Rocket.Chat/pull/9492 is merged
        moshiLazyAdapters      : '2.1', // Even declared on the SDK we need to add this library here because java.lang.NoClassDefFoundError: Failed resolution of: Lcom/serjltt/moshi/adapters/FallbackEnum;
        sheetMenu              : '1.3.3',

        // For testing
        junit                  : '4.12',
        truth                  : '0.36',
        expresso               : '3.0.1',
        mockito                : '2.10.0'
    ]

    libraries = [
        kotlin                 : "org.jetbrains.kotlin:kotlin-stdlib-jre8:${versions.kotlin}",
        coroutines             : "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.coroutine}",
        coroutinesAndroid      : "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.coroutine}",

        appCompat              : "com.android.support:appcompat-v7:${versions.support}",
        annotations            : "com.android.support:support-annotations:${versions.support}",
        recyclerview           : "com.android.support:recyclerview-v7:${versions.support}",
        design                 : "com.android.support:design:${versions.support}",
        constraintLayout       : "com.android.support.constraint:constraint-layout:${versions.constraintLayout}",
        cardView               : "com.android.support:cardview-v7:${versions.support}",

        dagger                 : "com.google.dagger:dagger:${versions.dagger}",
        daggerSupport          : "com.google.dagger:dagger-android-support:${versions.dagger}",
        daggerProcessor        : "com.google.dagger:dagger-compiler:${versions.dagger}",
        daggerAndroidApt       : "com.google.dagger:dagger-android-processor:${versions.dagger}",
        playServicesGcm        : "com.google.android.gms:play-services-gcm:${versions.playServices}",
        exoPlayer              : "com.google.android.exoplayer:exoplayer:${versions.exoPlayer}",

        room                   : "android.arch.persistence.room:runtime:${versions.room}",
        roomProcessor          : "android.arch.persistence.room:compiler:${versions.room}",
        roomRxjava             : "android.arch.persistence.room:rxjava2:${versions.room}",

        rxKotlin               : "io.reactivex.rxjava2:rxkotlin:${versions.rxKotlin}",
        rxAndroid              : "io.reactivex.rxjava2:rxandroid:${versions.rxAndroid}",

        moshi                  : "com.squareup.moshi:moshi:${versions.moshi}",
        moshiKotlin            : "com.squareup.moshi:moshi-kotlin:${versions.moshi}",
        okhttp                 : "com.squareup.okhttp3:okhttp:${versions.okhttp}",
        okhttpLogger           : "com.squareup.okhttp3:logging-interceptor:${versions.okhttp}",

        timber                 : "com.jakewharton.timber:timber:${versions.timber}",
        threeTenABP            : "com.jakewharton.threetenabp:threetenabp:${versions.threeTenABP}",
        rxBinding              : "com.jakewharton.rxbinding2:rxbinding-kotlin:${versions.rxBinding}",

        fresco                 : "com.facebook.fresco:fresco:${versions.fresco}",
        frescoOkHttp           : "com.facebook.fresco:imagepipeline-okhttp3:${versions.fresco}",
        frescoAnimatedGif      : "com.facebook.fresco:animated-gif:${versions.fresco}",
        frescoWebP             : "com.facebook.fresco:webpsupport:${versions.fresco}",
        frescoAnimatedWebP     : "com.facebook.fresco:animated-webp:${versions.fresco}",

        kotshiApi              : "se.ansman.kotshi:api:${versions.kotshi}",
        kotshiCompiler         : "se.ansman.kotshi:compiler:${versions.kotshi}",

        frescoImageViewer      : "com.github.stfalcon:frescoimageviewer:${versions.frescoImageViewer}",

        androidSvg             : "com.caverock:androidsvg:${versions.androidSvg}",

        aVLoadingIndicatorView : "com.wang.avi:library:${versions.aVLoadingIndicatorView}",

        textDrawable           : "com.github.rocketchat:textdrawable:${versions.textDrawable}",

        markwon                : "ru.noties:markwon:${versions.markwon}",
        markwonImageLoader     : "ru.noties:markwon-image-loader:${versions.markwon}",

        moshiLazyAdapters      : "com.serjltt.moshi:moshi-lazy-adapters:${versions.moshiLazyAdapters}",

        sheetMenu              : "com.github.whalemare:sheetmenu:${versions.sheetMenu}",

        // For testing
        junit         : "junit:junit:$versions.junit",
        expressoCore  : "com.android.support.test.espresso:espresso-core:${versions.expresso}",
        roomTest      : "android.arch.persistence.room:testing:${versions.room}",
        truth         : "com.google.truth:truth:$versions.truth",
    ]
}