plugins {
    id 'com.android.library'
    id 'org.jetbrains.kotlin.android'
}

apply from: 'fingerprint.gradle'

android {
    namespace "com.fingerprintjs.reactnative"

    compileSdk 34

    defaultConfig {
        minSdk 24
        targetSdk 34
        versionCode 1
        versionName "1.0"
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }

    kotlinOptions {
        jvmTarget = "17"
    }

    buildFeatures {
        buildConfig = true
    }

    lint {
        abortOnError = false
    }
}

repositories {
    mavenCentral()
    google()
    maven { url 'https://maven.fpregistry.io/releases' }
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.facebook.react:react-native:+'
    implementation "com.fingerprint.android:pro:$fingerprint_native_sdk_version"
    implementation "org.jetbrains.kotlin:kotlin-stdlib"
}
