/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import com.facebook.fresco.buildsrc.Deps
import com.facebook.fresco.buildsrc.GradleDeps
import com.facebook.fresco.buildsrc.TestDeps

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'

kotlin {
    jvmToolchain(11)
}

dependencies {
    compileOnly Deps.inferAnnotation
    compileOnly Deps.jsr305
    compileOnly Deps.javaxAnnotation
    compileOnly Deps.AndroidX.androidxAnnotation

    implementation Deps.Litho.lithoAnnotations
    implementation Deps.Litho.core
    implementation Deps.Litho.widget

    kapt Deps.Litho.processor

    implementation project(':vito:core')
    implementation project(':vito:options')
    implementation project(':vito:provider')
    implementation project(':vito:source')

    implementation project(':drawee')
    implementation project(':fbcore')
    implementation project(':ui-common')
    implementation project(':urimod')
}

android {
    ndkVersion GradleDeps.Native.version

    buildToolsVersion FrescoConfig.buildToolsVersion
    compileSdkVersion FrescoConfig.compileSdkVersion

    namespace "com.facebook.fresco.vito.litho.slideshow"

    defaultConfig {
        minSdkVersion FrescoConfig.vitoLithoMinSdkVersion
        targetSdkVersion FrescoConfig.targetSdkVersion
    }

    lintOptions {
        abortOnError false
    }
}

apply plugin: "com.vanniktech.maven.publish"
