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

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

    implementation project(':fbcore')
    implementation project(':imagepipeline')
    implementation project(':imagepipeline-native')

    implementation Deps.SoLoader.nativeloader

    testCompileOnly Deps.inferAnnotation

    testImplementation TestDeps.junit
    testImplementation TestDeps.assertjCore
    testImplementation TestDeps.mockitoCore
    testImplementation(TestDeps.robolectric) {
        exclude group: 'commons-logging', module: 'commons-logging'
        exclude group: 'org.apache.httpcomponents', module: 'httpclient'
    }
    testImplementation project(':imagepipeline-base-test')
    testImplementation project(':imagepipeline-test')
}

android {
    ndkVersion GradleDeps.Native.version

    buildToolsVersion FrescoConfig.buildToolsVersion
    compileSdkVersion FrescoConfig.compileSdkVersion

    namespace "com.facebook.fresco.memorytypes.nativememory"

    defaultConfig {
        minSdkVersion FrescoConfig.minSdkVersion
        targetSdkVersion FrescoConfig.targetSdkVersion
    }

    lintOptions {
        abortOnError false
    }
}

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