apply plugin: 'com.android.library'

def scanbotSdkVersion = '1.90.1'
def kotlin_version = '1.4.0'

android {
    compileSdkVersion = 30
    buildToolsVersion = "28.0.3"

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
        }
        debug {
            minifyEnabled false
        }
    }
    lintOptions {
        abortOnError false
    }
    dexOptions {
        javaMaxHeapSize '8g'
    }
    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/DEPENDENCIES'
    }

}

repositories {
    mavenCentral()
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')

    implementation 'com.facebook.react:react-native:+'

    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.multidex:multidex:2.0.0'
    implementation "androidx.constraintlayout:constraintlayout:1.1.3"
    implementation "androidx.constraintlayout:constraintlayout-solver:1.1.3"
    implementation "androidx.recyclerview:recyclerview:1.0.0"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.1'
    implementation "androidx.exifinterface:exifinterface:1.3.3"
    implementation 'app.cash.quickjs:quickjs-android:0.9.2'

    api ("io.scanbot:sdk-package-ui:$scanbotSdkVersion") {
        exclude group: 'org.jetbrains', module: 'annotations'
    }
    api ("io.scanbot:sdk-package-4:$scanbotSdkVersion") {
        exclude group: 'org.jetbrains', module: 'annotations'
    }
    // By default included, if you do not used ML-based document detector,
    // feel free to comment this out and your .apk will be ~4mb smaller
    api "io.scanbot:sdk-ml-docdetector:$scanbotSdkVersion"

    api "io.scanbot:sdk-generictext-assets:$scanbotSdkVersion"
    api "io.scanbot:sdk-licenseplate-assets:$scanbotSdkVersion"
    api "io.scanbot:sdk-genericdocument-assets:$scanbotSdkVersion"
    api "io.scanbot:sdk-barcode-assets:$scanbotSdkVersion"
    api "io.scanbot:sdk-ehic-assets:$scanbotSdkVersion"
    api "io.scanbot:sdk-crypto-persistence:$scanbotSdkVersion"
    api "io.scanbot:sdk-ehic-assets:$scanbotSdkVersion"
    api "io.scanbot:sdk-dc-assets:$scanbotSdkVersion"
}
