apply plugin: 'com.android.application'

android {
    compileSdk 34
    defaultConfig {
        applicationId "com.enioka.scanner.demoscannerapp"
        minSdkVersion 21
        targetSdkVersion 35
        versionCode 10
        versionName "3.0.1"
        vectorDrawables.useSupportLibrary = true
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    signingConfigs {
        release {
            storeFile file("debug.keystore")
            storePassword System.getenv("KEYSTORE_PASSWORD")
            keyAlias System.getenv("KEY_ALIAS")
            keyPassword System.getenv("SIGNKEY_PASSWORD")
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            debuggable false
            applicationIdSuffix ".release"
        }
        debug {
            debuggable true
            applicationIdSuffix ".debug"
        }
    }
    lint {
        disable 'ExpiredTargetSdkVersion'
    }
    testOptions {
        animationsDisabled = true
    }
    namespace 'com.enioka.scanner.demo'
}

dependencies {
    // Reference our own library, directly compiled from its project
    implementation project(':enioka_scan');
    implementation project(':enioka_scan_camera');

    // Implementation of the OSS providers
    implementation project(':enioka_scan_zebra_dw');
    implementation project(':enioka_scan_athesi_rd50te')
    implementation project(':enioka_scan_athesi_spa43lte')
    implementation project(':enioka_scan_bluebird')
    implementation project(':enioka_scan_generalscan')
    implementation project(':enioka_scan_honeywelloss_integrated')
    implementation project(':enioka_scan_honeywelloss_spp')
    implementation project(':enioka_scan_zebraoss')
    implementation project(':enioka_scan_proglove');
    implementation 'androidx.test.espresso:espresso-idling-resource:3.6.1'

    // Android stuff

    //noinspection GradleCompatible
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'com.android.support.constraint:constraint-layout:2.0.4'
    implementation 'com.google.android.material:material:1.12.0'
    implementation 'androidx.vectordrawable:vectordrawable:1.2.0'

    // Useless test stuff
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-intents:3.6.1'
    androidTestImplementation('androidx.test.espresso:espresso-core:3.6.0', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
}
