apply plugin: 'com.android.library'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.0"

    defaultConfig {
        applicationId "com.stevenschoen.accountsuggesttextview"
        minSdkVersion 5
        targetSdkVersion 21
        versionCode 2
        versionName "1.1"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

apply plugin: 'maven'

def libraryAarFile = file('build/library.aar')
artifacts {
    archives libraryAarFile
}

uploadArchives {
    repositories.mavenDeployer {
        repository(
                url: 'https://api.bintray.com/maven/dsteve595/AccountSuggestTextView/AccountSuggestTextView'
        ) {
            authentication(
                    userName: 'dsteve595',
                    password: '3bb67f13ec434253ee1677ec2887c76751cd300c'
            )
        }
        pom.groupId = 'bintray-dsteve595-AccountSuggestTextView-AccountSuggestTextView'
        pom.artifactId = 'library'
        pom.version = '1.1'
    }
}