apply plugin: 'com.android.library'

apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

android {
    compileSdkVersion 28

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 4
        versionName project.rootProject.version
        vectorDrawables.useSupportLibrary = true
    }

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

dependencies {
    implementation 'com.android.support:support-annotations:28.0.0'
    implementation 'com.android.support:support-vector-drawable:28.0.0'
    implementation 'com.android.support:animated-vector-drawable:28.0.0'
}

ext {
    publishedGroupId = 'moe.feng.support.biometricprompt'

    bintrayRepo = 'BiometricPromptCompat'
    bintrayName = project.name

    libraryName = 'BiometricPromptCompat'
    artifact = project.name

    libraryDescription = 'Make BiometricPrompt (Android P feature) support all Android 6.0+ devices.'

    siteUrl = 'https://github.com/fython/BiometricPromptCompat'
    gitUrl = 'https://github.com/fython/BiometricPromptCompat.git'

    libraryVersion = project.rootProject.version

    developerId = 'fython'
    developerName = 'Fung Gwo'
    developerEmail = 'fythonx@gmail.com'

    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]
}

apply from: project.rootProject.file('bintray.gradle')