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

def DEFAULT_COMPILE_SDK_VERSION             = 35
def DEFAULT_BUILD_TOOLS_VERSION             = "35.0.0"
def DEFAULT_TARGET_SDK_VERSION              = 35
def DEFAULT_SUPPORT_LIB_VERSION             = "26.1.0"
def DEFAULT_MIN_SDK_VERSION                 = 24

android {
    namespace "org.devio.rn.splashscreen"
    compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
    buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION

    defaultConfig {
        minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : DEFAULT_MIN_SDK_VERSION
        targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

def supportLibVersion = rootProject.hasProperty('supportLibVersion') ? rootProject.supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION
def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['lottiereactnative_kotlinVersion']

dependencies {

    testImplementation 'junit:junit:4.12'
    implementation "androidx.appcompat:appcompat:1.6.1"
    implementation "com.facebook.react:react-native:+" // From node_modules
    implementation 'com.airbnb.android:lottie:6.4.0'
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}

