import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

configureAndroidApp(project)

android {
    namespace 'com.badoo.ribs.samples.gallery'

    compileSdk 34

    defaultConfig {
        applicationId 'com.badoo.ribs.samples.gallery'
        minSdk deps.build.minSdk
        targetSdk 33
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    buildFeatures {
        compose true
    }

    composeOptions {
        kotlinCompilerExtensionVersion = deps.versions.composeCompiler
    }
}

dependencies {
    implementation deps.external.dagger
    implementation deps.external.mviCore
    implementation deps.external.mviCoreAndroid
    implementation deps.external.rxrelay3
    implementation deps.external.rxandroid3
    implementation deps.external.leakCanary // use debugImplementation in real life apps

    implementation deps.android.appCompat
    implementation deps.android.constraintLayout
    implementation deps.android.design

    implementation platform(deps.compose.bom)
    implementation "androidx.compose.runtime:runtime"
    implementation "androidx.compose.ui:ui"
    implementation "androidx.compose.material:material"
    implementation "androidx.compose.ui:ui-tooling"
    debugImplementation "androidx.compose.ui:ui-tooling-preview"
    implementation "androidx.compose.foundation:foundation"

    implementation project(':libraries:rib-base')
    implementation project(":libraries:rib-compose")
    implementation project(':libraries:rib-debug-utils')
    implementation project(':libraries:rib-mvicore')
    implementation project(':libraries:rib-rx3')

    implementation project(':samples:elements:routing:back-stack')
    implementation project(':samples:elements:routing:parameterised-routing')
    implementation project(':samples:elements:routing:simple-routing-rib')
    implementation project(':samples:elements:routing:transition-animations')

    implementation project(':samples:elements:communication:coordinate-multiple')
    implementation project(':samples:elements:communication:menu-example')

    implementation project(':samples:elements:android-integration:dialogs')
    implementation project(':samples:elements:android-integration:launching-activities')
    implementation project(':samples:elements:android-integration:permissions')

    implementation project(':samples:elements:other:retained-instance-store')

    implementation project(':samples:resources')
}

repositories {
    mavenCentral()
}
