/*
 * 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.GradleDeps
import com.facebook.fresco.buildsrc.SampleDeps

apply plugin: 'com.android.application'

android {
    ndkVersion GradleDeps.Native.version

    buildToolsVersion FrescoConfig.buildToolsVersion
    compileSdkVersion FrescoConfig.compileSdkVersion

    namespace "com.facebook.samples.zoomableapp"

    defaultConfig {
        applicationId "com.facebook.samples.zoomableapp"
        minSdkVersion FrescoConfig.samplesMinSdkVersion
        targetSdkVersion FrescoConfig.targetSdkVersion
        versionCode 1
        versionName "${VERSION_NAME}"

        testApplicationId "com.facebook.samples.zoomableapp.test"
        testInstrumentationRunner "android.test.InstrumentationTestRunner"
    }

    flavorDimensions "main"

    productFlavors {
        internal
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt')
        }
    }

    lintOptions {
        warning 'InvalidPackage'
        abortOnError false
    }

    splits {
        abi {
            enable true
            reset()
            include 'x86', 'x86_64', 'arm64-v8a', 'armeabi-v7a'
            universalApk false
        }
    }
}

configurations {
    internalCompile
}

dependencies {
    implementation SampleDeps.Zoomable.legacyAndroidXSupportCoreUi

    internalImplementation project(':drawee-backends:drawee-pipeline')
    implementation project(path: ':samples:zoomable')
}
