apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'com.github.dcendents.android-maven'
group='com.github.DoubleDotLabs.doki'

android {
    compileSdkVersion meta.sdk

    defaultConfig {
        minSdkVersion meta.minSdk
        targetSdkVersion meta.sdk
        versionCode meta.versionCode
        versionName meta.versionName
        vectorDrawables.useSupportLibrary = true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        consumerProguardFiles 'proguard-rules.pro'
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            consumerProguardFiles 'proguard-rules.pro'
        }
    }

    packagingOptions {
        pickFirst 'META-INF/core_debug.kotlin_module'
        pickFirst 'META-INF/core_release.kotlin_module'
        pickFirst 'META-INF/library_debug.kotlin_module'
        pickFirst 'META-INF/library_release.kotlin_module'
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$deps.kotlin"

    implementation "androidx.appcompat:appcompat:$deps.android.appcompat"
    implementation "com.google.android.material:material:$deps.android.material"
    implementation "androidx.constraintlayout:constraintlayout:$deps.android.constraintlayout"
    implementation "ru.noties.markwon:core:$deps.markwon"
    implementation "ru.noties.markwon:html:$deps.markwon"
    implementation "ru.noties.markwon:image-okhttp:$deps.markwon"

    api project(path: ':api')
}

apply from: '../versions.gradle'
apply from: '../lib-artifacts.gradle'
