buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.novoda:bintray-release:0.8.0'
    }
}

apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'

android {
    compileSdkVersion 26

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    }

    buildTypes {
        release {
            postprocessing {
                removeUnusedCode false
                removeUnusedResources false
                obfuscate false
                optimizeCode false
                proguardFile 'proguard-rules.pro'
            }
        }
    }

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    // Using v26.0.1 to avoid resolution issue with org.jetbrains.trove4j:trove4j:20160824
    implementation 'com.android.support:appcompat-v7:26.1.0'
}

publish {
    userOrg = 'akaita'
    repoName = 'android'
    groupId = 'com.akaita.android'
    artifactId = 'morphview'
    publishVersion = '1.0.0'
    licences = ['Apache-2.0']
    desc = 'Convenience library for reversible AnimatedVectorDrawables'
    website = 'https://github.com/akaita/MorphView'
    issueTracker = 'https://github.com/akaita/MorphView/issues'
    repository = 'https://github.com/akaita/MorphView.git'
}
