apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
    defaultConfig {
        applicationId "com.bluelinelabs.conductor.demo"
        minSdkVersion 21
        targetSdkVersion libs.versions.targetsdk.get()
        versionCode 1
        versionName "1.0.0"
        vectorDrawables.useSupportLibrary true
    }

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

    packagingOptions {
        exclude 'META-INF/rxjava.properties'
    }

    buildFeatures {
        viewBinding = true
        compose = true
    }

    compileSdkVersion 31

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }

    composeOptions {
        kotlinCompilerExtensionVersion libs.versions.compose.get()
    }
}

dependencies {
    implementation libs.androidx.appcompat
    implementation libs.androidx.viewpager2
    implementation libs.material
    implementation libs.androidx.core.ktx

    implementation libs.picasso

    implementation libs.autodispose.ktx

    implementation project(':conductor')
    implementation project(':conductor-modules:viewpager')
    implementation project(':conductor-modules:viewpager2')
    implementation project(':conductor-modules:autodispose')
    implementation project(':conductor-modules:arch-components-lifecycle')
    implementation project(':conductor-modules:androidx-transition')

    implementation libs.compose.ui
    implementation libs.compose.ui.tooling
    implementation libs.compose.foundation
    implementation libs.compose.material
    implementation libs.activity.compose

    implementation libs.leakCanary
}
