apply plugin: 'com.android.application'

android {

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

    defaultConfig {
        applicationId "io.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')
    implementation project(':markwon-simple-ext')

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

    deps.with {
        implementation it['x-recycler-view']
        implementation it['x-core'] // for precomputedTextCompat
        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']
    }
}
