enableFeaturePreview("VERSION_CATALOGS")

include(":currencies")
include(":nextcloud")
include(":owncloud")
include(":webdav")
include(":unitconverter")
include(":websites")
include(":wikipedia")
include(":contacts")
include(":g-services")
include(":files")
include(":calculator")
include(":hiddenitems")
include(":badges")
include(":applications")
include(":ms-services")
include(":favorites")
include(":calendar")
include(":icons")
include(":search")
include(":crashreporter")
include(":music")
include(":preferences")
include(":base")
include(":transition")
include(":widgets")
include(":weather")
include(":i18n")
include(":database")
include(":ktx")
include(":app")
include(":rssparser")
include(":permissions")
include(":ui")
include(":compat")

dependencyResolutionManagement {
    versionCatalogs {
        create("sdk") {
            version("minSdk", "24")
            version("compileSdk", "31")
            version("targetSdk", "31")
        }
        create("libs") {
            version("kotlin", "1.5.31")
            version("kotlinx.coroutines", "1.5.1")
            alias("kotlin.stdlib")
                .to("org.jetbrains.kotlin", "kotlin-stdlib")
                .versionRef("kotlin")
            alias("kotlin.gradle")
                .to("org.jetbrains.kotlin", "kotlin-gradle-plugin")
                .versionRef("kotlin")
            alias("kotlinx.coroutines.core")
                .to("org.jetbrains.kotlinx", "kotlinx-coroutines-core")
                .versionRef("kotlinx.coroutines")
            alias("kotlinx.coroutines.android")
                .to("org.jetbrains.kotlinx", "kotlinx-coroutines-android")
                .versionRef("kotlinx.coroutines")
            bundle(
                "kotlin",
                listOf("kotlin.stdlib", "kotlinx.coroutines.core", "kotlinx.coroutines.android")
            )

            version("androidx.compose", "1.1.0-beta03")
            alias("androidx.compose.runtime")
                .to("androidx.compose.runtime", "runtime")
                .versionRef("androidx.compose")
            alias("androidx.compose.livedata")
                .to("androidx.compose.runtime", "runtime-livedata")
                .versionRef("androidx.compose")
            alias("androidx.compose.foundation")
                .to("androidx.compose.foundation", "foundation")
                .versionRef("androidx.compose")
            alias("androidx.compose.foundationlayout")
                .to("androidx.compose.foundation", "foundation-layout")
                .versionRef("androidx.compose")
            alias("androidx.compose.ui")
                .to("androidx.compose.ui", "ui")
                .versionRef("androidx.compose")
            alias("androidx.compose.uitooling")
                .to("androidx.compose.ui", "ui-tooling")
                .versionRef("androidx.compose")
            alias("androidx.compose.material")
                .to("androidx.compose.material", "material")
                .versionRef("androidx.compose")
            alias("androidx.compose.materialicons")
                .to("androidx.compose.material", "material-icons-extended")
                .versionRef("androidx.compose")
            alias("androidx.compose.animation")
                .to("androidx.compose.animation", "animation")
                .versionRef("androidx.compose")
            alias("androidx.compose.animationgraphics")
                .to("androidx.compose.animation", "animation-graphics")
                .versionRef("androidx.compose")
            alias("androidx.compose.animationgraphics")
                .to("androidx.compose.animation", "animation-graphics")
                .versionRef("androidx.compose")
            alias("androidx.compose.material3")
                .to("androidx.compose.material3", "material3")
                .version("1.0.0-alpha01")

            version("androidx.lifecycle", "2.4.0-rc01")
            alias("androidx.lifecycle.viewmodel")
                .to("androidx.lifecycle", "lifecycle-viewmodel-ktx")
                .versionRef("androidx.lifecycle")
            alias("androidx.lifecycle.livedata")
                .to("androidx.lifecycle", "lifecycle-livedata-ktx")
                .versionRef("androidx.lifecycle")
            alias("androidx.lifecycle.common")
                .to("androidx.lifecycle", "lifecycle-common-java8")
                .versionRef("androidx.lifecycle")
            alias("androidx.lifecycle.runtime")
                .to("androidx.lifecycle", "lifecycle-runtime-ktx")
                .versionRef("androidx.lifecycle")
            alias("androidx.lifecycle.viewmodelcompose")
                .to("androidx.lifecycle", "lifecycle-viewmodel-compose")
                .versionRef("androidx.lifecycle")
            bundle(
                "androidx.lifecycle",
                listOf(
                    "androidx.lifecycle.viewmodel",
                    "androidx.lifecycle.livedata",
                    "androidx.lifecycle.common",
                    "androidx.lifecycle.runtime"
                )
            )

            version("accompanist", "0.21.0-beta")
            alias("accompanist.insets")
                .to("com.google.accompanist", "accompanist-insets")
                .versionRef("accompanist")
            alias("accompanist.systemuicontroller")
                .to("com.google.accompanist", "accompanist-systemuicontroller")
                .versionRef("accompanist")
            alias("accompanist.pager")
                .to("com.google.accompanist", "accompanist-pager")
                .versionRef("accompanist")
            alias("accompanist.flowlayout")
                .to("com.google.accompanist", "accompanist-flowlayout")
                .versionRef("accompanist")
            alias("accompanist.navigationanimation")
                .to("com.google.accompanist", "accompanist-navigation-animation")
                .versionRef("accompanist")

            alias("androidx.core")
                .to("androidx.core", "core-ktx")
                .version("1.7.0-rc01")

            version("androidx.appcompat", "1.4.0-beta01")
            alias("androidx.appcompat")
                .to("androidx.appcompat", "appcompat")
                .versionRef("androidx.appcompat")

            version("androidx.activity", "1.4.0-rc01")
            alias("androidx.activity")
                .to("androidx.activity", "activity-ktx")
                .versionRef("androidx.activity")
            alias("androidx.activitycompose")
                .to("androidx.activity", "activity-compose")
                .versionRef("androidx.activity")

            alias("androidx.preference")
                .to("androidx.preference", "preference-ktx")
                .version("1.1.1")

            alias("androidx.work")
                .to("androidx.work", "work-runtime-ktx")
                .version("2.7.0")

            alias("androidx.browser")
                .to("androidx.browser", "browser")
                .version("1.4.0-rc01")

            alias("androidx.palette")
                .to("androidx.palette", "palette")
                .version("1.0.0")

            alias("androidx.media2")
                .to("androidx.media2", "media2-session")
                .version("1.2.0")

            alias("androidx.constraintlayout")
                .to("androidx.constraintlayout", "constraintlayout")
                .version("2.1.0")

            alias("androidx.cardview")
                .to("androidx.cardview", "cardview")
                .version("1.0.0")

            alias("androidx.recyclerview")
                .to("androidx.recyclerview", "recyclerview")
                .version("1.3.0-alpha01")

            alias("androidx.transition")
                .to("androidx.transition", "transition")
                .version("1.4.1")

            alias("androidx.exifinterface")
                .to("androidx.exifinterface", "exifinterface")
                .version("1.3.3")

            alias("androidx.fragment")
                .to("androidx.fragment", "fragment-ktx")
                .version("1.4.0-alpha10")

            alias("androidx.gridlayout")
                .to("androidx.gridlayout", "gridlayout")
                .version("1.0.0")

            alias("androidx.securitycrypto")
                .to("androidx.security", "security-crypto")
                .version("1.1.0-alpha03")

            alias("androidx.multidex")
                .to("androidx.multidex", "multidex")
                .version("2.0.1")

            alias("androidx.datastore")
                .to("androidx.datastore", "datastore")
                .version("1.0.0")

            version("androidx.room", "2.4.0-beta02")
            alias("androidx.roomruntime")
                .to("androidx.room", "room-runtime")
                .versionRef("androidx.room")
            alias("androidx.roomcompiler")
                .to("androidx.room", "room-compiler")
                .versionRef("androidx.room")
            alias("androidx.room")
                .to("androidx.room", "room-ktx")
                .versionRef("androidx.room")

            version("androidx.appsearch", "1.0.0-alpha03")
            alias("androidx.appsearch")
                .to("androidx.appsearch", "appsearch")
                .versionRef("androidx.appsearch")
            alias("androidx.appsearchcompiler")
                .to("androidx.appsearch", "appsearch-compiler")
                .versionRef("androidx.appsearch")
            alias("androidx.appsearchstorage")
                .to("androidx.appsearch", "appsearch-platform-storage")
                .versionRef("androidx.appsearch")
            bundle(
                "androidx.appsearch", listOf(
                    "androidx.appsearch",
                    "androidx.appsearchstorage"
                )
            )

            alias("androidx.navigation.compose")
                .to("androidx.navigation", "navigation-compose")
                .version("2.4.0-alpha10")

            alias("materialcomponents")
                .to("com.google.android.material", "material")
                .version("1.5.0-beta01")

            version("lottie", "4.1.0")
            alias("lottie.core")
                .to("com.airbnb.android", "lottie")
                .versionRef("lottie")

            alias("okhttp")
                .to("com.squareup.okhttp3", "okhttp")
                .version("4.9.1")

            alias("retrofit.core")
                .to("com.squareup.retrofit2", "retrofit")
                .version("2.9.0")
            alias("retrofit.gson")
                .to("com.squareup.retrofit2", "converter-gson")
                .version("2.9.0")
            bundle(
                "retrofit",
                listOf(
                    "retrofit.core",
                    "retrofit.gson"
                )
            )

            alias("leakcanary")
                .to("com.squareup.leakcanary", "leakcanary-android")
                .version("2.7")

            alias("suncalc")
                .to("org.shredzone.commons", "commons-suncalc")
                .version("2.12")

            alias("jsoup")
                .to("org.jsoup", "jsoup")
                .version("1.14.2")

            alias("textdrawable")
                .to("com.amulyakhare", "com.amulyakhare.textdrawable")
                .version("1.0.1")

            alias("glide")
                .to("com.github.bumptech.glide", "glide")
                .version("4.12.0")

            alias("glidetransformations")
                .to("jp.wasabeef", "glide-transformations")
                .version("4.3.0")

            version("materialdialogs", "3.3.0")
            alias("materialdialogs.core")
                .to("com.afollestad.material-dialogs", "core")
                .versionRef("materialdialogs")
            alias("materialdialogs.input")
                .to("com.afollestad.material-dialogs", "input")
                .versionRef("materialdialogs")
            alias("materialdialogs.color")
                .to("com.afollestad.material-dialogs", "color")
                .versionRef("materialdialogs")
            alias("materialdialogs.bottomsheets")
                .to("com.afollestad.material-dialogs", "bottomsheets")
                .versionRef("materialdialogs")
            bundle(
                "materialdialogs", listOf(
                    "materialdialogs.core",
                    "materialdialogs.input",
                    "materialdialogs.color",
                    "materialdialogs.bottomsheets"
                )
            )

            version("groupie", "2.8.0")
            alias("groupie.core")
                .to("com.xwray", "groupie")
                .versionRef("groupie")
            alias("groupie.ktx")
                .to("com.xwray", "groupie-kotlin-android-extensions")
                .versionRef("groupie")
            bundle(
                "groupie",
                listOf(
                    "groupie.core",
                    "groupie.ktx"
                )
            )

            alias("draglinearlayout")
                .to("com.jmedeisis", "draglinearlayout")
                .version("1.1.0")

            alias("viewpropertyobjectanimator")
                .to("com.bartoszlipinski", "viewpropertyobjectanimator")
                .version("1.5.0")

            alias("mathparser")
                .to("org.mariuszgromada.math", "MathParser.org-mXparser")
                .version("4.4.2")

            alias("google.auth")
                .to("com.google.auth", "google-auth-library-oauth2-http")
                .version("1.1.0")
            alias("google.apiclient")
                .to("com.google.api-client", "google-api-client-android")
                .version("1.31.2")
            alias("google.drive")
                .to("com.google.apis", "google-api-services-drive")
                .version("v3-rev197-1.25.0")
            alias("google.oauth2")
                .to("com.google.apis", "google-api-services-oauth2")
                .version("v2-rev157-1.25.0")

            alias("gson")
                .to("com.google.code.gson", "gson")
                .version("2.8.6")

            alias("guava")
                .to("com.google.guava", "guava")
                .version("30.1.1-android")

            alias("microsoft.graph")
                .to("com.microsoft.graph", "msgraph-sdk-android")
                .version("1.7.0")
            alias("microsoft.identity")
                .to("com.microsoft.identity.client", "msal")
                .version("2.2.0")

            alias("android.volley")
                .to("com.android.volley", "volley")
                .version("1.1.1")

            version("protobuf", "3.14.0")
            alias("protobuf.protoc")
                .to("com.google.protobuf", "protoc")
                .versionRef("protobuf")
            alias("protobuf.javalite")
                .to("com.google.protobuf", "protobuf-javalite")
                .versionRef("protobuf")

            version("koin", "3.1.4")
            alias("koin.android")
                .to("io.insert-koin", "koin-android")
                .versionRef("koin")
            alias("koin.androidxcompose")
                .to("io.insert-koin", "koin-androidx-compose")
                .versionRef("koin")
        }
    }
}
include(":appsearch")
include(":notifications")
