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

android {
    compileSdkVersion 29
    defaultConfig {
        applicationId "cafe.adriel.pufferdb.sample"
        minSdkVersion 16
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main.java.srcDirs += 'src/main/kotlin/'
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation project(":core")
    implementation project(":android")
    implementation project(":coroutines")
    implementation project(":rxjava")

    implementation ModuleLib.APP_COMPAT
    implementation ModuleLib.KOTLIN
    implementation ModuleLib.COROUTINES_ANDROID
    implementation ModuleLib.RXJAVA
    implementation ModuleLib.RXANDROID

    // Benchmark
    implementation ModuleLib.ANDROIDX_PREFERENCE
    implementation ModuleLib.MMKV
    implementation ModuleLib.PAPER
    implementation ModuleLib.HAWK
    implementation ModuleLib.BINARY_PREFS
}
