plugins {
    id 'com.android.library'
    id 'org.jetbrains.kotlin.android'
}

android {
    namespace = 'com.frolo.visualizer.screen'
    compileSdkVersion versions.compileSdk

    defaultConfig {
        minSdkVersion versions.minSdk
        targetSdkVersion versions.targetSdk

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        debug {
        }
        release {
        }
    }

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

    buildFeatures {
        viewBinding true
    }
}

kotlin {
    jvmToolchain(buildtools.versions.java.get().toInteger())
}

java {
    toolchain {
        languageVersion.set(JavaLanguageVersion.of(buildtools.versions.java.get()))
    }
}

dependencies {
    implementation deps.support.core
    implementation deps.lifecycle.livedata
    implementation deps.design.material
    api deps.support.fragment

    implementation project(path: ':logger:api')
    implementation project(path: ':core-ui')
    implementation project(path: ':custom-view:visualizerview')
}
