apply plugin: 'com.android.application'

android {

    compileSdkVersion config['compile-sdk']
    buildToolsVersion config['build-tools']

    defaultConfig {
        applicationId "ru.noties.markwon.sample"
        minSdkVersion config['min-sdk']
        targetSdkVersion config['target-sdk']
        versionCode 1
        versionName version
        setProperty("archivesBaseName", "markwon-sample-$versionName")

        resConfig 'en'
    }

    lintOptions {
        abortOnError false
    }

    dexOptions {
        preDexLibraries true
        javaMaxHeapSize '5g'
    }

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

dependencies {

    implementation project(':markwon-core')
    implementation project(':markwon-ext-latex')
    implementation project(':markwon-ext-strikethrough')
    implementation project(':markwon-ext-tables')
    implementation project(':markwon-ext-tasklist')
    implementation project(':markwon-html')
    implementation project(':markwon-image')
    implementation project(':markwon-syntax-highlight')
    implementation project(':markwon-recycler')
    implementation project(':markwon-recycler-table')

    // these are for glide
    implementation 'com.android.support:animated-vector-drawable:28.0.0'
    implementation 'com.android.support:support-fragment:28.0.0'

    implementation project(':markwon-image-glide')
    implementation project(':markwon-image-picasso')

    deps.with {
        implementation it['support-recycler-view']
        implementation it['okhttp']
        implementation it['prism4j']
        implementation it['debug']
        implementation it['adapt']
        implementation it['android-svg']
    }

    deps['annotationProcessor'].with {
        annotationProcessor it['prism4j-bundler']
    }

    deps['test'].with {
        testImplementation it['junit']
        testImplementation it['robolectric']
        testImplementation it['mockito']
    }
}