apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
apply from: './checks.gradle' // Apply static code analysis configuration

android {
    compileSdkVersion 29

    defaultConfig {
        minSdkVersion 18
        targetSdkVersion 29
        versionCode versionCode
        versionName "${versionName}"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

tasks.withType(Javadoc).all { enabled = false }

dependencies {
    implementation 'androidx.appcompat:appcompat:1.1.0'
}

publish {
    def groupProjectID = 'de.adorsys.android'
    def artifactProjectID = 'securestoragelibrary'
    def publishVersionID = "${versionName}"
    userOrg = 'andev'
    repoName = 'adorsys'
    groupId = groupProjectID
    artifactId = artifactProjectID
    publishVersion = publishVersionID
    desc = 'securestoragelibrary'
    website = 'https://github.com/adorsys/secure-storage-android'
}