apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

repositories {
    jcenter()
    mavenCentral()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

def signKeyAlias = properties.getProperty("release.keyAlias")
def signKeyPassword = properties.getProperty("release.keyPassword")
def signStoreFile = file(properties.getProperty("release.storeFile"))
def signStorePassword = properties.getProperty("release.storePassword")


android {
    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }
    signingConfigs {
        gemini {
            keyAlias signKeyAlias
            keyPassword signKeyPassword
            storeFile signStoreFile
            storePassword signStorePassword
        }
    }
    compileSdkVersion 22
    buildToolsVersion "22.0.1"
    defaultConfig {
        applicationId "org.lifefortheorc.tudounotepad"
        minSdkVersion 21
        targetSdkVersion 22
        versionCode 1
        versionName "0.1"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.gemini
        }
    }
    lintOptions {
        disable 'InvalidPackage'
    }
    packagingOptions {
        exclude 'META-INF/services/javax.annotation.processing.Processor'
    }


}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:design:+'
    compile 'com.android.support:recyclerview-v7:+'
    compile 'com.android.support:cardview-v7:+'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
    compile "com.daimajia.swipelayout:library:1.2.0"
    compile "org.jetbrains.kotlin:kotlin-stdlib:0.12.613"
    compile 'me.imid.swipebacklayout.lib:library:1.0.0'
}
