apply plugin: 'com.android.library'

ext {
    PUBLISH_GROUP_ID = 'io.github.elye'
    PUBLISH_VERSION = '3.0.0'
    PUBLISH_ARTIFACT_ID = 'loaderviewlibrary'
    PUBLISH_DESCRIPTION = 'LoaderView Android SDK'
    PUBLISH_URL = 'https://github.com/elye/loaderviewlibrary'
    PUBLISH_LICENSE_NAME = 'Apache License'
    PUBLISH_LICENSE_URL = 'https://github.com/elye/loaderviewlibrary/blob/master/LICENSE'
    PUBLISH_DEVELOPER_ID = 'elye'
    PUBLISH_DEVELOPER_NAME = 'Elye Project'
    PUBLISH_DEVELOPER_EMAIL = 'elye.project@gmail.com'
    PUBLISH_SCM_CONNECTION = 'scm:git:github.com/elye/loaderviewlibrary.git'
    PUBLISH_SCM_DEVELOPER_CONNECTION = 'scm:git:ssh://github.com/elye/loaderviewlibrary.git'
    PUBLISH_SCM_URL = 'https://github.com/elye/loaderviewlibrary/tree/master'
}

apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"

android {
    compileSdkVersion 30
    buildToolsVersion '29.0.2'

    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 30
        versionCode 14
        versionName "2.0.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    testImplementation 'junit:junit:4.13.2'
    implementation 'androidx.appcompat:appcompat:1.2.0'
}
