plugins {
    id 'com.android.library'
    id 'maven-publish'
}

ext {
    bintrayRepo = "currency-edittext"
    bintrayName = "me.abhinay.input"

    publishedGroupId = 'me.abhinay.input'
    libraryName = 'currency-edittext'
    artifact = 'currency-edittext'

    libraryDescription = 'A Custom EditText implementation that allows formatting of currency-based numeric inputs.'

    siteUrl = 'https://github.com/AbhinayMe/currency-edittext'
    gitUrl = 'https://github.com/AbhinayMe/currency-edittext.git'
    gradleScriptUrl = 'https://github.com/AbhinayMe/JCenter-Gradle-Scripts'

    libraryVersion = '2.0.1'

    developerId = 'abhinayme'
    developerName = 'Abhinay M'
    developerEmail = 'i@abhinay.me'

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

repositories {
    mavenCentral()
}

group = 'com.github.abhinayme'
version = '1.1'

android {
    compileSdkVersion 31
    buildToolsVersion "28.0.3"
    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 31
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.3.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
    implementation 'com.google.code.gson:gson:2.8.8'
}