apply plugin: 'com.android.library'

android {
    compileSdkVersion 30


    defaultConfig {
        minSdkVersion 28
        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'
        }
    }



    externalNativeBuild {
        cmake {
            version "3.10.2"
            path file('../../CMakeLists.txt')
        }
    }
    compileOptions {
        sourceCompatibility = '1.8'
        targetCompatibility = '1.8'
    }


}

dependencies {
    repositories {
        maven {
            url  "http://dl.bintray.com/terl/lazysodium-maven"
        }
    }

    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.0'
    androidTestImplementation group: 'net.java.dev.jna', name: 'jna', version: '5.5.0'
    androidTestImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.0'

    implementation('org.bitcoinj:bitcoinj-core:0.15.3') {
        exclude group: 'com.google.protobuf', module: "protobuf-java"
        exclude group: 'org.bitcoinj', module: "orchid"
        exclude group: 'com.squareup.okhttp', module: "okhttp"
    }

    androidTestImplementation 'com.google.guava:guava:27.0.1-android'
    androidTestImplementation "com.goterl.lazycode:lazysodium-android:3.3.0"

}
