/*
 * 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

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


android {
    ndkVersion GradleDeps.Native.version

    buildToolsVersion FrescoConfig.buildToolsVersion
    compileSdkVersion FrescoConfig.compileSdkVersion

    namespace "com.facebook.flipper.plugins.fresco"

    defaultConfig {
        minSdkVersion FrescoConfig.flipperPluginMinSdkVersion
        targetSdkVersion FrescoConfig.targetSdkVersion
    }

    dependencies {
        implementation project(':drawee-backends:drawee-pipeline')
        implementation project(':imagepipeline-base')
        implementation project(':middleware')
        implementation project(':tools:flipper')
        implementation project(':ui-common')
        implementation Deps.inferAnnotation
        implementation Deps.Tools.Flipper.flipper
        compileOnly Deps.jsr305

        api Deps.Bolts.tasks

        // Exclude the actual stetho dep as we only want some of the fresco APIs here
        implementation(Deps.Tools.Stetho.stetho) {
            exclude group: 'com.facebook.stetho'
        }
    }
}

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