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

android {
    namespace 'com.yandex.divkit.sample'

    buildFeatures {
        buildConfig = true
        viewBinding = true
    }

    compileSdkVersion = rootProject.ext.compileSdkVersion
    buildToolsVersion = rootProject.ext.buildToolsVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        applicationId 'com.yandex.divkit.sample'
        minSdkVersion 23
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName '1.0.0'
        testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
    }

    lint {
        baseline file("lint-baseline.xml")
    }
}

dependencies {
    implementation project(':div-core')
    implementation project(':div')
    implementation project(':div-json')
    implementation project(':picasso')
    implementation project(':div-rive')
    implementation project(':utils')
    implementation project(':div-pinch-to-zoom')
    implementation project(':div-markdown')

    implementation libs.androidx.coreKtx
    implementation libs.androidx.activity
    implementation libs.androidx.appcompat
    implementation libs.androidx.material
    implementation libs.androidx.constraintlayout
    implementation libs.okhttp

    testImplementation libs.junit
    androidTestImplementation libs.androidx.espresso.core
}
