plugins {
    id 'com.android.library'
}
android {
    namespace 'acquire.core'
    compileSdk versions.compileSdkVersion

    defaultConfig {
        minSdk versions.minSdkVersion
        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [eventBusIndex : project.getName()]
            }
        }
        buildConfigField "long", "RELEASE_TIMESTAMP", System.currentTimeMillis() + "L"
        buildConfigField "String", "TEMPLATE_VERSION", '"'+template +'"'
    }
    buildFeatures {
        viewBinding = true
        aidl true
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation project(':database')
    implementation androidx['recyclerview']
    implementation androidx['constraintlayout']
    implementation androidx['viewpager2']
    api(xml['xstream']) {
        exclude group: 'xmlpull'
    }
    api project(':base')
    api project(':sdk_helper')
    api google['gson']
    implementation androidx['appcompat']
    implementation androidx['camerax']
    implementation androidx['camerax-lifecycle']
    implementation androidx['camerax-view']
    implementation 'org.java-websocket:Java-WebSocket:1.5.1'
    implementation 'com.google.android.material:material:1.10.0'
    implementation 'androidx.navigation:navigation-fragment:2.5.3'
    implementation 'androidx.navigation:navigation-ui:2.5.3'
    implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
    implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
    implementation 'com.github.bumptech.glide:glide:4.15.1'

//    implementation greenrobot['eventbus']
//    annotationProcessor greenrobot['eventbus-compiler']
}
